There are a whole shed load of programs and utilities that may help you here . CCleaner is a good place to start . Malwarebytes would be another . A little more info on your hardware would be helpful . Possible HDD is in need of a defrag too .
What is ransomware and how do I protect my PC from WannaCry?