aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2014-11-26 15:01:35 +0100
committertoni <matzeton@googlemail.com>2014-11-26 15:01:35 +0100
commit63570f58baad9dbbfe7fd7226f48870d43cf9ccf (patch)
tree096007fc4e46da91b6a72746c0877ca7bd4c3082
parentbcb9a09d066632f64df9c1bc4568da0d77921f7b (diff)
parent33e88ac80ac4a4f992168c0f327c04dba910569a (diff)
Merge branch 'master' of github.com:lnslbrty/bufflow
-rw-r--r--crypter/xor2_decoder.asm11
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