Function at 0x459038
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
imul esi, esi, 6
add esi, 5
test esi, esi
js 0x45905b
shr esi, 2
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x459054
mov dword [ebp + 0xc], esp
mov ebx, ecx
test ebx, ebx
js 0x45906e
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x459067
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x459082
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00458f20
test bl, bl
jne 0x459160
mov dword [ebp - 8], 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, 4
mov edx, dword [ebp + 0x14]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4590b8
mov eax, 4
mov edx, dword [ebp + 0x14]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4590cc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00458d84
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
and ebx, 0xff
and ebx, 0xff
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4590fe
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x4590ad
mov eax, 4
mov edx, dword [ebp + 0x14]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45912d
mov eax, 4
mov edx, dword [ebp + 0x14]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x45913e
mov eax, 4
lea ecx, [ebp - 0xc]
mov edx, dword [ebp + 0x14]
mov bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
dec eax
jne 0x459152
jmp 0x45922b
cmp bl, 1
jne 0x45922b
mov dword [ebp - 8], 0xfffffff0
mov eax, dword [ebp + 0xc]
add eax, 0x5a
mov dword [ebp - 0x18], eax
mov eax, 4
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x459184
mov eax, 4
mov edx, dword [ebp + 0x14]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x459198
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00458d84
mov eax, 4
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
mov esi, dword [ebp + 0x14]
add esi, 4
mov bl, byte [edx]
xor bl, byte [ecx]
mov byte [esi], bl
inc esi
inc ecx
inc edx
dec eax
jne 0x4591ca
sub dword [ebp - 0x18], 6
inc dword [ebp - 8]
jne 0x459179
mov eax, 4
mov edx, dword [ebp + 0x14]
add edx, 4
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx]
mov byte [edx], cl
inc edx
inc dword [ebp - 0x18]
dec eax
jne 0x4591f0
mov eax, 4
mov edx, dword [ebp + 0x14]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x459206
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
mov ebx, dword [ebp - 0x18]
mov byte [ebx], cl
inc dword [ebp - 0x18]
inc edx
dec eax
jne 0x45921d
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00458fa4
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10