summaryrefslogtreecommitdiff
path: root/other/shellkit/x86_linux/xor.s
diff options
context:
space:
mode:
Diffstat (limited to 'other/shellkit/x86_linux/xor.s')
-rw-r--r--other/shellkit/x86_linux/xor.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/other/shellkit/x86_linux/xor.s b/other/shellkit/x86_linux/xor.s
new file mode 100644
index 0000000..29e3b78
--- /dev/null
+++ b/other/shellkit/x86_linux/xor.s
@@ -0,0 +1,24 @@
1 .globl cbegin
2 .globl cend
3
4cbegin:
5 jmp XOR_down
6
7XOR_up:
8 popl %ebx
9 movb $0x26, %cl /* lenght */
10
11XORLoop:
12 xorb $0x64, %bl /* xor key */
13 incl %ebx
14 dec %cl
15 jnz XORLoop
16 jmp XORLoopDone
17
18XOR_down:
19 call XOR_up
20
21XORLoopDone:
22 .ascii ""
23
24cend: