Function at 0x485c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x485c69
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x485ee9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
call fcn.0045ff04
mov ebx, eax
cmp ebx, 0xffffffff
je 0x485ec0
shr ebx, 3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
jmp 0x485cb5
inc dword [ebp - 0x2c]
dec dword [ebp + 0x24]
cmp dword [ebp + 0x24], 0
jle 0x485cc3
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0
je 0x485caf
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 0x24]
sub eax, esi
sub eax, 2
cmp edi, eax
jg 0x485ec0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x24]
jge 0x485cf4
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
mov dword [eax], edx
jmp 0x485ec0
push 0
mov ecx, dword [ebp + 0x10]
mov dl, 1
mov eax, dword [0x482e04]
call fcn.00482f30
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x30]
call fcn.00483180
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x30]
call fcn.00483188
lea eax, [ebp - 0x30]
call fcn.0040dbe4
mov eax, dword [ebp + 0x24]
sub eax, edi
sub eax, esi
sub eax, 2
mov esi, eax
push esi
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x45cac8]
call fcn.004056cc
add esp, 4
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, esi
call fcn.00402f74
lea eax, [esi + ebx]
add eax, edi
inc eax
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x45cac8]
call fcn.004056cc
add esp, 4
lea eax, [ebp - 0x10]
call fcn.004048a4
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00402c84
mov eax, dword [ebp - 0x18]
lea edx, [eax + ebx]
mov eax, dword [ebp - 0x14]
mov ecx, esi
call fcn.00402c84
lea eax, [esi + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + eax], 1
add esi, ebx
mov eax, dword [ebp - 0x18]
lea edx, [eax + esi + 1]
mov eax, dword [ebp - 4]
mov ecx, edi
call fcn.00402c84
push ebx
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x45cac8]
call fcn.004056cc
add esp, 4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.004603f4
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x24]
sub ecx, ebx
dec ecx
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.004854d0
mov eax, dword [ebp - 0x18]
call fcn.004054f0
mov edx, eax
dec edx
test edx, edx
jl 0x485e0f
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx + eax]
mov esi, dword [ebp - 0x18]
xor byte [esi + eax], cl
inc eax
dec edx
jne 0x485dff
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004054f0
mov edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, ebx
call fcn.004854d0
mov eax, dword [ebp - 0x1c]
call fcn.004054f0
mov edx, eax
dec edx
test edx, edx
jl 0x485e4d
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + eax]
mov esi, dword [ebp - 0x1c]
xor byte [esi + eax], cl
inc eax
dec edx
jne 0x485e3d
mov eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x45cac8]
call fcn.004056cc
add esp, 4
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [ebp - 0x28]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00402c84
mov eax, dword [ebp - 0x18]
call fcn.004054f0
mov ecx, eax
inc ebx
mov eax, dword [ebp - 0x28]
lea edx, [eax + ebx]
mov eax, dword [ebp - 0x18]
call fcn.00402c84
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004054f0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 8]
call fcn.00485688
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485ef0
lea eax, [ebp - 0x28]
mov edx, dword [0x45cac8]
mov ecx, 6
call fcn.00404e44
lea eax, [ebp - 0x10]
call fcn.0040438c
ret