I have resolved the issue with a little help of this article. The things which I followed, first I opened the run and followed this command
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
after doing the tasks properly, the problem got solved. Now when I check the malware, there was no issue.