Function at 0x4659a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4659b9
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4659b2
mov ecx, esp
mov dword [ebp - 9], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 8
mov eax, dword [ebp - 9]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec dword [ebp - 0x10]
jne 0x4659d1
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0046535c
cmp byte [ebp - 5], 0
jne 0x465ab3
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x465a05
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x465a1a
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 0x3c]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00465860
mov eax, 4
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x465a59
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x10
jne 0x4659fa
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0x14]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x465a7d
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x465a8f
mov eax, 4
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x465aa4
jmp 0x465b78
cmp byte [ebp - 5], 1
jne 0x465b78
mov dword [ebp - 0x10], 0xf
mov eax, 4
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x465acf
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x465ae4
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 0x3c]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00465860
mov eax, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov esi, dword [ebp + 0xc]
add esi, 4
movzx ebx, byte [edx]
xor bl, byte [ecx]
mov byte [esi], bl
inc esi
inc ecx
inc edx
dec eax
jne 0x465b23
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x465ac4
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0x14]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x465b47
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x465b59
mov eax, 4
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x465b6e
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004653dc
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0xc