Contribute  :  Web Resources  :  Past Polls  :  Site Statistics  :  Downloads  :  Forum  
    BiW ReversingThe challenge is yours    
 Welcome to BiW Reversing
 Sunday, April 02 2023 @ 11:34 AM CEST
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Messing with imports

 
Post new topic   Reply to topic    www.reversing.be Forum Index -> Unpacking
View previous topic :: View next topic  
Author Message
sharpe
Frequent poster
Frequent poster


Joined: 20 Mar 2005
Posts: 65

PostPosted: Mon Nov 27, 2006 4:21 pm    Post subject: Messing with imports Reply with quote

Hej there,

I am writing a manual protector for the sake of learning. I want to remove all the imports and write some code that lines everything up in my stub. When I try to do a simple:

OEP:
; 402018 = 1cb1d677 (little endian)
mov dword ptr ds:[402018], <address of my IAT code> ; exception here...
jmp <old ep>
...

I get an access violation. The address 402018 holds the address of a API function.

Can anyone explain this is so?

thanks in advance.
Back to top
View user's profile Send private message Visit poster's website
moniker
Regular
Regular


Joined: 05 Sep 2005
Posts: 123
Location: lage lande

PostPosted: Mon Nov 27, 2006 6:35 pm    Post subject: Reply with quote

have you set the section attributes to writeable?
Back to top
View user's profile Send private message
sharpe
Frequent poster
Frequent poster


Joined: 20 Mar 2005
Posts: 65

PostPosted: Mon Nov 27, 2006 9:22 pm    Post subject: Reply with quote

Oh yes, a small detail Smile
The section was 40000040, now C0000040. Works like a treat.

Thanks for the help Moniker.
Best,
S.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.reversing.be Forum Index -> Unpacking All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
 Copyright © 2023 BiW Reversing
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.84 seconds