Nope, afraid not.
The hard drive must be the problem since the installation writes files to the hard drive while restarting, since the RAM wipes, and so uses this part of the volume to jump back to, but if there is an issue with it. It simply won't
Get a new hard drive, install with that, and I'm sure all problems will be fixed.
You might find these so called virus takeovers, might have been caused by something else entirely if you didn't know for sure. Maybe the hard drive has been going for a while, yet you didn't know
Anyways, I think we've brought light to the problem, and i hope you never encounter this again.