From 4bbd82258fc358af117b45fed943b5df7a03280b Mon Sep 17 00:00:00 2001 From: toni Date: Sun, 23 Nov 2014 13:35:58 +0100 Subject: - xor2_decoder: xor'ing more than 1 byte (wip) --- crypter/xor2_decoder.asm | 17 +++++++++++++++++ crypter/xor_decoder.asm | 4 +--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 crypter/xor2_decoder.asm 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 -- cgit v1.2.3