I just tried Bat to EXE Converter 1.5
on the avira.cmd script.
When I checked "Add decompiler" the generated avira.exe didn't have any heap problems with bash.
i don't know if it fully works. It downloaded the file with wget and so, but some of the other commands didn't get executed like they should (wrong path names).
I tested the converter and the avira.exe in wine on Linux.
Linux ==> WINE (Windows compatibility layer for Linux/...) ==> avira.exe (compiled batch script) which probably will run cmd.exe of WINE for executing the batch file ==> running bash (cygwin binary: Linux API emulation layer providing substantial Linux API functionality)
I think the WINE ==> bash step doesn't work (when tried alone), and messes the pathnames up.
Download Ultimate Boot CD v5.0
Use Parted Magic
for handling all partitioning task: http://partedmagic.com/