Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2003, 09:31
annibal
 
Posts: n/a
Well...HELP please!

Hello all

Ok, i'm a newbie so excuse me if i will say some bullshits :P
Are some days that i'm playing with this app hxxp://mscan.com/download/MscanSstv.exe.
Is Armadilled. I have unpacked using dillodump 2.55, but wasn't able to fix it right, even using ImportREC 1.6 final. For sure is my fault. But any case my target was just to have something that i can disasseble and then use a loader. Well i do that, i found the program bugs i need to fix...and now my problems start. Any loader patch the wrong process. The problem is that the program when start create 2 different process and any loader i tryed patch the first one (wrong) and not the second...I try also using loader like pelg that use also class name or windows name..but same result
Currently the only way i found is using winhex and manually select the process and patch directly in memory :/

Any suggestion is wellcome
Thanks a lot
Reply With Quote
  #2  
Old 08-20-2003, 11:29
Lunar_Dust
 
Posts: n/a
Yes, armadillo's CopyMem protection creates a new process under a debugger (the first process), so the only real good way to patch the process is either program your own custom loader which can patch the second process when it gets created, or unpack the protected app (which you've tried to do already).

Out of curiosity, did DilloDumper do anything at all on this target ? I'm thinking it must have dumped it at least for you to be able to disasm it...

I'll have a look at it tomorrow at work

-Lunar (Working on some new Arma toolz)

Last edited by Lunar_Dust; 08-20-2003 at 11:33.
Reply With Quote
  #3  
Old 08-20-2003, 11:42
Lunar_Dust
 
Posts: n/a
This target has two "data" sections, one called ".idata", and another called ".rdata". DilloDumper only takes an educated guess at which section the Import Table is in, so if you had trouble getting the import table, this could be why. I never got it fully debugged for multiple sections like this program has.

Anyway, the ".idata" section is at offset 158000
and the ".rdata" section is at offset 157000

DilloDumper should have given you one of these numbers. If the one if gave you didn't work, then try the other one by manually typing it into ImpREC instead of the first number you already tried, and see if you can then find the imports. If DilloDumper was able to actually dump the program, the import table should be there, clean, somewhere. Just have to find it.


Here is the Import table I got....looks like the file still has some bad pointers...it starts but crashes. Could be that it's looking for the Arma shell now, so it had to be tricked yet.



-Lunar

Last edited by Lunar_Dust; 08-20-2003 at 11:48.
Reply With Quote
  #4  
Old 08-20-2003, 11:50
Lunar_Dust
 
Posts: n/a
Had to clean a lot of bad thunks. Still not sure if it's completely right. Like I said, program could still check for shell, if it crashes you have to track down why. Imports should be fine - If DilloDumper can dump the file, it definitely turns off import redirection. All imports will be valid (except for bad entries that you need to trim out).


-Lunar
Attached Files
File Type: zip imports.zip (5.7 KB, 21 views)
Reply With Quote
  #5  
Old 08-22-2003, 03:01
annibal
 
Posts: n/a
..ok :)

WelL.. THANKS YOU A LOT!!!

I'm going today to have holidays but when back i will fight (try to..) again the beast. Thanks again, see you soon!!!
Reply With Quote
  #6  
Old 08-22-2003, 04:22
Lunar_Dust
 
Posts: n/a
I think those imports are not all right, I have to re-post a correct one.

Still, I also cannot get the program to run without crashing yet. It's written In Borland C it appears.

-Lunar
Reply With Quote
  #7  
Old 08-29-2003, 03:36
annibal
 
Posts: n/a
Thanks a lot lunar for your efforts i need to study more..
I hope that some loader coder will get your idea for a "second process patcher"

Best wishes
Reply With Quote
  #8  
Old 08-29-2003, 15:32
Squidge's Avatar
Squidge Squidge is offline
Drunken Squirrel
 
Join Date: Oct 2002
Posts: 412
Rept. Given: 4
Rept. Rcvd 9 Times in 4 Posts
Thanks Given: 0
Thanks Rcvd at 6 Times in 6 Posts
Squidge Reputation: 9
Just had a look at this. Unpacked fine, but it seems to be infested with Nanomites. Without the Arma loader, the int 3 calls get caught by the applications seh, and then it starts doing strange things...
Reply With Quote
  #9  
Old 08-29-2003, 23:14
Lunar_Dust
 
Posts: n/a
Ah, yes, nanomites. For some reason I got stupid and didn't check for them. Thanks squidge.

-Lunar
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 21:27.


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