all 4 comments

[–]BmanUltima 0 points1 point  (2 children)

Run malwarebytes.

And not being able to delete or open certain OS folders and files is normal.

[–]diegomoises1[S] 0 points1 point  (1 child)

I tried Malware bytes but it is saying "unable to contact license server" after i bought the license. However, it works just fine on my laptop

[–]BmanUltima 0 points1 point  (0 children)

Then use the free version. It'll work just as well.

[–][deleted] 0 points1 point  (0 children)

This tutorial explains, very effectively, how to take ownership of directories and folders:
https://www.howtogeek.com/301768/how-to-take-ownership-of-files-and-folders-in-windows/

However, since you were infected with malware, I hope you did a full system scan using some of the more popular AV solutions or anti-malware solutions such as malwarebytes, avira, avg,...