santosh wrote:
> Herbert Kleebauer wrote:
>
> Good luck to jella deciphering this one!
For example, what do you think is easier to understand
(as Betov would say, which one uses a more "full talking
assembly syntax"):
DECODE: LODSB
XOR AL, DL
STOSB
LOOP DECODE
MOV CX, 000AH
POP SI
LEA DI, data5
REPE CMPSB
JNE WHAT_THE
or:
_20: move.b (r5.w)+-,r0 ; get next byte of pass
eor.b r1,r0 ; eor it with dat62
move.b r0,(r6.w)+-{s1} ; store it back
dbf.w r2,_20 ; loop until dat62 processed
move.w #10,r2 ; compare 10 bytes
move.w (sp)+,r5 ; pointer to pass
move.w #inbuf,r6 ; pointer to input input string
repeq_r2 cmp.b (r6.w)+-{s1},(r5.w)+- ; compare
bne.b wrong ; strings not equal
Or where is the password more obvious:
DB 64H, 41H, 46H, 40H, 0EH, 1DH, 14H, 1FH, 18H,0AH, 00H
or here:
pass: dc.b 'J' ^ key2
dc.b 'o' ^ key2
dc.b 'h' ^ key2
dc.b 'n' ^ key2
dc.b ' ' ^ key2
dc.b '3' ^ key2
dc.b ':' ^ key2
dc.b '1' ^ key2
dc.b '6' ^ key2
dc.b '$' ^ key2
dc.b 0


|