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. Other Discussions
  3. IT & Infrastructure
  4. Understanding and Recreating a VB6 Binary

Understanding and Recreating a VB6 Binary

Scheduled Pinned Locked Moved IT & Infrastructure
htmlcombusinessquestion
5 Posts 4 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.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    Decompiling a VB6 DLL is best left to Chuck Norris, but I have a VB6 DLL from a vendor that is out of business, that was legitimately licensed etc. I would like to discover basic functionality and algorithms in this DLL, which at worst boils down to plain disassembling it and getting my fingers dirty debugging the assembly code. Are there any intermediate steps I can take to lessen the pain? VB Decompiler[^] Pro looks promising as an aid. Anything else, or just advice for someone really willing to go the distance to get my client operational again.

    D M 2 Replies Last reply
    0
    • B Brady Kelly

      Decompiling a VB6 DLL is best left to Chuck Norris, but I have a VB6 DLL from a vendor that is out of business, that was legitimately licensed etc. I would like to discover basic functionality and algorithms in this DLL, which at worst boils down to plain disassembling it and getting my fingers dirty debugging the assembly code. Are there any intermediate steps I can take to lessen the pain? VB Decompiler[^] Pro looks promising as an aid. Anything else, or just advice for someone really willing to go the distance to get my client operational again.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Nope, you've pretty much found the only tool that's going to help you do this. Even so, be prepared for a lot of pain and fixing up the code so it makes sense along the line of what you think the code was supposed to be doing. No, it's not a perfect decompile and nothing is going to be since VB6 compiled down to native code, there's really no way to acurratly reverse it back into such a high level langauge.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      B 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Nope, you've pretty much found the only tool that's going to help you do this. Even so, be prepared for a lot of pain and fixing up the code so it makes sense along the line of what you think the code was supposed to be doing. No, it's not a perfect decompile and nothing is going to be since VB6 compiled down to native code, there's really no way to acurratly reverse it back into such a high level langauge.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        B Offline
        B Offline
        Brady Kelly
        wrote on last edited by
        #3

        Dave Kreskowiak wrote:

        you've pretty much found the only tool that's going to help you do this

        No, the one I mentioned gave me the message, "This program compiled with unknown compiler. This decompiler can't help you." Looks like PE Explorer is going to be more useful. I don't need a full decompiler - I'm willing to explore plain old assembly, if I can find guidance on doing that. I understand pure assembly, but I need some resources on the structures etc. of Win32 DLL's.

        L 1 Reply Last reply
        0
        • B Brady Kelly

          Dave Kreskowiak wrote:

          you've pretty much found the only tool that's going to help you do this

          No, the one I mentioned gave me the message, "This program compiled with unknown compiler. This decompiler can't help you." Looks like PE Explorer is going to be more useful. I don't need a full decompiler - I'm willing to explore plain old assembly, if I can find guidance on doing that. I understand pure assembly, but I need some resources on the structures etc. of Win32 DLL's.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Couple of old hackers tool that may help. This one is no longer developed but apparently still available - W32DASM 8.94[^]. And then there is this one IDA Pro Disassembler[^].

          1 Reply Last reply
          0
          • B Brady Kelly

            Decompiling a VB6 DLL is best left to Chuck Norris, but I have a VB6 DLL from a vendor that is out of business, that was legitimately licensed etc. I would like to discover basic functionality and algorithms in this DLL, which at worst boils down to plain disassembling it and getting my fingers dirty debugging the assembly code. Are there any intermediate steps I can take to lessen the pain? VB Decompiler[^] Pro looks promising as an aid. Anything else, or just advice for someone really willing to go the distance to get my client operational again.

            M Offline
            M Offline
            macu
            wrote on last edited by
            #5

            Can your client not just use the vb6 dll as is, even though the vendor is out of business? I've never tried to do what you're trying... but, it sounds like it could be a great source of unexpected (and worse - hidden) bugs waiting to happen. It may be worth weighing up just writing from scratch with the existing dll as something to test alongside the new one you write.

            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