What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Decompile dll

Decompile dll
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. Decompile dll
I want to decompile a dll file from one of my games. I want to mod it. How could I get at the source code of the dll?
[Image: top.gif]
03-17-2005 05:31 AM
Profile PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Decompile dll
Its impossible to find the source code of a compiled program, but you can disassemble it, just google it
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
03-17-2005 06:06 AM
Profile PM Web Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Decompile dll
I did Google, for some reason it's really hard to find any thing good on this topic. :)
[Image: top.gif]
03-17-2005 06:09 AM
Profile PM Web Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: Decompile dll
Disassembling isn't something you can learn in an hour. Here's a link to what I think is one of the best debuggers there is: OllyDbg. I think you'll be put off as soon as you see what it looks like dissassembled though. :P
The previous sentence is false. The following sentence is true.
03-17-2005 07:46 AM
Profile PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Decompile dll
So I guess before I can do any editing I have to learn ASM :(

Theres no easyer way?
[Image: top.gif]
03-17-2005 08:28 AM
Profile PM Web Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: RE: Decompile dll
quote:
Originally posted by DJeX
So I guess before I can do any editing I have to learn ASM :(

Theres no easyer way?

no, but it's be cool if someone created a program that decomipiled it to asm, then made it into liek C++ or C# code. now that would sell. :P

ahwell, it's not like Assembly is hard Djex. the calls and operators and stuff. its just the Numbers and Hex and stuff that overwhelms me.
[Image: jeansiger5.jpg]
03-17-2005 12:19 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Decompile dll
quote:
Originally posted by Ash_
no, but it's be cool if someone created a program that decomipiled it to asm, then made it into liek C++ or C# code. now that would sell.
That is impossible in 99,9999999999% of all cases. The request for decompilers is as old as programming itself. Only a very small number of decompilers have ever been created.

And these are either for specific versions of specific languages, and/or can only be used in very specific situations (eg: debug code is compiled inside executable). In either case, the output of the decompiler is often not what you expect it to be and never 100%.

Also note that decompiling something is not for the faint of heart, you must be a real ASM and PC guru to pull something like this off.

There is a reason why decompilers almost don't exist (and it is not because it is illegal).

EDIT: Als note that disassembling and decompiling are two different things...

This post was edited on 03-17-2005 at 01:40 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-17-2005 01:39 PM
Profile PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Decompile dll
What’s the difference between disassembling and decompiling?

How do the anti-virus company’s do it then? They must have a program to take apart the viruses to see how they work?
[Image: top.gif]
03-17-2005 07:45 PM
Profile PM Web Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: Decompile dll
quote:
Originally posted by DJeX
What’s the difference between disassembling and decompiling?

How do the anti-virus company’s do it then? They must have a program to take apart the viruses to see how they work?


They disassemble.

And Cookie's right.. it's not for the faint at heart. Just one look at it will put you off as said above. Take a look here, maybe it'll help you. :/
The previous sentence is false. The following sentence is true.
03-17-2005 10:35 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Decompile dll
quote:
Originally posted by DJeX
What’s the difference between disassembling and decompiling?
disassembling is turning hexadecimal codes (the things you see when you open a compiled program in a hex editor*) into assembler (aka machine code**)

Decompiling goes a step further and changes the machinecode into programming language. But because many information is lost when you compile a program you are almost never able to reverse it in a decent way.


  • Hexadecimal codes:
    004E33E7  E8 DC 2F 09 00 83 EC 24 53 56 8B F1 8B 8E 0C 01 00 00 57

  • equivalent assembler codes:
    call SUB_L005763C8
    sub esp,00000024h
    push ebx
    push esi
    mov esi,ecx
    mov ecx,[esi+0000010Ch]
    push edi

quote:
Originally posted by DJeX
How do the anti-virus company’s do it then? They must have a program to take apart the viruses to see how they work?
Yes, but you don't need a decompiler for that. They don't need the actual programming code as those guys know how to read assembler...

This post was edited on 08-30-2006 at 05:38 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-17-2005 11:34 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On