Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  What assembler variant does IDA export ASM for?

Topic created on: February 22, 2010 20:36 CST by kowboykoder .

Hi all.

I've just gotten into Assembler development after 5 ish years of high level coding. I wanted to see how a simple high (ish) level app would look in assembly, so I wrote an empty C program [int main(){return 0;}], compiled it, decompiled it using IDA and tried compiling the ASM again, but it fails.

I've tried compiling the ASM outputted by IDA Pro (free) using A86 and MASM32, but neither Assembly Compiler accepts the 1500 lines of assembly outputted by IDA as valid.

So to conclude, what assembler variant does IDA export for specifically? TASM, NASM, etc?

Thanks all

  Silkut     February 26, 2010 10:44.04 CST
You're doing it wrong(ish :p)
IDA is not really decompiling per say (turned back into source language, unless you use HexRays decompiler but its experimental), it is disassembling your program (`translated` to assembly).
In no situation it is made to produce an entire ready-to-compile assembly code, and you can easily notice that by the overbloated source you got after computing it compared to your program :p

  cseagle     February 27, 2010 00:21.13 CST
That is not entirely true.  First IDA uses something of a hybrid asm syntax, based on the Intel syntax.  I often use some simple scripts to dump functions in a nasm compatible syntax.  If you are going to save the entire database as a .asm file using File/Produce, then you will probably need to do a lot of editing depending on what assembler you intend to use.  You may want to eliminate a lot of the library code added by the compiler such as the start routine among other things depending on how you prefer to re-assemble the program.

  anoirel   March 1, 2010 14:14.40 CST
Chris is right, lot's of editing will be required. This problem has already been solved here.
http://www.openrce.org/forums/posts/951

Note: Registration is required to post to the forums.

Active in Last 5 Minutes
jesucito81

There are 28,225 total registered users.


Recently Created Topics
Reverse Engineering ...
Jan/23
Career: DoD Agency I...
Jan/22
"Disappearing&q...
Jan/17
Career: Software Sec...
Jan/11
Where is the call st...
Jan/07
IDA Pro 6.1 Breakpoi...
Jan/01
How to create data s...
Dec/30
can i search all mod...
Dec/23
IDA symbol table exp...
Dec/20
An anti-attach trick
Dec/17


Recent Forum Posts
Reverse Engineering ...
NirIzr
"Disappearing&q...
NirIzr
Reverse Engineering ...
charlie
"Disappearing&q...
charlie
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
Looking for value in...
NirIzr


Recent Blog Entries
cmathieu
Feb/07
Hacker Carnival

waleedassar
Feb/06
OllyDbg v1.10 And Hardware ...

waleedassar
Jan/31
Yet Another Anti-Debug Trick

RolfRolles
Jan/22
Finding Bugs in VMs with a ...

waleedassar
Jan/13
An OllyDbg Bug Disables Sof...

More ...


Recent Blog Comments
waleedassar on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/05
Yet Another Anti-Debug Trick

trolotou on:
Feb/05
Doudoune Moncler -Pennies F...

waleedassar on:
Feb/01
Yet Another Anti-Debug Trick

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit