aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2014-11-23 13:25:58 +0100
committertoni <matzeton@googlemail.com>2014-11-23 13:25:58 +0100
commitdb4092b9acd2c6041fd44f308058063f7a4ad59b (patch)
treeaa7fb0890868ce16fbe7f736844b1b2a9e37bb81
parenta10d4f3aa6d62cf225a3771f421ad5fc54813502 (diff)
- simple xor decoder
-rw-r--r--crypter/xor_decoder.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/crypter/xor_decoder.asm b/crypter/xor_decoder.asm
new file mode 100644
index 0000000..3aa6f59
--- /dev/null
+++ b/crypter/xor_decoder.asm
@@ -0,0 +1,19 @@
+BITS 32
+
+
+jmp short go
+next:
+pop esi
+xor ecx,ecx
+xor eax,eax
+mov cl,0
+change:
+mov byte al,0
+xor byte al,[esi + ecx - 1]
+
+dec cl
+jnz change
+jmp short ok
+go:
+call next
+ok: