Function at 0x405a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jne 0x405a4d
xor eax, eax
jmp 0x405c7d
mov eax, 1
test eax, eax
je 0x405a99
mov dword [ebp - 8], 1
movzx ecx, byte [ebp - 8]
test ecx, ecx
je 0x405a80
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405c90
add esp, 0xc
jmp 0x405c7d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004061c0
add esp, 0xc
jmp 0x405c7d
mov edx, dword [ebp + 8]
xor edx, 0xffffffff
mov dword [ebp + 8], edx
cmp dword [ebp + 0x10], 8
jb 0x405c37
mov eax, 0x400
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx + eax*4 + 0x582e60]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, 0x400
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx + ecx*4 + 0x582e60]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, 0x400
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax + edx*4 + 0x582e60]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, 0x400
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx + eax*4 + 0x582e60]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, 0x400
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx + ecx*4 + 0x582e60]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, 0x400
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax + edx*4 + 0x582e60]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, 0x400
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx + eax*4 + 0x582e60]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, 0x400
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx + ecx*4 + 0x582e60]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 8
mov dword [ebp + 0x10], edx
jmp 0x405aa2
cmp dword [ebp + 0x10], 0
je 0x405c77
mov eax, 0x400
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx + eax*4 + 0x582e60]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
jne 0x405c3d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret