Log in

View Full Version : reversing Delphi 6 code ...


FriX
January 10th, 2003, 11:33
Hi all!
I need lil' help.
I'm not gonna post code or anything like that, just, need advice from guys who seen this kind of a problem.

I have Delphi 6 app (D6), it was packed with AsProtect 1.2.X[New strain], anyway, it's unpacked now. PE sections have been fixed. I can run it and disassemble with W32Dasm with no problems.
But, since it's D6 app, DeDe will save me some time while reversing it. Problem is : DeDe can't disassemble it.
When i choose file and process, it's saying : "it's maybe packed or not Delphi app." Ok, np, i've tried to Dump Active Process when my unpacked program is running, so, ok, it's disassembled. But, no forms or procedures ?! So, i've look at .rsrc section and noticed there is no TPF0 signature before forms. I've added it. DeDe can find only 2 forms (but, not the ones that i need). And finaly seen that whole PackageInfo section is empty!Just 00 bytes in whole section. So, that's why DeDe can't find forms (??), except 2 useless that i dont need.It's maybe some kind of protection, but, i dont know how to 'rebuild' PackageInfo 'buffer' form that app ?!
Btw, if this helps, When i put TPF0 on all forms, i get sometimes ReadStream error ...

I hope someone has some advice or maybe solution for this kind of problems.
Thx.
Btw, sorry for bad english...

TheSearcher
January 10th, 2003, 12:54
You don't like to search the board do you?
search the board you will find some clues about delphi forms.

squidge
January 10th, 2003, 14:26
1) search board

2) use IDA with Delphi6 FLIRT.

both will give you gr8 results.

Kayaker
January 10th, 2003, 17:37
Quote:
Originally posted by FriX
Delphi 6
AsProtect
TPF0


The TPF0 issue came up recently. I think a manual fix is possible, if long and boring, if you really want DeDe...

FriX
January 10th, 2003, 21:49
Ok, sorry, i've just regged and second later posted this message. So, i'll try to search
thx guys ...

btw, squidge, thx on IDA hint, i didn't knew that there is support for Delphi 6.

volodya
April 9th, 2003, 12:46
Guys! There are no Delphi 6-7 signatures for IDA! Even for IDA 4.3!!!

squidge
April 9th, 2003, 14:44
then make your own. It's not exactly difficult.

volodya
April 9th, 2003, 15:06
Which files should I use to build VCL-sigs?

squidge
April 9th, 2003, 15:18
Whatever files the linker would bundle with the dynamically linked app. These normally end up in ".bpl" so just do all of those for now.

dion
April 10th, 2003, 05:59
Quote:
Originally posted by squidge
Whatever files the linker would bundle with the dynamically linked app. These normally end up in ".bpl" so just do all of those for now.


uhm... ever asking that question long ago, and no one replies. sorry, but i think you never doing it, isnt it, squide?

squidge
April 10th, 2003, 07:20
I'm not doing it no, but then again, I don't need to as I've not got a delphi prog I want to hack.