See if you can boot it in Safe Mode to run a virus scan (I recommend Malwarebytes if you don't have it). Worst case scenario you should definitely reinstall Windows before resorting to buying a new PC.