Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2005, 18:23
Nacho_dj's Avatar
Nacho_dj Nacho_dj is offline
Lo*eXeTools*rd
 
Join Date: Mar 2005
Posts: 211
Rept. Given: 16
Rept. Rcvd 179 Times in 34 Posts
Thanks Given: 44
Thanks Rcvd at 137 Times in 41 Posts
Nacho_dj Reputation: 100-199 Nacho_dj Reputation: 100-199
Not very clear talking about .rsrc section

Hello:

Does anybody here know a good tute about the .rsrc section of PE header?

I have been taking a sigth to the following docs:

- pecoff.pdf

- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndebug/html/msdn_peeringpe.asp

But in both of them I cannot see very clear how the data are set in this section. It appears a kind of confused to me. Maybe a good practical example would help.


Thanks!


Nacho_dj
Reply With Quote
  #2  
Old 06-28-2005, 21:09
SLV SLV is offline
Friend
 
Join Date: May 2005
Posts: 62
Rept. Given: 3
Rept. Rcvd 4 Times in 3 Posts
Thanks Given: 5
Thanks Rcvd at 2 Times in 2 Posts
SLV Reputation: 4
> .rsrc section
hmm.. Firsly u mean not section but IMAGE_RESOURCE_DIRECTORY... secondary look at windows.inc (MASM package) and look at this nice source...
Attached Files
File Type: zip ResCrypt.zip (35.0 KB, 31 views)
Reply With Quote
  #3  
Old 06-28-2005, 23:03
vodu
 
Posts: n/a
Take a look at Morphine source...

hxxp://rootkit.host.sk


Then survey this ...
procedure PrepareResourceSectionData;
Reply With Quote
  #4  
Old 06-29-2005, 00:50
sKip
 
Posts: n/a
Two very nice essays, which contain a lot informations about the topic


Tool Interface Standard (TIS): Formats Specification for Windows -> example

wxw.x86.org/intel.doc/tools.htm

pe file format by lord julius

hxtp://dl.njfiw.gov.cn/books/%BB%E3%B1%E0/Sorted_OEM/pe/The_pe_file.txt
Reply With Quote
  #5  
Old 06-29-2005, 17:21
Nacho_dj's Avatar
Nacho_dj Nacho_dj is offline
Lo*eXeTools*rd
 
Join Date: Mar 2005
Posts: 211
Rept. Given: 16
Rept. Rcvd 179 Times in 34 Posts
Thanks Given: 44
Thanks Rcvd at 137 Times in 41 Posts
Nacho_dj Reputation: 100-199 Nacho_dj Reputation: 100-199
.rsrc not so misterious yet!

Ok, I think all is a little bit clear for me.

Slv, I haven't installed the masm, so couldn't found the windows.inc. I'll try to install it and see it.
Vodu, I have found the URL you wrote down, but I couldn't find the procedure PrepareResourceSectionData, any clue?
skip, the docs you have suggested are very clear! Specially the one of Julius.

I am trying to fix some values of RVA pointing to data in the .rsrc after you have deleted some irrelevant sections of the
PE header inserted by an exe wrapper. Thus the .rsrc woulg go to a new raw position, and is getting necessary to fix the RVA values of the data.

I know you can find some tools that are doing this, but I would like insert this procedure in an unpacker/rebuilder I have developping to get "all in one".

Anyway...

Thanks for your answers!

Cheers from the sunny Spain!


Nacho_dj
Reply With Quote
  #6  
Old 06-30-2005, 02:03
vodu
 
Posts: n/a
Quote:
Originally Posted by Nacho_dj
Vodu, I have found the URL you wrote down, but I couldn't find the procedure PrepareResourceSectionData, any clue?
Just look at morphine source. I also attached it to this msg.
Attached Files
File Type: zip morphine.zip (29.7 KB, 20 views)
Reply With Quote
  #7  
Old 06-29-2005, 19:24
Jay Jay is offline
VIP
 
Join Date: Feb 2002
Posts: 249
Rept. Given: 31
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 15
Thanks Rcvd at 13 Times in 5 Posts
Jay Reputation: 3
http://www.wotsit.org/download.asp?f=res
Reply With Quote
Reply

Thread Tools
Display Modes

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
Talking about HASP papi General Discussion 1 12-26-2007 08:49


All times are GMT +8. The time now is 00:26.


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