Log in

View Full Version : Code Analyse bug?


Norb
February 9th, 2003, 09:44
Trying to debug a program I've written using MASM32, but Olly doesn't seem to like it with analyse turned on.

With analyse on/active ollydbg outputs this:

0064A638 . 8B0424 MOV EAX,DWORD PTR SS:[ESP]
0064A63B . 50 PUSH EAX
0064A63C . 8B5424 20 MOV EDX,DWORD PTR SS:[ESP+20]
0064A640 > . 8B5A 08 MOV EBX,DWORD PTR DS:[EDX+8]
0064A643 . 53 PUSH EBX
0064A644 . 6A 0C PUSH 0C
0064A646 . 83C0 04 ADD EAX,4
0064A649 . 50 PUSH EAX
0064A64A . 83C2 0C ADD EDX,0C
0064A64D . 52 PUSH EDX
0064A64E 83 DB 83
0064A64F C0 DB C0
0064A650 > . 1150 E8 ADC DWORD PTR DS:[EAX-18],EDX
0064A653 . 92 XCHG EAX,EDX
0064A654 . 60 PUSHAD
0064A655 . 04 00 ADD AL,0
0064A657 . C3 RETN
0064A658 90 NOP

With analyse turned off / inactive, it outputs the correct code:

0064A638 8B0424 MOV EAX,DWORD PTR SS:[ESP]
0064A63B 50 PUSH EAX
0064A63C 8B5424 20 MOV EDX,DWORD PTR SS:[ESP+20]
0064A640 > 8B5A 08 MOV EBX,DWORD PTR DS:[EDX+8]
0064A643 53 PUSH EBX
0064A644 6A 0C PUSH 0C
0064A646 83C0 04 ADD EAX,4
0064A649 50 PUSH EAX
0064A64A 83C2 0C ADD EDX,0C
0064A64D 52 PUSH EDX
0064A64E 83C0 11 ADD EAX,11
0064A651 50 PUSH EAX
0064A652 E8 92600400 CALL <emumain.ComputeChallengeResponse>
0064A657 C3 RETN
0064A658 90 NOP

Any ideas why? I know I forgot to fix the stack after the call, but this shouldn't screw up Ollydbg's disassembly
output, should it?

_Servil_
February 11th, 2003, 11:15
do you produce a debug info along with da code?
I have similar issue with undisassembled parts od images compiled with dbg info.

Norb
February 12th, 2003, 05:17
yes, think it's related?

_Servil_
February 13th, 2003, 12:28
related...

try to compile w/out dbginfo or remove the analysis.