Nirth: That's really unlucky.
Well, it so happens that you run Avast which supports a boot scan. It scans your drive(s) before Windows have loaded and by that giving a chance to kill viruses that loads during a windows boot up.
I would definitely run it in case you have noticed any misbehaviour because of it. I'm not sure if the Avast update has anything to do with the virus though, it could be a coincidence.
A tips when you run boot scan, only choose your system drive because if you have multiple, large drives it will take a long time to finish.
When you choose boot-time scan, remember to pick high Heuristics sensitivity, scan for PUPs and unpack archive files.
And how do I do a boot scan? Nevermind, found it.