Log in

View Full Version : Assembly comparison??


Nick
November 11th, 2002, 09:42
I have 2 .exe files that I have disassembled with Win32DASM and I want to compare the two disassembled .exes... i.e (Compare all the ASM of both files for any differences).

Thanks.

FoolFox
November 11th, 2002, 11:22
Hello,

Save the two disassembled files as text files and take them
in something like windiff... or similar dev tool, windiff may
become quit old...

this may worth have a look, didn't tried it myself :

h**p://www.grigsoft.com/wincmp.htm

Regards
FoolFox

squidge
November 11th, 2002, 11:29
If they are almost identical apart from a few opcodes, then use the dos utility FC.

Eg.

FC asm1.asm asm2.asm > diff.asm

diff.asm will now contain the differences.

FC is provided with Windows and can do both text and binary files.

tom_324
November 11th, 2002, 12:12
Note that FC will not work if there is a small difference in linking offset, eg. the same routines are placed at location+offset in the second file. Then FC will show a lot of differences for same code. Text compare of disassember output files is a bit better but still a lot of work.

Tom

+SplAj
November 11th, 2002, 14:01
LOL

I think you need to use HWorks (hex workshop 3) to find the dif bytes (to patch) between your 'unpacked-target.exe' and the 'ready-cracked-unpacked-target.exe'.........

Just <right-click> on exe's and 'compare'. That gives you the offset

that it ?