newbcrk
March 7th, 2003, 16:46
:bpx getfiletime
Break due to BPX KERNEL32!GetFileTime (ET=2.15 seconds)
:u 77E7B19A L FF
KERNEL32!GetFileTime
001B:77E7B19A 55 PUSH EBP
001B:77E7B19B 8BEC MOV EBP,ESP
001B:77E7B19D 83EC30 SUB ESP,30
001B:77E7B1A0 8B4508 MOV EAX,[EBP+08]
001B:77E7B1A3 2503000010 AND EAX,10000003
001B:77E7B1A8 83F803 CMP EAX,03
001B:77E7B1AB 0F841A3F0200 JZ 77E9F0CB
001B:77E7B1B1 6A04 PUSH 04
001B:77E7B1B3 8D45D0 LEA EAX,[EBP-30]
001B:77E7B1B6 6A28 PUSH 28
001B:77E7B1B8 50 PUSH EAX
001B:77E7B1B9 8D45F8 LEA EAX,[EBP-08]
001B:77E7B1BC 50 PUSH EAX
Hello , I haven't break at the good place because I am under a api of the kernel .
How to know when I am under my target ; under a API of my target ?
Will it be writte for example
Break due to BPX 'name of my target'!GetFileTime (ET=2.15 seconds)
i press F12 and I have the code .By all apparences I am not under my target too I read call [kernel32getfiletime] and CALL [KERNEL32!CompareFileTime]
Break due to BPX KERNEL32!GetFileTime (ET=1.91 seconds
.................. call [kernel32getfiletime]
:u 77547B33 L FF
001B:77547B33 85C0 TEST EAX,EAX
001B:77547B35 7415 JZ 77547B4C
001B:77547B37 83C324 ADD EBX,24
001B:77547B3A 8D45F8 LEA EAX,[EBP-08]
001B:77547B3D 53 PUSH EBX
001B:77547B3E 50 PUSH EAX
001B:77547B3F FF152C135477 CALL [KERNEL32!CompareFileTime]
001B:77547B45 85C0 TEST EAX,EAX
001B:77547B47 7503 JNZ 77547B4C
001B:77547B49 6A01 PUSH 01
001B:77547B4B 5E POP ESI
001B:77547B4C 57 PUSH EDI
001B:77547B4D FF154C135477 CALL [KERNEL32!CloseHandle]
001B:77547B53 5B POP EBX
001B:77547B54 8BC6 MOV EAX,ESI
001B:77547B56 5F POP EDI
001B:77547B57 5E POP ESI
001B:77547B58 C9 LEAVE
001B:77547B59 C20800 RET 0008
001B:77547B5C 55 PUSH EBP
001B:77547B5D 8BEC MOV EBP,ESP
001B:77547B5F 6AFF PUSH FF
001B:77547B61 68B07B5477 PUSH 77547BB0
Thanks for all ideas
Break due to BPX KERNEL32!GetFileTime (ET=2.15 seconds)
:u 77E7B19A L FF
KERNEL32!GetFileTime
001B:77E7B19A 55 PUSH EBP
001B:77E7B19B 8BEC MOV EBP,ESP
001B:77E7B19D 83EC30 SUB ESP,30
001B:77E7B1A0 8B4508 MOV EAX,[EBP+08]
001B:77E7B1A3 2503000010 AND EAX,10000003
001B:77E7B1A8 83F803 CMP EAX,03
001B:77E7B1AB 0F841A3F0200 JZ 77E9F0CB
001B:77E7B1B1 6A04 PUSH 04
001B:77E7B1B3 8D45D0 LEA EAX,[EBP-30]
001B:77E7B1B6 6A28 PUSH 28
001B:77E7B1B8 50 PUSH EAX
001B:77E7B1B9 8D45F8 LEA EAX,[EBP-08]
001B:77E7B1BC 50 PUSH EAX
Hello , I haven't break at the good place because I am under a api of the kernel .
How to know when I am under my target ; under a API of my target ?
Will it be writte for example
Break due to BPX 'name of my target'!GetFileTime (ET=2.15 seconds)
i press F12 and I have the code .By all apparences I am not under my target too I read call [kernel32getfiletime] and CALL [KERNEL32!CompareFileTime]
Break due to BPX KERNEL32!GetFileTime (ET=1.91 seconds
.................. call [kernel32getfiletime]
:u 77547B33 L FF
001B:77547B33 85C0 TEST EAX,EAX
001B:77547B35 7415 JZ 77547B4C
001B:77547B37 83C324 ADD EBX,24
001B:77547B3A 8D45F8 LEA EAX,[EBP-08]
001B:77547B3D 53 PUSH EBX
001B:77547B3E 50 PUSH EAX
001B:77547B3F FF152C135477 CALL [KERNEL32!CompareFileTime]
001B:77547B45 85C0 TEST EAX,EAX
001B:77547B47 7503 JNZ 77547B4C
001B:77547B49 6A01 PUSH 01
001B:77547B4B 5E POP ESI
001B:77547B4C 57 PUSH EDI
001B:77547B4D FF154C135477 CALL [KERNEL32!CloseHandle]
001B:77547B53 5B POP EBX
001B:77547B54 8BC6 MOV EAX,ESI
001B:77547B56 5F POP EDI
001B:77547B57 5E POP ESI
001B:77547B58 C9 LEAVE
001B:77547B59 C20800 RET 0008
001B:77547B5C 55 PUSH EBP
001B:77547B5D 8BEC MOV EBP,ESP
001B:77547B5F 6AFF PUSH FF
001B:77547B61 68B07B5477 PUSH 77547BB0
Thanks for all ideas