Function at 0x585dfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405894
mov eax, dword [ebp - 0xc]
call fcn.00405894
mov eax, dword [ebp + 0x1c]
call fcn.00405894
mov eax, dword [ebp + 0x18]
call fcn.00405894
mov eax, dword [ebp + 0x14]
call fcn.00405894
mov eax, dword [ebp + 0x10]
call fcn.00405894
mov eax, dword [ebp + 0xc]
call fcn.00405894
mov eax, dword [ebp + 8]
call fcn.00405894
xor eax, eax
push ebp
push 0x5863c1
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 8]
push 0x5863dc
push dword [ebp - 0xc]
push 0x5863dc
push dword [ebp + 0x1c]
push 0x5863dc
push dword [ebp + 0x18]
push 0x5863dc
push dword [ebp + 0x14]
push 0x5863dc
push dword [ebp + 0x10]
push 0x5863dc
push dword [ebp + 0xc]
push 0x5863dc
push dword [ebp + 8]
lea eax, [ebp - 0x44]
mov edx, 0xf
call fcn.004057a8
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x14]
call fcn.004e23d8
mov eax, dword [0x5a3650]
xor eax, dword [0x5a3654]
xor eax, dword [0x5a3658]
xor eax, dword [0x5a365c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x585ef4
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0040a850
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
call fcn.00405904
push eax
lea eax, [ebp - 0x14]
call fcn.00405904
mov ecx, dword [ebp - 0x38]
pop edx
call fcn.004e4d90
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
call fcn.004e23d8
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x14]
call fcn.0040549c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x585f4e
mov eax, dword [ebp - 0x3c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
mov al, byte [ebp - 0x2c]
and al, 0xf
mov byte [ebp - 0x34], al
mov al, byte [ebp - 0x2c]
and al, 0xf0
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x2c]
and al, 0
mov byte [ebp - 0x32], al
mov al, byte [ebp - 0x2c]
and al, 0
mov byte [ebp - 0x31], al
mov al, byte [ebp - 0x2c]
and al, 0
mov byte [ebp - 0x30], al
mov al, byte [ebp - 0x2c]
and al, 0
mov byte [ebp - 0x2f], al
mov al, byte [ebp - 0x2c]
and al, 0
mov byte [ebp - 0x2e], al
mov al, byte [ebp - 0x2c]
and al, 0
mov byte [ebp - 0x2d], al
mov dword [ebp - 0x1c], 0x801b0d01
mov dword [ebp - 0x20], 0x5dae409f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0xc
jl 0x586151
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx - 1]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx]
shl edx, 8
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 1]
shl edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 2]
shl edx, 0x18
add eax, edx
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 3]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 4]
shl edx, 8
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 5]
shl edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 6]
shl edx, 0x18
add eax, edx
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 7]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 8]
shl edx, 8
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 9]
shl edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
movzx edx, byte [edx + ecx + 0xa]
shl edx, 0x18
add eax, edx
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], eax
mov cl, byte [ebp - 0x2f]
mov eax, dword [ebp - 0x24]
shr eax, cl
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x20], eax
mov cl, byte [ebp - 0x2d]
mov eax, dword [ebp - 0x1c]
shl eax, cl
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x24], eax
mov cl, byte [ebp - 0x32]
mov eax, dword [ebp - 0x20]
shr eax, cl
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], eax
mov cl, byte [ebp - 0x30]
mov eax, dword [ebp - 0x24]
shr eax, cl
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x20], eax
mov cl, byte [ebp - 0x31]
mov eax, dword [ebp - 0x1c]
shl eax, cl
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x24], eax
mov cl, byte [ebp - 0x34]
mov eax, dword [ebp - 0x20]
shr eax, cl
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], eax
mov cl, byte [ebp - 0x2e]
mov eax, dword [ebp - 0x24]
shr eax, cl
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x20], eax
mov cl, byte [ebp - 0x33]
mov eax, dword [ebp - 0x1c]
shl eax, cl
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
shr eax, 3
xor dword [ebp - 0x24], eax
add dword [ebp - 0x28], 0xc
sub dword [ebp - 0x18], 0xc
cmp dword [ebp - 0x18], 0xc
jge 0x585fb9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x586168
mov eax, dword [ebp - 0x40]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0xb
jl 0x586185
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 9]
shl eax, 0x18
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0xa
jl 0x58619c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 8]
shl eax, 0x10
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 9
jl 0x5861b3
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 7]
shl eax, 8
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 8
jl 0x5861ca
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 6]
shl eax, 0x18
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 7
jl 0x5861e1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 5]
shl eax, 0x10
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 6
jl 0x5861f8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 4]
shl eax, 8
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 5
jl 0x58620c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 3]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 4
jl 0x586223
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 2]
shl eax, 0x18
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 3
jl 0x58623a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx + 1]
shl eax, 0x10
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 2
jl 0x586250
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx]
shl eax, 8
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 1
jl 0x586264
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx eax, byte [eax + edx - 1]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], eax
mov cl, byte [ebp - 0x2f]
mov eax, dword [ebp - 0x24]
shr eax, cl
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x20], eax
mov cl, byte [ebp - 0x2d]
mov eax, dword [ebp - 0x1c]
shl eax, cl
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x24], eax
mov cl, byte [ebp - 0x32]
mov eax, dword [ebp - 0x20]
shr eax, cl
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], eax
mov cl, byte [ebp - 0x30]
mov eax, dword [ebp - 0x24]
shr eax, cl
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x20], eax
mov cl, byte [ebp - 0x31]
mov eax, dword [ebp - 0x1c]
shl eax, cl
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x24], eax
mov cl, byte [ebp - 0x34]
mov eax, dword [ebp - 0x20]
shl eax, cl
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], eax
mov cl, byte [ebp - 0x2e]
mov eax, dword [ebp - 0x24]
shr eax, cl
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x20], eax
mov cl, byte [ebp - 0x33]
mov eax, dword [ebp - 0x1c]
shl eax, cl
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
shr eax, 3
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0x7da
call fcn.004e22c0
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x5c]
lea edi, [eax + 0x460]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
add eax, 0x460
call fcn.004e2314
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040572c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0058573c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5863c8
lea eax, [ebp - 0x60]
call fcn.00405404
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00405428
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00405428
lea eax, [ebp + 8]
mov edx, 6
call fcn.00405428
ret