i wanted to have a little fun with a sample of code which I tried to analyze. So, first I give it to the PEiD program and that tells me that it is packed with UPX. So, then I unpacked it with UPX. To ckeck if it unpacked correctly, I opened now the unpacked version again with PEiD which now tells me: Nothing found Then I opened the unpacked version with "Detect it Easy 0.88" and it tells me the following:
As you can see, it is compiled with Microsoft Visual C/C++ etc. So, I assume that the unpacking process was ok. Also, I open it with IDA PRO. Everything seems to be clear (I mean there is a big list of imported functions, IDA PRO starts the unpacked version with a WinMain(x,x,x,x) etc.) But when I open it with Ollydbg then the following happens:
a) It starts with the MOV-instructions that you can see in the picture (see below)
b) you can not see it in the picture, but ollydbg asks me to pass an Access violation exception to the program, so I press Shift+F9. But when I do that and after press F7 to step further, suddenly the process terminates itself.
My Question: What can I do in such a case?
PS: I checked all exception field in the Debug options menu. But without any success.
best regards,
0xc0000005
then the problem is certainly DEP. – AStopher