file does not attack unless you run it, but avast may detect it again when restored
There used to be two restore options, restore to orginal location or restore to a selected folder
If that option is still there (i dont use avast so dont know) then you could create a folder on your desktop named "Virustotal uploads" and exclude this folder from scanning. Then you restore file to that folder and you can then upload to VT without avast detecting and quarantine it again.