xxxxx
November 21st, 2006, 21:34
Quote:
[Originally Posted by bboitano;60388]Every single application I try and use this with, I get "The application failed to initialize properly (0xc0000005). Click on OK to terminate the application" twice.
|
Hi, I had have same problem.
Seams that problem is in hardware DEP (Data execution protection) builded in your processor.
Nice info here:
http://en.wikipedia.org/wiki/NX_bit
Code which resist in data section could not be executed. So I patch code before VirtualProtectEx to include executable flag for memory also. And all work nice and shinny. :-)
Workaround: unpack kam, if don't go by hand you can use PE Explorer. Search for this part of code in Olly or some other debugger.:
00401779 |. 50 PUSH EAX ; /pOldProtect = NULL
0040177A |. 6A 04 PUSH 4 ; |NewProtect = PAGE_READWRITE
0040177C |. 6A 01 PUSH 1 ; |Size = 1
0040177E |. FF75 0C PUSH [ARG.2] ; |Address = NULL
00401781 |. FF75 08 PUSH [ARG.1] ; |hProcess = 004080CF
00401784 |. E8 CB6C0000 CALL <JMP.&KERNEL32.VirtualProtectEx> ; \VirtualProtectEx
exchange
0040177A |. 6A 04 PUSH 4
with
0040177A |. 6A 40 PUSH 40
And that should be it.
(hope that didn't break internal way how kam working, but seams all work for me)
ah, yes, big thanks to kakeeware for nice peace of software :-)
Enjoy godfather+