Wouldn’t SOCKS4 work for you?
To set up proxy settings in avast, do the following: start avast, go to Settings → Updating (Basic) → Advanced → Proxy Settings.
You can set a SOCKS4 proxy there…
Vlk