Looking at your logs I suspect the problem might have been "Adware.SAHAgent", from your logs this program installs a winsock layer provider (hook). This program was spying on data at the winsock layer.
This
page seems a bit interesting
"Repairs Winsock 2 settings, caused by buggy or improperly-removed Internet software, that result in loss of Internet access"