exe to C++ source code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Dekson

    exe to C++ source code

    Hello,
    Can I exe file made in Microsoft Visual C++ decompile into source code.
    If it is possibly please tell me how.
    Thanks


  • Sharad Kala

    #2
    Re: exe to C++ source code


    "Michael Dekson" <nospam@nospam. com> wrote in message
    news:c0d43v$6m0 $1@ariane.blic. net...[color=blue]
    > Hello,
    > Can I exe file made in Microsoft Visual C++ decompile into source code.
    > If it is possibly please tell me how.
    > Thanks[/color]

    Not one I know of.
    Compilers make many optimisations etc in the exe, so it's difficult to reach the
    source code from the exe.

    -Sharad


    Comment

    • Peter van Merkerk

      #3
      Re: exe to C++ source code

      "Michael Dekson" <nospam@nospam. com> wrote in message
      news:c0d43v$6m0 $1@ariane.blic. net...[color=blue]
      > Hello,
      > Can I exe file made in Microsoft Visual C++ decompile into source code.
      > If it is possibly please tell me how.[/color]

      What you are asking is how to turn a hamburger into a cow.

      It is not possible to produce reasonable C++ source code from an .exe file,
      even if you know exactly which compiler and the compiler settings (e.g.
      optimization) were used to create the executable. Simply too much
      information is lost in the compilation process.

      --
      Peter van Merkerk
      peter.van.merke rk(at)dse.nl






      Comment

      • lallous

        #4
        Re: exe to C++ source code

        "Michael Dekson" <nospam@nospam. com> wrote in message
        news:c0d43v$6m0 $1@ariane.blic. net...[color=blue]
        > Hello,
        > Can I exe file made in Microsoft Visual C++ decompile into source code.
        > If it is possibly please tell me how.
        > Thanks
        >
        >[/color]
        This has been discussed over and over, one of the replies I liked was:
        "Can you return a hamburger back to a cow?" ;)

        You can recover / rebuild the source code back from the binary but that will
        take lots of time and that is rather called reverse engineering.

        --
        Elias


        Comment

        • Thomas Matthews

          #5
          Re: exe to C++ source code

          Sharad Kala wrote:
          [color=blue]
          > "Michael Dekson" <nospam@nospam. com> wrote in message
          > news:c0d43v$6m0 $1@ariane.blic. net...
          >[color=green]
          >>Hello,
          >>Can I exe file made in Microsoft Visual C++ decompile into source code.
          >>If it is possibly please tell me how.
          >>Thanks[/color]
          >
          >
          > Not one I know of.
          > Compilers make many optimisations etc in the exe, so it's difficult to reach the
          > source code from the exe.
          >
          > -Sharad
          >
          >[/color]

          See my reply to your later post.

          --
          Thomas Matthews

          C++ newsgroup welcome message:

          C++ Faq: http://www.parashift.com/c++-faq-lite
          C Faq: http://www.eskimo.com/~scs/c-faq/top.html
          alt.comp.lang.l earn.c-c++ faq:

          Other sites:
          http://www.josuttis.com -- C++ STL Library book

          Comment

          • David Harmon

            #6
            Re: exe to C++ source code

            On Wed, 11 Feb 2004 16:26:03 +0200 in comp.lang.c++, "lallous"
            <lallous@lgwm.o rg> was alleged to have written:[color=blue]
            >This has been discussed over and over, one of the replies I liked was:
            >"Can you return a hamburger back to a cow?" ;)[/color]

            You can, but it is no longer legal in informed locales due to BSE risk.

            Comment

            • Thomas Matthews

              #7
              Re: exe to C++ source code

              Peter van Merkerk wrote:
              [color=blue]
              > "Michael Dekson" <nospam@nospam. com> wrote in message
              > news:c0d43v$6m0 $1@ariane.blic. net...
              >[color=green]
              >>Hello,
              >>Can I exe file made in Microsoft Visual C++ decompile into source code.
              >>If it is possibly please tell me how.[/color]
              >
              >
              > What you are asking is how to turn a hamburger into a cow.[/color]

              Wrong. He is asking how to create a source file from an executable
              code. This is far different than turning hamburger into a cow.
              It is possible to create source code from an executable. The
              probability of it looking like the original source code is
              extremely low, so low that you would win a lottery many times
              over.

              [color=blue]
              > It is not possible to produce reasonable C++ source code from an .exe file,
              > even if you know exactly which compiler and the compiler settings (e.g.
              > optimization) were used to create the executable. Simply too much
              > information is lost in the compilation process.[/color]

              Reasonable is in the eye of the beholder. I agree that the
              generate source code will be difficult to understand.
              However, I think many newbies should attempt the project just
              so these posts will stop.
              [color=blue]
              >
              > --
              > Peter van Merkerk
              > peter.van.merke rk(at)dse.nl[/color]


              --
              Thomas Matthews

              C++ newsgroup welcome message:

              C++ Faq: http://www.parashift.com/c++-faq-lite
              C Faq: http://www.eskimo.com/~scs/c-faq/top.html
              alt.comp.lang.l earn.c-c++ faq:

              Other sites:
              http://www.josuttis.com -- C++ STL Library book

              Comment

              • Guest's Avatar

                #8
                Re: exe to C++ source code

                Only to x86 Assembly.

                Maybe to C but produced source will have no similarity with official source.
                [color=blue]
                > Can I exe file made in Microsoft Visual C++ decompile into source code.
                > If it is possibly please tell me how.
                > Thanks
                >
                >[/color]


                Comment

                • Thomas Matthews

                  #9
                  Re: exe to C++ source code

                  <- Chameleon -> wrote:
                  [color=blue][color=green]
                  >>Can I exe file made in Microsoft Visual C++ decompile into source code.
                  >>If it is possibly please tell me how.
                  >>Thanks
                  >>
                  >>[/color]
                  > Only to x86 Assembly.
                  >
                  > Maybe to C but produced source will have no similarity with official source.
                  >[/color]

                  1. Don't top-post. Replies are append to the end or
                  interspersed.

                  2. One can parse a Windows executable file into ARM assembly
                  or other assembly language, then into C or C++.
                  There are "byte-code" assembly languages which are an
                  intermediary step between the high-level language and
                  the platform. Many compilers, which compile to different
                  platforms, use this technique. They have specific back
                  ends that translate the intermediary language into
                  platform specific instructions.

                  --
                  Thomas Matthews

                  C++ newsgroup welcome message:

                  C++ Faq: http://www.parashift.com/c++-faq-lite
                  C Faq: http://www.eskimo.com/~scs/c-faq/top.html
                  alt.comp.lang.l earn.c-c++ faq:

                  Other sites:
                  http://www.josuttis.com -- C++ STL Library book

                  Comment

                  Working...