It’s not part of avast, that’s for sure.

Sounds like some kind of spyware to me… If I were you I’d try running something like SpywareBlaster, AdAware etc…