summaryrefslogtreecommitdiff
path: root/other/shellkit/x86_linux/xor.s
blob: 29e3b78735b2c9ea9154d18d940fad6fa0fdd9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
	.globl	cbegin
	.globl	cend

cbegin:
	jmp	XOR_down

XOR_up:
	popl	%ebx
	movb	$0x26,	%cl		/* lenght */

XORLoop:
	xorb	$0x64,	%bl		/* xor key */
	incl	%ebx
	dec	%cl
	jnz	XORLoop
	jmp	XORLoopDone

XOR_down:
	call	XOR_up

XORLoopDone:
	.ascii	""

cend: