diff options
-rw-r--r-- | crypter/xor2_decoder.asm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/crypter/xor2_decoder.asm b/crypter/xor2_decoder.asm index 87c248f..0545405 100644 --- a/crypter/xor2_decoder.asm +++ b/crypter/xor2_decoder.asm @@ -6,11 +6,20 @@ next: pop esi xor ecx,ecx xor eax,eax -mov cl,0 +xor edx,edx +mov cl,0 ; buffer length +mov dl,4 ; xor padding change: xor byte [esi + ecx - 1],0 + dec cl +jnz done ; no more bytes left +dec dh jnz change +mov dh,dl +jmp change + +done: jmp short ok go: call next |