Antivirus software performs these basic functions:
Scanning directories or specific files for known malicious patterns indicating the presence of malicious software
Allowing users to schedule scans so they run automatically
Allowing users to initiate new scans at any time
Removing any malicious software it detects. Some antivirus software programs do this automatically in the background, while others notify users of infections and ask them if they want to clean the files.