If you don't need to backup anything, you use the build in factory restore. Google your brand and model for the key combo that you need to enter the factory restore mode.
Or you can try in safe mode or diagnostic mode, run rkill first from beepingcomputer to stop the virus/malware temporarily...