avast does have a UPX unpacker, avast probably has more unpacker support than many AVs so why it didn’t use the UPX unpacker on the VirusTotal site is strange. So why it would find it when you manually unpack it but not otherwise is very strange.

I have just created a UPX version of firefox.exe down from 7023 KB to 3033 KB and avast’s ashquick.exe was able to scan that, as did Standard Shield and the On-demand scan (no files shown as can’t scan), see images. So I don’t understand why it wasn’t unpacked and scanned.