aboutsummaryrefslogtreecommitdiff
path: root/crypter
diff options
context:
space:
mode:
Diffstat (limited to 'crypter')
-rw-r--r--crypter/xor2_decoder.asm17
-rw-r--r--crypter/xor_decoder.asm4
2 files changed, 18 insertions, 3 deletions
diff --git a/crypter/xor2_decoder.asm b/crypter/xor2_decoder.asm
new file mode 100644
index 0000000..87c248f
--- /dev/null
+++ b/crypter/xor2_decoder.asm
@@ -0,0 +1,17 @@
+BITS 32
+
+
+jmp short go
+next:
+pop esi
+xor ecx,ecx
+xor eax,eax
+mov cl,0
+change:
+xor byte [esi + ecx - 1],0
+dec cl
+jnz change
+jmp short ok
+go:
+call next
+ok:
diff --git a/crypter/xor_decoder.asm b/crypter/xor_decoder.asm
index 3aa6f59..87c248f 100644
--- a/crypter/xor_decoder.asm
+++ b/crypter/xor_decoder.asm
@@ -8,9 +8,7 @@ xor ecx,ecx
xor eax,eax
mov cl,0
change:
-mov byte al,0
-xor byte al,[esi + ecx - 1]
-
+xor byte [esi + ecx - 1],0
dec cl
jnz change
jmp short ok