Thread: Decompiling an exe

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    1

    Decompiling an exe

    is there any way that an exe file can be decompiled so that the source code can be viewed? (im using C++ 6) thanks for any help.

  2. #2
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    this has been discussed several times here, search the forums:
    http://cboard.cprogramming.com/searc...der=descending

    the answer is: no, however, you can use a disassembler to get assembly code out of the exe.
    Last edited by glUser3f; 12-15-2003 at 05:11 PM.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    C compilers are not supposed to retain source code within the executable unless otherwise instructed - a VB compiler would probably be set up that way by default (or so I've heard), making it easy to reassemble the actual program (variable names unchanged and all). So you have to either make your own tools or use something that's already out there (hint: search "dissasemble[r]").
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  4. #4
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    there is one for java.
    it's called mocha .
    Last edited by xviddivxoggmp3; 12-16-2003 at 12:56 AM.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to monitor exe and dll interactions?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 10-26-2007, 04:22 AM
  2. how to run an exe command in c++ and get back the results?
    By mitilkhatoon in forum C++ Programming
    Replies: 5
    Last Post: 09-21-2006, 06:00 PM
  3. Close another exe from another exe??
    By Tony in forum Windows Programming
    Replies: 1
    Last Post: 06-12-2002, 07:19 AM
  4. insert another exe into exe
    By lliero in forum C Programming
    Replies: 8
    Last Post: 04-12-2002, 12:22 PM
  5. adding bytes to EXE to call another EXE
    By lliero in forum C Programming
    Replies: 2
    Last Post: 03-30-2002, 07:23 AM