Weird to see you did not use any antivirus or Internet security software around your hack. Did your computer not have any such software many years?
I did not care to use those softwares years ago but after I joined cryptocurrency, I always have it on my computers.
It doesn't matter what antivirus you use, if it doesn't change behaviors.
Your behavior on the internet must be very responsible. Avoid opening files that you are not 100% sure are safe, even if they come from people you know. Because that person may not have good behavior.
The antivirus can only help to deal with it, but if its behavior is not matched, there is little point in having an antivirus.