avast to be completely correct scans executable files ‘before’ they are run, if an infection is found it stops it from being executed.