Windows provides variety of methods which security software can filter and other security related tasks. A number of articles discuss and compare features of different software firewalls, but there is a few sources that explore the filter techniques. Understanding filtering techniques will help understand and prevent malware threats.

Defeating Windows Personal Firewalls