Function at 0x50ffa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x603238
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x69a450]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov eax, dword [0x69a450]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x2c]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x6c], 0xf
mov byte [esp + 0x69], 1
mov dword [esp + 0x70], ecx
push esi
push eax
mov eax, ecx
mov dword [esp + 0x90], 0
push 0x3c
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
call fcn.005cda59
mov eax, 0x3c
sub eax, esi
push eax
lea eax, [esp + 0x40]
add eax, esi
push 0
push eax
call fcn.005c8180
add esp, 0x1c
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.004e14c0
mov eax, dword [esp + 0x70]
mov ecx, 0xf
shr esi, 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc
mov dword [eax + esi*4], esi
mov dword [esp + 0x20], ecx
lea esp, [esp]
mov eax, 8
mov dword [esp + 0x28], 0xf
xor edi, edi
mov dword [esp + 0x1c], eax
jmp 0x510095
mov ecx, 0xf
add eax, 5
mov esi, dword [esp + 0x70]
xor edx, edx
div ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + edx*4]
xor edx, edx
div dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add eax, edi
xor ecx, dword [esi + edx*4]
rol ecx, 3
xor ecx, eax
mov eax, dword [esp + 0x1c]
xor dword [esi + edi], ecx
inc eax
add edi, 4
mov dword [esp + 0x1c], eax
dec dword [esp + 0x28]
jne 0x510090
mov edi, 4
xor ecx, ecx
lea eax, [ecx + 0xe]
mov esi, dword [esp + 0x70]
xor edx, edx
div dword [esp + 0x20]
mov eax, dword [esi + edx*4]
and eax, 0x1ff
mov eax, dword [eax*4 + 0x6440a0]
add eax, dword [esi + ecx*4]
rol eax, 9
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, 0xf
jb 0x5100d7
dec edi
jne 0x5100d5
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax]
inc dword [esp + 0x18]
mov dword [esi + ecx - 0xc], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 0x10]
mov dword [edi + ecx + 4], eax
add edi, 0x28
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov dword [esp + 0x10], edi
mov eax, dword [eax + 0x20]
mov dword [esi + ecx - 4], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 0x30]
mov dword [esi + ecx], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 4]
mov dword [esi + ecx + 4], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 0x14]
mov dword [esi + ecx + 8], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 0x24]
mov dword [esi + ecx + 0xc], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 0x34]
mov dword [esi + ecx + 0x10], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 8]
mov dword [esi + ecx + 0x14], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0xbc]
mov eax, dword [eax + 0x18]
mov dword [esi + ecx + 0x18], eax
add esi, 0x28
mov dword [esp + 0x14], esi
mov ecx, 0xf
cmp esi, 0xac
jb 0x510070
mov ecx, 0x14
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 0xbc]
mov edx, dword [eax + ecx]
add eax, ecx
mov dword [esp + 0x14], eax
mov edi, edx
or edi, 3
and edx, 3
mov ecx, edi
mov esi, edi
shr esi, 1
not ecx
xor esi, ecx
lea eax, [edi + edi]
mov edx, dword [edx*4 + 0x6444c4]
xor eax, ecx
mov ecx, dword [esp + 0x14]
and esi, eax
and esi, 0x7ffffffe
mov eax, esi
shr eax, 1
and esi, eax
mov ecx, dword [ecx - 4]
mov eax, esi
rol edx, cl
shr eax, 2
and esi, eax
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 8
shr eax, 4
and esi, eax
mov dword [esp + 0x10], ecx
lea eax, [esi + esi]
or esi, eax
lea eax, [esi*4]
or esi, eax
mov eax, esi
shl eax, 4
or eax, esi
and edx, eax
mov eax, dword [esp + 0x14]
and edx, 0x7ffffffc
xor edx, edi
mov dword [eax], edx
mov edx, dword [esp + 0x24]
cmp ecx, 0x94
jb 0x5101e5
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x2c]
cmp edi, eax
jne 0x51028b
mov ecx, dword [esp + 0x6c]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005c46a4
mov esp, ebp
pop ebp
ret 0xc