Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Decompilers (Not Java)

Decompilers (Not Java)

Scheduled Pinned Locked Moved The Lounge
csharpc++javavisual-studio
11 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dark120
    wrote on last edited by
    #1

    Does anyone know of any decompilers apart from Visual studio out there that I can use to get C++ out of the app I'm decompiling.:confused: :confused: :confused: "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

    C V T 3 Replies Last reply
    0
    • D dark120

      Does anyone know of any decompilers apart from Visual studio out there that I can use to get C++ out of the app I'm decompiling.:confused: :confused: :confused: "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      i don't know for sure, but i doubt it is even possible to build something that could generate C++ from an EXE. C++ is too high-level. you might be able to get C, and probably assembly; but even then, all the variables are going to be named "A", "B", "C"..., "Z74", etc., you would lose all of the "const" stuff, most of the typedefs would be gone, structures would lose meaning, etc.. i think, to generate C++ from an EXE you'd first have to know that the app was written in C++ to begin with, otherwise, a decompiler wouldn't know that this little section of code over here represents an "object". -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

      1 Reply Last reply
      0
      • D dark120

        Does anyone know of any decompilers apart from Visual studio out there that I can use to get C++ out of the app I'm decompiling.:confused: :confused: :confused: "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

        V Offline
        V Offline
        Vagif Abilov
        wrote on last edited by
        #3

        Actually it's not that difficult. Will such code suit your needs? pObj->mov(esi,ebp[0x8]); pObj->mov(edi,ebp[0xc]); pObj->lea(eax,_lc_handle(78040338)); pObj->cmp((DWORD*)eax[0x8],0x0); pObj->mov(bh,0x41); pObj->mov(bl,0x5a); pObj->mov(dh,0x20); pObj->mov(eax,cs.eax); ;P Vagif Abilov COM+/ATL/MFC Developer Oslo, Norway

        D 1 Reply Last reply
        0
        • V Vagif Abilov

          Actually it's not that difficult. Will such code suit your needs? pObj->mov(esi,ebp[0x8]); pObj->mov(edi,ebp[0xc]); pObj->lea(eax,_lc_handle(78040338)); pObj->cmp((DWORD*)eax[0x8],0x0); pObj->mov(bh,0x41); pObj->mov(bl,0x5a); pObj->mov(dh,0x20); pObj->mov(eax,cs.eax); ;P Vagif Abilov COM+/ATL/MFC Developer Oslo, Norway

          D Offline
          D Offline
          dark120
          wrote on last edited by
          #4

          you're speaking in tongues to me. I just want a decompiler that isn't java that can get me source code for this one app I have that I know was written in C++!:confused: "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

          D J 2 Replies Last reply
          0
          • D dark120

            you're speaking in tongues to me. I just want a decompiler that isn't java that can get me source code for this one app I have that I know was written in C++!:confused: "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

            D Offline
            D Offline
            dswigger
            wrote on last edited by
            #5

            The best decompiler for C++ is your brain. Reverse engineering has been around since compilers existed.:rolleyes:

            1 Reply Last reply
            0
            • D dark120

              you're speaking in tongues to me. I just want a decompiler that isn't java that can get me source code for this one app I have that I know was written in C++!:confused: "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

              J Offline
              J Offline
              Jon Sagara
              wrote on last edited by
              #6

              If you find it, let me know. It should do C as well. Then we can decompile Windows and start an open source project: OpenWindows. :rolleyes: Jon Sagara Sagara Software

              P T 2 Replies Last reply
              0
              • J Jon Sagara

                If you find it, let me know. It should do C as well. Then we can decompile Windows and start an open source project: OpenWindows. :rolleyes: Jon Sagara Sagara Software

                P Offline
                P Offline
                Pavlos Touboulidis
                wrote on last edited by
                #7

                LOL :laugh:

                1 Reply Last reply
                0
                • D dark120

                  Does anyone know of any decompilers apart from Visual studio out there that I can use to get C++ out of the app I'm decompiling.:confused: :confused: :confused: "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

                  T Offline
                  T Offline
                  tonyschr
                  wrote on last edited by
                  #8

                  As others have said there's simply no way to get the actual (or even useful) C or C++ source from an executable, but there are powerful tools that can help you disassemble and analyze one. The best tool I've found is: http://home.t-online.de/home/Ollydbg/ There might be expensive commercial tools that are better, but this is free and excellent for user mode programs that you don't have the source for. Plan to learn a little bit of asm first, of course. --CoolDev :cool:

                  D 2 Replies Last reply
                  0
                  • T tonyschr

                    As others have said there's simply no way to get the actual (or even useful) C or C++ source from an executable, but there are powerful tools that can help you disassemble and analyze one. The best tool I've found is: http://home.t-online.de/home/Ollydbg/ There might be expensive commercial tools that are better, but this is free and excellent for user mode programs that you don't have the source for. Plan to learn a little bit of asm first, of course. --CoolDev :cool:

                    D Offline
                    D Offline
                    dark120
                    wrote on last edited by
                    #9

                    Thanks for the advice everyone. I'm sure I'll figure something out. P.S. I'll get started on OpenWindows! lol "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

                    1 Reply Last reply
                    0
                    • T tonyschr

                      As others have said there's simply no way to get the actual (or even useful) C or C++ source from an executable, but there are powerful tools that can help you disassemble and analyze one. The best tool I've found is: http://home.t-online.de/home/Ollydbg/ There might be expensive commercial tools that are better, but this is free and excellent for user mode programs that you don't have the source for. Plan to learn a little bit of asm first, of course. --CoolDev :cool:

                      D Offline
                      D Offline
                      dark120
                      wrote on last edited by
                      #10

                      Thanks for the advice everyone. I'm sure I'll figure something out. P.S. I'll get started on OpenWindows! lol "The world doesn't care about your self esteem. The world expects you to get something done BEFORE you feel good about yourself." ~ Bill Gates

                      1 Reply Last reply
                      0
                      • J Jon Sagara

                        If you find it, let me know. It should do C as well. Then we can decompile Windows and start an open source project: OpenWindows. :rolleyes: Jon Sagara Sagara Software

                        T Offline
                        T Offline
                        Tarmo Kalda
                        wrote on last edited by
                        #11

                        OpenWindows??? Look at www.reactos.com. Hmmm!!!!:rolleyes: :laugh: :eek:

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups