After having totally screwed up the OS, the smarter thing to do would have been a format and reinstall of the OS
followed by the installation of all the updates.
All of this could have been prevented by simply having a valid recovery procedure in place. (Hindsite at this point.)
Sometime trying to take a shortcut in restoring a compromised system isn’t the best solution.
I wish you luck with whatever security program you currently have installed.