I format my computer then 1st thing installed avast, restart and update.
So you went online without protection............ Anything could have happened.

1] Pull out the plug to the inet
2] Install Windows
3] Install a firewall
4] Install a av
5] Go online and install ALL security patches/updates