Virus vs (ad|spy)ware according to Avast

Hello!

Where Avast draws line between malware it detects/ doesn’t detect?

What is the condition malware must fulfill and what is the sufficient condition for malware to be included into virus signatures?

X.