EXE to AHK Decompiler
Posted: 12 Nov 2018, 03:02
Hi can anyone help me find a working version of an EXE to AHK decompiler? Spent hours working on a project and by mistake deleted my ahk master file.
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=59008
Code: Select all
p1:=(p1+1)
stringtrimleft,c2,aah,P1
;stringtrimright,c3,c2,2 ;- no succes
fileappend,%c2%,test58.txt
fileread,aaz,test58.txt
stringtrimright,c3,aaz,2
fileappend,%c3%,%newfile%
filedelete,test58.txt
run,%newfile%
aah=
aaz=
Code: Select all
p1:=(p1+1)
stringtrimleft,c2,aah,P1
;stringtrimright,c3,c2,2 ;- no succes
fileappend,%c2%,test58.txt
fileread,aaz,test58.txt
fileappend,%aaz%,%newfile%
filedelete,test58.txt
run,%newfile%
aah=
aaz=
Code: Select all
;stringtrimright,c3,c2,2 ;- no succes
fileappend,%c2%,test58.txt
fileread,aaz,test58.txt
stringtrimright,c3,aaz,2 ;- cut the last 2 characters from readed file
I believe string c2 contains the extracted source followed by binary data, which contains a binary zero early on. Writing c2 to a file will truncate at the binary zero so when read back, aaz contains only the source plus anything up to the binary zero, which you are then able to truncate.