It's probably best to remove the hard disk and slave it to another PC so you can rescue your personal files. Reinstalling Windows will be easy enough and it will activate when it completes.
Microsoft's website has ISO downloads for Windows 8 and 8.1. It might be necessary to replace that hard disk if it shows any signs of faults when you remove your data and when you format it before putting back in the laptop.