Function at 0x5851cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push esi
push edi
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x58572a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
add eax, 0x40c
mov edx, dword [ebp + 0xc]
call fcn.00405678
lea ecx, [ebp - 0x38]
mov edx, 0x65
mov eax, dword [ebp + 0x10]
call fcn.004e248c
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
mov edx, 0x9f
mov eax, dword [ebp + 0xc]
call fcn.004e248c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 8]
pop ecx
call fcn.0040572c
mov eax, dword [0x5a3650]
xor eax, dword [0x5a3654]
xor eax, dword [0x5a3658]
xor eax, dword [0x5a365c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x58526a
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.0040a850
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 8]
call fcn.00405904
push eax
lea eax, [ebp - 8]
call fcn.00405904
mov ecx, dword [ebp - 0x2c]
pop edx
call fcn.004e4d90
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.004e23d8
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 8]
call fcn.0040549c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x5852c4
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 1
mov al, byte [ebp - 0x20]
and al, 0xf
mov byte [ebp - 0x28], al
mov al, byte [ebp - 0x20]
and al, 0xf0
mov byte [ebp - 0x27], al
mov al, byte [ebp - 0x20]
and al, 0
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x20]
and al, 0
mov byte [ebp - 0x25], al
mov al, byte [ebp - 0x20]
and al, 0
mov byte [ebp - 0x24], al
mov al, byte [ebp - 0x20]
and al, 0
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x20]
and al, 0
mov byte [ebp - 0x22], al
mov al, byte [ebp - 0x20]
and al, 0
mov byte [ebp - 0x21], al
mov dword [ebp - 0x10], 0x801b0d01
mov dword [ebp - 0x14], 0x5dae409f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0xc
jl 0x5854c7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx - 1]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx]
shl edx, 8
add eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 1]
shl edx, 0x10
add eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 2]
shl edx, 0x18
add eax, edx
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 3]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 4]
shl edx, 8
add eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 5]
shl edx, 0x10
add eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 6]
shl edx, 0x18
add eax, edx
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 7]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 8]
shl edx, 8
add eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 9]
shl edx, 0x10
add eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx + 0xa]
shl edx, 0x18
add eax, edx
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov cl, byte [ebp - 0x23]
mov eax, dword [ebp - 0x18]
shr eax, cl
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x21]
mov eax, dword [ebp - 0x10]
shl eax, cl
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x18], eax
mov cl, byte [ebp - 0x26]
mov eax, dword [ebp - 0x14]
shr eax, cl
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov cl, byte [ebp - 0x24]
mov eax, dword [ebp - 0x18]
shr eax, cl
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x25]
mov eax, dword [ebp - 0x10]
shl eax, cl
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x18], eax
mov cl, byte [ebp - 0x28]
mov eax, dword [ebp - 0x14]
shr eax, cl
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov cl, byte [ebp - 0x22]
mov eax, dword [ebp - 0x18]
shr eax, cl
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x27]
mov eax, dword [ebp - 0x10]
shl eax, cl
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 3
xor dword [ebp - 0x18], eax
add dword [ebp - 0x1c], 0xc
sub dword [ebp - 0xc], 0xc
cmp dword [ebp - 0xc], 0xc
jge 0x58532f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x5854de
mov eax, dword [ebp - 0x34]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0xb
jl 0x5854fb
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 9]
shl eax, 0x18
add dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0xa
jl 0x585512
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 8]
shl eax, 0x10
add dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 9
jl 0x585529
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 7]
shl eax, 8
add dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 8
jl 0x585540
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 6]
shl eax, 0x18
add dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 7
jl 0x585557
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 5]
shl eax, 0x10
add dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 6
jl 0x58556e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 4]
shl eax, 8
add dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 5
jl 0x585582
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 3]
add dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 4
jl 0x585599
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 2]
shl eax, 0x18
add dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 3
jl 0x5855b0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx + 1]
shl eax, 0x10
add dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 2
jl 0x5855c6
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx]
shl eax, 8
add dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 1
jl 0x5855da
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx - 1]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov cl, byte [ebp - 0x23]
mov eax, dword [ebp - 0x18]
shr eax, cl
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x21]
mov eax, dword [ebp - 0x10]
shl eax, cl
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x18], eax
mov cl, byte [ebp - 0x26]
mov eax, dword [ebp - 0x14]
shr eax, cl
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov cl, byte [ebp - 0x24]
mov eax, dword [ebp - 0x18]
shr eax, cl
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x25]
mov eax, dword [ebp - 0x10]
shl eax, cl
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x18], eax
mov cl, byte [ebp - 0x28]
mov eax, dword [ebp - 0x14]
shl eax, cl
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov cl, byte [ebp - 0x22]
mov eax, dword [ebp - 0x18]
shr eax, cl
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x27]
mov eax, dword [ebp - 0x10]
shl eax, cl
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 3
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
push 0
lea eax, [ebp - 0x54]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0x7d2
call fcn.004e22c0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x54]
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 - 0x58]
mov eax, dword [ebp + 8]
add eax, 0x460
call fcn.004e2314
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040572c
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.0058573c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585731
lea eax, [ebp - 0x58]
call fcn.00405404
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00405428
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405428
ret