It is already done. avast! setup would detect the unauthorized modification sooner or later (or you can invoke the "Repair" function) and the files get replaced by the original versions.
On the other hand, if the virus is active in the system at the moment, it might hook the file access functions (opening, writing) and infect the files again, right at the moment of the replacement (or, a bit later, of course).