The thing I found out is that this tool installed with it WinPcap tool

http://www.winpcap.org/

It is used to capture and transmit network packets.

I was wondering if that kind of mechanism is there in Avast to catch bots?

I dunno much, I am asking to learn.