Control Panel / Administrative Tools / Event Manager
Windows 10 in startup apps go to Administrative Tools / Event Manager
Right Click start menu click event Viewer
once there look to left and expand WIndows Logs Click on Applications and wait for them to load See my pictures i found an error then I clicked on it and it told me what app.
If you don't have event viewer turned on you won't get anything. Then just google turn on event viewer your OS = (winodws 10, Windows 8 etc. turn it on reboot once the error occurs it is recorded go to event viewer and see results.
Go to www.emsisoft.com download the full free version, the program will update definitions and recommend a deep scan, do that since your system is infected, and give you a 30 day trial if you choose.
Overheating When the CPU overheats then it will shut down (i.e. thermal overload) and won't boot up again until it has cooled down. If this is the problem is not fixed then the CPU will eventually fail. A faulty fan causes the problem or the fan and heat sink assembly are clogged with dust. Check the CPU fan to see if it spins freely, if not replace the fan. If the fan and heat sink is clogged with dust the remove the dust and make sure the vents are clear and dust free. Use a small brush and can of compressed air to do this.