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

haggar's ASProtect 1.23RC4 tutorial

 
Post new topic   Reply to topic    www.reversing.be Forum Index -> Unpacking
View previous topic :: View next topic  
Author Message
silentenigma
New to the board
New to the board


Joined: 08 Dec 2005
Posts: 4
Location: Ankara

PostPosted: Wed Jun 21, 2006 2:55 pm    Post subject: haggar's ASProtect 1.23RC4 tutorial Reply with quote

hi ppl

i have reversed all the stuff in that tutorial haggar's ASProtect 1.23RC4 tutorial (http://www.reversing.be/article.php?story=20050329165716822). I have unpacked the proggy and understand all the stuph Wink

i have an another question. it is about IAT rebuilding.

after unpacking i open ImpREC and select our proggy under olly Wink
1. i write the OEP and Click IAT AutoSearch -> it gives a messagebox and says RVA:11000 and size:5000 . i change these sections after messagebox
2. then i click Get Imports.
3. i click Show Invalid
4. there are a lot stuph highlighted on the window. i RiGHT-Click and select one on the Haggars PLUGINS for imprec TO TRACE!!
5. this takes a lot time (a few minutes)
6. it finishes (in log part it says there are a lot failed things ???)
7. then i clicked on Fix Dump and it successfully rebuilds

BUT i couldnt open the unpacked and rebuilded Proggy

did i do smth wrong ??
where is the problem

thanks for your help Smile

NOTE: i have searched your forum but really i couldnt find the exact answer

NOTE2: i use the same proggy same version (it is still downloadable)
Back to top
View user's profile Send private message Visit poster's website
SKiLLa
Frequent poster
Frequent poster


Joined: 29 Mar 2005
Posts: 79

PostPosted: Wed Jun 21, 2006 3:17 pm    Post subject: Reply with quote

Before step 7, did you 'cut the invalid chunks' after tracing ?
And what kind of error do you get when you try to run the rebuilded app ?
Back to top
View user's profile Send private message
silentenigma
New to the board
New to the board


Joined: 08 Dec 2005
Posts: 4
Location: Ankara

PostPosted: Wed Jun 21, 2006 7:50 pm    Post subject: Reply with quote

before step 7 of course i delete all thunks Smile

and it gives the error; you know, a messagebox appers and it says this program confront with a SERIOUS problem Very Happy SEND an error report or Dont Sent Wink
this kinda message?
Back to top
View user's profile Send private message Visit poster's website
bengunn
Regular
Regular


Joined: 15 Apr 2005
Posts: 118

PostPosted: Wed Jun 21, 2006 9:06 pm    Post subject: of course? Reply with quote

Quote:

before step 7 of course i delete all thunks

Well that may be the root of the problem, imo its inadvisable to delete all those marked as invalid unless you are resonably confident they (at least some of them) are not redirected function calls. Use tutorials as a guide only and don't just accept/assume everything in them as correct.
Back to top
View user's profile Send private message
Knight
Regular
Regular


Joined: 21 Aug 2005
Posts: 122

PostPosted: Thu Jun 22, 2006 6:10 am    Post subject: Reply with quote

Maybe ur program is protected with different version of asprotect, thus plugin might not work and that screws up whole thing.

Regards,
Knight
Back to top
View user's profile Send private message
silentenigma
New to the board
New to the board


Joined: 08 Dec 2005
Posts: 4
Location: Ankara

PostPosted: Thu Jun 22, 2006 11:10 am    Post subject: Reply with quote

@bengunn:
Do you mean that shouldnt i delete those thunks? then what must i do?? Just Cut them or do nothing???

@Knight:
Dude i write in my first post, it is the same protection same file Wink
However, lets say a diffrent proggy but same protection, logic is same, i find the OEP and stolen bytes but ınfortunately i cant rebuild the import??

i wish Haggar will answer me Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
bengunn
Regular
Regular


Joined: 15 Apr 2005
Posts: 118

PostPosted: Thu Jun 22, 2006 2:13 pm    Post subject: invalid Reply with quote

Quote:

@bengunn:
Do you mean that shouldnt i delete those thunks? then what must i do?? Just Cut them or do nothing???

Actually the imprec plugin ASProtect 1.23 rc4 works perfectly on the target, I hadn't noticed you used 5000 for iat size, that is the reason for so many unresolved (invalid) 000008D8 is the correct size, you should not have any unresolved api's after using the plugin with this rva and size.
iat rva: 00011000
iat size : 000008D8
Back to top
View user's profile Send private message
haggar
Regular
Regular


Joined: 19 Mar 2005
Posts: 246

PostPosted: Thu Jun 22, 2006 7:10 pm    Post subject: Reply with quote

Click "Show invalid", then right click on them and "Cut thunk(s)". Try then.

Btw, that was my first tutorial Smile Unpacking that version today is pice of cake Cool
Back to top
View user's profile Send private message
silentenigma
New to the board
New to the board


Joined: 08 Dec 2005
Posts: 4
Location: Ankara

PostPosted: Thu Jun 22, 2006 7:59 pm    Post subject: Reply with quote

btw i 've overcome the problem Smile before writing the stolen bytes on 00 bytes on Olly, i analyze the code. Very Happy but i musn't. So first i write the stolen bytes on Olly, then analyze the code and rebuild the iat Wink and it is ok!!


@bengunn:
hey dude as u said, i should take the IAT size: 000008D8 are you sure ??
Back to top
View user's profile Send private message Visit poster's website
bengunn
Regular
Regular


Joined: 15 Apr 2005
Posts: 118

PostPosted: Thu Jun 22, 2006 8:52 pm    Post subject: iat size Reply with quote

Quote:

@bengunn:
hey dude as u said, i should take the IAT size: 000008D8 are you sure ??

yep, last two.
Code:

FThunk: 000118D0   NbFunc: 00000002
1   000118D0   ole32.dll   0069   CoUninitialize
1   000118D4   ole32.dll   003B   CoInitialize
Back to top
View user's profile Send private message
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.87 seconds