Function at 0x10005823
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1009bf78], 0xec4
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10005912
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, [0x1007ab6c]
mov esi, dword [ebp - 0x144]
add esi, ecx
imul edi, eax, 0xe8
mov ebx, edx
add ebx, edi
add ebx, 0x30
imul edi, eax, 0xe8
mov dword [ebp - 0x148], eax
mov eax, edx
add eax, edi
add eax, 0x68
mov edi, dword [ebp - 0x148]
imul edi, edi, 0xe8
add edx, edi
add edx, 0x94
mov edi, dword [ebp - 0x148]
add edi, 1
mov edx, dword [edx]
mov ebx, dword [ebx]
movzx eax, word [eax]
xor eax, edx
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], edi
call fcn.10004bf7
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x150]
add eax, ecx
mov edx, dword [ebp - 0x154]
cmp edx, 0x24b
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], eax
je 0x10005a3d
jmp 0x10005857
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, [0x1007ab6c]
imul esi, eax, 0xe8
mov edi, edx
add edi, esi
add edi, 0x94
mov esi, dword [edi]
imul edi, eax, 0xe8
add edx, edi
add edx, 0x68
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x24b
mov ecx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10005912
mov dword [0x1009bf7c], 0x1562
xor eax, eax
mov dword [ebp - 0x15c], eax
jmp 0x1000597f
mov eax, dword [ebp - 0x15c]
mov cl, byte [eax + 0x10018da9]
mov dl, byte [eax + 0x10018d7a]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x15c], eax
jne 0x1000597f
lea eax, [ebp - 0x12c]
mov dword [0x1009bf78], 0xdb0
mov dword [0x1009bf7c], 0xffffeaa5
mov dword [ebp - 0x160], eax
call fcn.100053c5
mov dword [esp], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
call fcn.100054e3
mov ecx, eax
mov dword [0x1009bf90], eax
mov eax, esp
mov edx, dword [ebp - 0x158]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x1009bf78]
add edx, 0x1adc
mov dword [0x1009bf7c], edx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x10005857
lea eax, [0x10018d88]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1009bf78], 0x1f64
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], ecx
call fcn.10004cba
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x158]
mov dword [esp + 0xc], edx
call fcn.10004e48
mov eax, dword [ebp - 0x144]
add eax, 0x6bece
mov ecx, dword [ebp - 0x130]
mov dword [ecx], eax
mov dword [ecx + 4], 0x132a00
mov eax, dword [ebp - 0x144]
add eax, 0x61a13
mov dword [ebp - 0x16c], eax
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x16c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x2010
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret