Quote:
Originally Posted by کunβeam
Hmm, I would still have to go through all the string  Oh, and how do I detect the boundaries ? I mean, in asm :]
|
check:
cmp byte ptr [eax+13], 'e'
jne advancecheck
cmp [eax+14], 'ymen'
jne somewhere
advancecheck:
cmp byte ptr [eax+14], 00h
je outofhere
inc eax
jmp check
outofhere:
; didnt find the string, so bomb...
somewhere:
cmp byte ptr [eax+14+4], 00h ; is it 'enemy' + terminator?
jne check
; do stuff cos its 'enemy'
something like that... and they're only repetitive cos u aint acting on them when i mention them ;p