Results 1 to 8 of 8

Thread: Assembler to C

  1. #1
    XFlorian
    Guest

    Assembler to C

    hi

    I'm looking for a tutorial which describes how can I translate Assembler code oder Assembler commands into C. Does anyone no one? If so I would be very happy
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    Administrator dELTA's Avatar
    Join Date
    Oct 2000
    Location
    Ring -1
    Posts
    4,204
    Blog Entries
    5
    http://research.sun.com/people/cristina/decompilation-publications.html

  3. #3
    This tutorial is great.But As I know for some languages we can't make good
    decompiler such as C,C++,... and this is because of its compiler optimizer.
    But for some languages like java we can find decompiler that makes decompiled
    applications with a good mapping to its source code.For C,C++,... using a
    dissassembler is better.

    sincerely yours
    Last edited by Hero; January 12th, 2005 at 02:19.

  4. #4
    4nil
    Guest
    yeah,i think c/c++ is very difficult to discompile, so there are no good discompile software for c/c++ around the world.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  5. #5

    As Above

    As I understand it, you would like to do it for a better understanding of what the program does rather than trying to recompile it back again.

    If that is indeed the case, you may try out:

    1. A utility (wingraph works OK) that creates flowchart of your assembly program (better still, use it with IDA )

    2. Plugins for IDA like desquire and one other from Polaris (the name slips by me right now)

    Be warned though, it is difficult to even think of decompiling anything but the most easiest of programs.

    Have Phun
    Blame Microsoft, get l337 !!

  6. #6
    <script>alert(0)</script> disavowed's Avatar
    Join Date
    Apr 2002
    Posts
    1,281
    Quote Originally Posted by Aimless
    Be warned though, it is difficult to even think of decompiling anything but the most easiest of programs.
    From personal experience of decompiling malware, I would say it's more time consuming than difficult. (Read as: EXTREMELY time consuming, and only relatively difficult)

  7. #7
    lifewire
    Guest
    indeed, like disavowed says; it isn't very hard to do. however, you'll need quite good knowledge the language it was written in originally as well as in assembler, and some general knowledge and experience how HLL looks in assembler. the nice thing of compilers is that they are quite limited and have a well defined behavior, you can recognize locals easily, if APIs are called you can identify the type of the arguments which are passed to the API, etc. such things make life easier. on the other hand, whiles and fors are equal, etc. a lot of information disappears while compiling.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  8. #8
    Registered User
    Join Date
    Apr 2003
    Location
    USA
    Posts
    35
    XFlorian:

    Mammon wrote a good tutorial on the very subject you are interested in. Although a bit old and dusty, it should provide you with typical logic involved in taking asm back to c.

    http://www.eccentrix.com/members/mammon/Text/StringManip.html

    Indeed, you should read many of the other tutorials on this site as well.

    Rackmount

Similar Threads

  1. Replies: 0
    Last Post: July 31st, 2011, 09:45
  2. MUltimate Assembler
    By RaMMicHaeL in forum Plugins (General)
    Replies: 4
    Last Post: September 13th, 2009, 07:54
  3. Assembler
    By Ravenheart in forum Tools of Our Trade (TOT) Messageboard
    Replies: 4
    Last Post: May 16th, 2006, 20:18
  4. Assembler programming
    By book in forum The Newbie Forum
    Replies: 28
    Last Post: March 28th, 2006, 10:58
  5. Batronix Assembler
    By Bios in forum Malware Analysis and Unpacking Forum
    Replies: 3
    Last Post: July 23rd, 2001, 14:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •