Macbook Air 2015 shutting down during log-in

I just downloaded a torrent version of El Capitan because it's downloading so slow on the appstore... So I downloaded every file on the torrent version... And then after putting my Macbook Air to sleep, when I tried to log in and while it was loading it suddenly shut down. Still having the same problem. Tried NVRAM restart and stuff, tried reinstalling OSX Yosemite but it was very, very slow (I have problems with my patience...). So is there anyway I could save my laptop?? Thanks!
Yes, but if your MacBook has been infected then you should completely wipe the hard drive and then reinstall a fresh copy of the latest OS X version from Apple. Oh, and learn to be patient.

Original thread: https://forums.imore.com/threads/macbook-air-2015-shutting-down-during-log-in.350903/