genpeimg: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/genpeimg - from package: mingw-w64-tools

You may install the required package with command apt-get install {package}
Error in other languages:
genpeimg: bevel nie gevind nie
genpeimg: comandă negăsită
genpeimg: comando não encontrado
genpeimg: commande introuvable
genpeimg: command not found
genpeimg: käsku ei ole
genpeimg: không tìm thấy lệnh
genpeimg: komanda nerasta
genpeimg: Kommando nicht gefunden.
genpeimg: kommandot finns inte
genpeimg: komut yok
genpeimg: nie znaleziono polecenia
genpeimg: níor aimsíodh an t-ordú
genpeimg: no se encontró la orden
genpeimg: no s'ha trobat l'ordre
genpeimg: opdracht niet gevonden
genpeimg: parancs nem található
genpeimg: perintah tidak ditemukan
genpeimg: príkaz nenájdený
genpeimg: příkaz nenalezen
genpeimg: команда не найдена
genpeimg: командата не е открита
genpeimg: 命令找不到
genpeimg: コマンドが見つかりません