Results 1 to 10 of 10

Thread: VB6- Semi VB Decompiler

  1. #1

    Thread Starter
    Lively Member vbgamer45's Avatar
    Join Date
    Sep 2004
    Posts
    72

    VB6- Semi VB Decompiler

    Semi VB Decompiler
    This is the only open source example that allows you to look inside the file format of vb 6.0 native/pcode exe or ocx.
    It uses COM to find out the opcodes for the grahpical components of the exe, which means less things need to be hardcoded.
    Learn the important visual basic strutures in a vb exe , understand why COM is an important part of the visual basic system, and see what is going on behind the scenes in your program. Enjoy.

    Release 0.03
    Added Ocx Support
    Added P-Code procedure decompile to P-Code tokens.
    Added Image Extraction
    Added Better Handling of Control properties.
    Added Form Patch Editor
    Added Syntax Coloring.
    Better support of User Controls/And MDI Forms.
    Api's Recovered
    Procedure Names recovered for Forms and classes.
    Resizing of the windows added.
    Numerous Bug fixes and other things added.
    Begun work on a basic antidecompiler.
    Features Advanced decompiling using COM via VB6.OLB
    Using COM allows me not to have to hard code every single property
    The only properties that need to be hardcoded is the size, font, and dataformat opcodes.
    One day I hope to use msvbvm60.dll instead of vb6.olb so nothing will have to be hardcoded.
    Attached Files Attached Files
    Last edited by vbgamer45; Sep 5th, 2004 at 12:20 PM.

  2. #2
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: VB6- Semi VB Decompiler

    Great app, pity you didn't use Option Explicit in all Forms and Modules.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: VB6- Semi VB Decompiler

    Amazing...

    It could have been made more object-orientated to make it more reusable, but it's still really nice...

    Where did you learn how the EXE files are structured?

  4. #4

    Thread Starter
    Lively Member vbgamer45's Avatar
    Join Date
    Sep 2004
    Posts
    72

    Re: VB6- Semi VB Decompiler

    Wow, first time somone responded in a long time. Well Semi VB Decompiler is no longer open source and the current version is 0.06. Been busy rewriting and adding new features all the time.
    http://www.visualbasiczone.com/produ...mivbdecompiler

    Main things that I want to work on now is .Net support, right now my goal is a basic IL Dissassembler. Right now it just processes some of metadata information and displays the streams and shows the clr header. The other thing I want to add is full support for VB 2/3 decompiling. Half way to my goal with my VB 1/2/3 binary form to text converter is almost complete, you can make these things a lot faster after the first time around.

    Some of the internal structures that I used can be found at vb-decompiler.com a nice place to get you started on a P-Code decompiler. That's where I started and within a couple months I now know a lot of information and how VB really works.

    Native decompiling I actually think it can be done, but I would have to write my own disassembly engine then I can at least process and translate certain vb api calls. Very time consuming.
    Semi VB Decompiler 0.07 Getting better everyday
    http://www.visualbasiczone.com/produ...ivbdecompiler/
    VisualBasicZone
    http://www.visualbasiczone.com
    EasyPHPBB.com
    Free PHPBB forums the quick and easy way!

  5. #5
    New Member
    Join Date
    Aug 2006
    Posts
    1

    Re: VB6- Semi VB Decompiler

    Great App !!

  6. #6
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: VB6- Semi VB Decompiler

    I just downloaded it, and tried on one of my VB exe projects, and I get an error:
    See red line (Line number 510)
    VB Code:
    1. Sub OpenVBExe(FilePath As String, FileTitle As String)
    2. ....
    3. ....
    4. ....
    5.         'Decide if to get Optional Info or not
    6.         If ((gObject(loopC).ObjectType And &H80) = &H80) Then
    7.            
    8.             Get #f, , gOptionalObjectInfo
    9.             'Dim testLink() As tEventLink
    10.             Dim LinkPCode() As MethodLinkPCode
    11.             Dim LinkNative() As MethodLinkNative
    12.            
    13.             'Resize the Arrays
    14.             [COLOR=Red]ReDim LinkPCode(gOptionalObjectInfo.iEventCount - 1)[/COLOR]
    15.             ReDim LinkNative(gOptionalObjectInfo.iEventCount - 1)
    16.            
    17.             'MsgBox gOptionalObjectInfo.iEventCount
    18.             If gOptionalObjectInfo.aEventLinkArray <> 0 And gOptionalObjectInfo.aEventLinkArray <> -1 Then
    The error is because gOptionalObjectInfo.iEventCount is = 0

  7. #7
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: VB6- Semi VB Decompiler

    I found another VB decompiler but just the same as VB RezQ you don't see any code and this one doesn't recognise ActiveX's either where as VB RezQ does.

    http://www.softpedia.com/progDownloa...oad-34504.html
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  8. #8
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    Re: VB6- Semi VB Decompiler

    nise app, may be usfull for learning about the exe structure. shame someone can;t make a full VB-Decompiler for VB6 or at least get a group together and make one, I know there used to be a VB6 Decompiler been worked on some years ago duno what happened to the site tho.

    as for Full Decompile support for VB2 and VB3 apps that should be quite easy as someone did release the sourcecode for a Full VB3 Decompiler some years I remmber seeing the code, you should have a google for it

    nise code anyway.
    When your dreams come true.
    On error resume pulling hair out.

  9. #9
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: VB6- Semi VB Decompiler

    Quote Originally Posted by dreamvb
    as for Full Decompile support for VB2 and VB3 apps that should be quite easy as someone did release the sourcecode for a Full VB3 Decompiler some years I remmber seeing the code
    Yes this source code is on

    PSC

    He some how decompiled DiDo's. It doesn't work it was never completed, he was asking users to help him complete it.
    Last edited by Keithuk; Mar 13th, 2007 at 03:04 PM.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  10. #10
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: VB6- Semi VB Decompiler

    Quote Originally Posted by vbgamer45
    Half way to my goal with my VB 1/2/3 binary form to text converter is almost complete
    I found a VB 1/2/3 binary Form to VB6 text Form converter, it work very well.

    http://www.gridlinx.com/vb3.htm
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Posting Permissions

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



Click Here to Expand Forum to Full Width