Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2005, 19:52
omidgl omidgl is offline
Friend
 
Join Date: Jul 2004
Posts: 86
Rept. Given: 10
Rept. Rcvd 4 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 5 Times in 5 Posts
omidgl Reputation: 4
Lightbulb Extracting Codes From Executable files...

Hi.

I want to extract and use some functions from an executable file(not dll) in my programs.
I've tried some about adding an internal function to Export table but it can't help me.

Can any one help me about that. or is there any tool that simplify this work?

Ragards
OMID
Reply With Quote
  #2  
Old 01-08-2005, 16:23
hajir
 
Posts: n/a
There is one export table in each Win32 exe/dll file that has some functions to export.
If your file (with exe or dll extension or others) has some functions that listed in its export table, then it is a library (Dll) file. Otherwise it is not a library (Dll) and is executable.
Real executable files (without export table) dont have any functions that you can use.
If you want to extract & use some functions from exe file, it should be an interanlly library file (in spite of its extension).
Reply With Quote
  #3  
Old 01-08-2005, 18:11
A.V
 
Posts: n/a
if you want simply rip some part of exe to your code, you can use TMG Ripper Studio. it's not a powerfull tool, but is very useful when you want to rip a small part of code, to make a keygen f.e.
Reply With Quote
  #4  
Old 01-09-2005, 09:39
TQN TQN is offline
VIP
 
Join Date: Apr 2003
Location: Vietnam
Posts: 358
Rept. Given: 143
Rept. Rcvd 24 Times in 13 Posts
Thanks Given: 196
Thanks Rcvd at 168 Times in 51 Posts
TQN Reputation: 24
Hi hajir !
An Exe can have a export table, can export functions and also export variables too (uses __declspec(dllexport) in VC++), not have to be a DLL. We can call the Exe's export functions with LoadLibrary and GetProcAddress.
We can use IDA to decompile/extract the ASM code of the require function.
Regards,
TQN

Last edited by TQN; 01-09-2005 at 09:45.
Reply With Quote
  #5  
Old 01-10-2005, 23:34
atzplzw atzplzw is offline
Friend
 
Join Date: Sep 2004
Posts: 33
Rept. Given: 1
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
atzplzw Reputation: 0
I use TMG Ripper Studio to give me a nice .asm file. Then I compile this file to a lib file and include it in my projects.
But be aware TMG Ripper Studio doesn't handle jmp tables...
Reply With Quote
  #6  
Old 01-12-2005, 02:53
McCool
 
Posts: n/a
btw. wasn't there a coderipper plugin for olly?
cos the tmg ripper studio is still a bit buggy .. crashed a few times here..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How you inject codes? Hero General Discussion 8 10-10-2005 20:11
Extracting files from a temp directory kade General Discussion 14 04-13-2003 08:08
Self Extracting Exe SLIM SLIM General Discussion 0 12-17-2002 04:34


All times are GMT +8. The time now is 10:41.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )