diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/shellkit/x86_linux/xor.s | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/shellkit/x86_linux/xor.s')
| -rw-r--r-- | other/shellkit/x86_linux/xor.s | 24 |
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 | |||
| 4 | cbegin: | ||
| 5 | jmp XOR_down | ||
| 6 | |||
| 7 | XOR_up: | ||
| 8 | popl %ebx | ||
| 9 | movb $0x26, %cl /* lenght */ | ||
| 10 | |||
| 11 | XORLoop: | ||
| 12 | xorb $0x64, %bl /* xor key */ | ||
| 13 | incl %ebx | ||
| 14 | dec %cl | ||
| 15 | jnz XORLoop | ||
| 16 | jmp XORLoopDone | ||
| 17 | |||
| 18 | XOR_down: | ||
| 19 | call XOR_up | ||
| 20 | |||
| 21 | XORLoopDone: | ||
| 22 | .ascii "" | ||
| 23 | |||
| 24 | cend: | ||
