antivirus recommendation

this is my first personal pc and i kinda dont know the basics to protect my pc, what is the best antivirus software to prevent mining, ransom, ....etc? and any additional advice is welcomed