I suggest you start your computer normally, clean it up with anti-virus software, and then quickly fix the vulnerability. When you start diagnostic mode, you will diagnose the system. A problematic (pirated) system will naturally go wrong.
If the machine can't start now because of advanced virus, I suggest you reinstall the system. In addition, before reinstalling the system, if you need to transfer data, you can take out the hard disk and put it in a hard disk box, which is equivalent to moving the hard disk. Connect it to another computer and transfer it. Just pay attention to antivirus.