Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #16  
Old 06-18-2009, 07:13
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 508
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 334
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
Talking

my friend Git ...I was talking about unpack just for exe file (main file -DecoStudio.EXE-)
because it has the check ,not other files ( dll files ) .
so the check for Time is passed by the programmer him self not by useing dongole Time limit ..it is just in this target I think ...I don't know I am not that experience in dongle -mabye I will ask some newbi quesion later ,so don't find this strange -
anyway patch this check is very simple it is just patch
jb XXX >>> jmp
not esle .
anyway work on unpack target protected by
"HASP HL Protection V1.X -> Aladdin " ...not easy as well as .
anyway I have but a way to to deal with it and this is the IAT just to make other sure that I don't forget this thread ...heheehe
and the unpack me will send it to u ...
anway pls Git ask backdoor_b to send the program to u ..then I will send the unpack to u later ...because -IDA file for exe file- is very big and I can't upload it to u .
I have limit upload downlaod, here just for 99 MB ...

the iat has some missing kernel API 3 or 4 ..so I need to find how it hide this API ..when finish I will send the file to u .
cya
Attached Files
File Type: txt IAt.txt (171.7 KB, 41 views)
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
The Following User Gave Reputation+1 to ahmadmansoor For This Useful Post:
backdoor_b (06-18-2009)
  #17  
Old 06-18-2009, 18:38
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,115
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 108
Thanks Rcvd at 216 Times in 124 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
Many thanks Ahmad. "HASP HL Protection V1.X -> Aladdin " is the shell / envelope tied to the dongle. You can know it is the case usually when you see ".protect" section name. Often this shell/envelope encryption is applied several times on top of each other. Unless you have tools to generate the emulator parameters, it can be a pain to do manually. It is achieved with multiple layers of encryption using the dongle API hasp_encrypt and decrypted during run with hasp_decrypt.

Usual method is to make basic emulator, run target and hasp logger until it puts up error dialog, then save dump as dump01.exe. Search the dump01.exe for input parameter to any of the hasp_decrypt calls in the log. When you find it, search back in the file for non-Unicode string GetTickCount followed by 4 0x00 bytes. Count another 4 bytes and then you have the start of the Q/A pairs block, so if GetTickCount string starts at 0x11F50, block starts at 0x11F64. Copy 0x1000 bytes from that address to a file called, say, pairs01.bin. The first 2048 bytes of that file represent 128 ATable entries for emulator and last 2048 bytes represent 128 corresponding QTable entries. Add those 128 Q/A pairs to the emulator and restart emulator. Much easier if you write a small program to convert pairs.bin to registry entries.

Now run application and hasp logger again. Again, it will maybe put up error dialog about Envelope. Again save dump, this time as dump02.exe. Search through dump02.exe for input value of hasp_decrypt call in log. Same as before, search back for GetTickCount, copy 4096 byte block from 8 bytes past GetTickCount to new file pairs02.bin. Add the new 128 pairs to the emulator and restart. This time the application may run, maybe not. Repeat procudure until no Envelope error. You now have emulator covering all envelope hasp_decrypt calls. If the programmer was clever, he has used the API and there will be many hasp_decrypt and hasp_encrypt calls in the program with random parameters and it is almost impossible to emulate. However, many programmers do nothing more than put shell/envelope around program and call it protected. If so, you now have 100% emulation of dongle for that app.

Git
Reply With Quote
The Following 2 Users Gave Reputation+1 to Git For This Useful Post:
backdoor_b (06-18-2009), DCA (06-20-2009)
  #18  
Old 06-18-2009, 19:13
Git's Avatar
Git Git is offline
Old Git
 
Join Date: Mar 2002
Location: Torino
Posts: 1,115
Rept. Given: 220
Rept. Rcvd 265 Times in 157 Posts
Thanks Given: 108
Thanks Rcvd at 216 Times in 124 Posts
Git Reputation: 200-299 Git Reputation: 200-299 Git Reputation: 200-299
I should add that the hasp_decrypt entry that you use to search the dump should be the last one entered in the log before the application failed. You then ensure you are looking at a Q/A pair that has not yet been found in an earlier layer.

Note for Admin : I still cannot see an Edit button on any of my posts so I have to comment to myself rather than editing the original.

Later : OK, I posted that and straight away saw an Edit button!. I think the problem arises if you logout and login again.

Git
Reply With Quote
  #19  
Old 06-21-2009, 04:19
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 508
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 334
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
Thumbs up Finish it

Ok ....... I have make the easy and the best way to unpack it ,as always .
my friend backdoor_b pls can u send the program to Git .
I need for him to define which version of
"HASP HL Protection V1.X -> Aladdin"
so when I write the tut I will put the exact version .
Git u have explain the inf very Good ...( nice work man ).
tomorrow I will send the unpacked file to backdoor_b and Git .
note :
@Git: about the guy which u told me about it in ur PM .
I have note that he put another tut. it is not his tut and it is not my way in unpack this version .
anyway I am sorry for this mistake from him .
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
  #20  
Old 06-21-2009, 16:51
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 508
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 334
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
guys check ur PM ...
it contain the 2 unpacked files .
1-pure unpacked file
2-Cracked unpacked file

so have fun guys
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
The Following User Gave Reputation+1 to ahmadmansoor For This Useful Post:
backdoor_b (06-23-2009)
  #21  
Old 06-23-2009, 23:02
backdoor_b backdoor_b is offline
Friend
 
Join Date: Sep 2005
Location: Mexico
Posts: 45
Rept. Given: 53
Rept. Rcvd 22 Times in 13 Posts
Thanks Given: 45
Thanks Rcvd at 1 Time in 1 Post
backdoor_b Reputation: 22
Thanks, i already send it to git.
Reply With Quote
  #22  
Old 10-18-2009, 13:04
remal
 
Posts: n/a
I'm sorry but where can I find your tut, ahmadmansoor?
Reply With Quote
  #23  
Old 12-03-2009, 15:53
banch banch is offline
Friend
 
Join Date: Sep 2005
Posts: 165
Rept. Given: 11
Rept. Rcvd 11 Times in 4 Posts
Thanks Given: 56
Thanks Rcvd at 21 Times in 16 Posts
banch Reputation: 12
Good work.
I will try.
Reply With Quote
  #24  
Old 12-03-2009, 23:33
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 508
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 334
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
Talking

Quote:
Originally Posted by remal View Post
I'm sorry but where can I find your tut, ahmadmansoor?

will come soon for the public
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
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



All times are GMT +8. The time now is 23:47.


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