It is a legit file for the temporary folder avast4_, but it isn't an avast file as such, but as Delta mentioned, avast unpacks archive files into that folder to scan them and when the scan completes, they should have been removed.
So there has been a failure to delete the UNPxxxxx.tmp file/s after a scan, why is the question. There is every possibility that it could be malware unpacked by avast, but again it should have been detected and an alert displayed.