Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2003
    Location
    Malaysia
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Convert Exe To Source Code

    Convert exe back to source code anyone here knows how ?

    If possible I want to convert back to C language....

  • #2
    New Coder
    Join Date
    Sep 2003
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No one has been successful at writing a decompiler yet.

    If you can find out exactly how the code is compiled you might be able to write a decompiler but not very likely

  • #3
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well it may have been done, but that person either kept it to themselves or were assasinated by Microsoft.

    Why do you want to commit a most likely illegal act? I believe some decompilers can get close to asm code but it's not exactly usable.

    The sheer thought of it is mind boggling though, it's something that I'm sure no person or not many have the mental ability to comprehend to the level required.

    [edit:] Besides, if you could see other people's source itd take the fun out of programming and software wouldn't be a profitable industry.
    Omnis mico antequam dominus Spookster!

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How can you code a decompiler - you can't tell what language it was written in, or how it was compiled. Anyhow, anyone who will get close will more than likely be, like MHtml said, shot by a leading software developer, or simply arrested by the US Government.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Hmm, there are machine code->assembly (de)compilers, there are some (de)compilers/descramblers that manage to produce Pascal, Fortran, C or Basic(!) code from assembly or machine code, but almost inevitably it will be as spaghetti as it can get, and not be very close to the original source, even if it is the functional equivalent (it will literally be the same actions performed). This because the (de)compiler/descrambler has to approximate the functionality based on patterns, since much data is lost in the original compilation. If it had any way of knowing that the code actually came from a certain version of a certain compiler at certain optimisation setting it would be capable of producing much better approximations.

    Here's a little analogy for you:
    1. Take document of an arbitrary format, with styled text and some images and diagrams.
    2. Take a screenshot in an arbitrary format of this.
    3. Then, try to - from that screenshot alone - return the same document in the same format, with the same styling information, and the same images and diagrams.
    4. Automate the process in such a way that it can take any such screenshot in any graphics format and reliably return the same document.
    5. If you fail at 3 and/or 4, try to just create a document in a set format that will when a screenshot is taken of it produce the same screenshot.

    What a (de)compiler/descrambler does since the makers failed at 3 and 4, is step 5. They will return code in THEIR format that will when compiled through THEIR process return the same assembly or machine code as started with.





    Note that (de)compilation of applications in machine code is not illegal per se (at least not here in Sweden), but is almost always prohibited in the licence of the application.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

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