xor2003 / masm2c

x86 assembler (MASM syntax) to C translator
Other
79 stars 16 forks source link

MASM format #4

Closed Skin36 closed 3 years ago

Skin36 commented 3 years ago

how to get the MASM format from the IDA?

xor2003 commented 3 years ago

Looks like by default it generates almost MASM format. Options->Analysis->Target Assembler->Generic for Intel 80x86

Skin36 commented 3 years ago

the script masm2c.py generates an error for the same names of different structures. Is it correct ?

LowLevelMahn commented 3 years ago
  1. your code should build beforehand successfully with Masm (or UASM: http://www.terraspace.co.uk/uasm.html)
  2. the masm2c tools do not even try to support you with the complexity of the reversing (if will not work if you're not able to build your reversed code with masm)
  3. reversing a DOS program (or something) else is definitily more work then producing asm with IDA and run masm2c :)

what about a real sample?

Skin36 commented 3 years ago

изображение But this is not a global name, just the name of a member of the structure

xor2003 commented 3 years ago

Sctructures and macro support is the current next step

xor2003 commented 3 years ago

You didn't provided enought information. I prepared workaround: commit Try latest version. Structures are skipped.