If a virus scan is showing you have trojans, obviously your first step should be to get rid of them. In some cases you may have to do some further tweaking yourself, but that info is available in the details about the trojan involved on many reputable websites. If in doubt, try www.trendmicro.com and use their housecall scanner and check their info on exactly what is found.

As you can see on this thread and the link for more info on 10054, thats a hard to pin down error and happens to everyone. Only suggestion i have since you say it doesnt happen every time, is to see what port you have connected to the network's server on when it happens. Some netgear routers seem to get cranky when you use port 6667.