kinda converted these from fasm and I cant get them to work :/ I know the offfset value must be correct.. cuz its being calculated correctly.. the exe doesnt die or anything it just doesnt even run? lol.... anyone got any idea ?
single_step1 macro
LOCAL _handler, _over, _int3, A1
start_calc:
LEA eax,[OFFSET _handler]
sub eax, offset start_calc
call A1
A1: pop ebx
sub ebx, offset A1
add eax, ebx
push eax
xor eax, eax
push dword ptr fs:[eax]
mov fs:[eax], esp
int 3
@@:
jmp @B
int 1
@@:
jmp @B
nop
nop
nop
nop
jmp _over
_handler:
mov ecx, [esp+08h]
mov eax,[esp+0Ch]
cmp ecx, 80000003h
jz _int3
add dword ptr [eax+0b8h], 4
xor eax, eax
retn
_int3:
add dword ptr [eax+0B8h], 3
xor eax, eax
retn
_over:
endm
single_step2 macro
mov ecx, 1000h
@@:
pushfd
or byte ptr [esp + 1], 1
popfd
dec ecx
jnz @B
endm