Function at 0x1000582d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x174
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x100286c4], 0xec4
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
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, 0x24e
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1000585c
xor eax, eax
mov dword [0x100286c8], 0x1562
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov cl, byte [eax + 0x1000638c]
mov dl, byte [eax + 0x1000635d]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x140], eax
jne 0x100058c7
lea eax, [ebp - 0x12c]
mov dword [0x100286c4], 0xdb0
mov dword [0x100286c8], 0xffffeaa5
mov dword [ebp - 0x144], eax
call fcn.10005404
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.10005517
mov ecx, eax
mov dword [0x100286dc], eax
mov dword [ebp - 0x148], ecx
mov eax, esp
mov ecx, dword [ebp - 0x13c]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
mov eax, dword [ebp - 0x148]
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x100286c4]
add edx, 0x1adc
mov dword [0x100286c8], edx
mov edx, ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], ecx
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
lea edx, section..data
imul esi, eax, 0xe8
mov edi, edx
add edi, esi
add edi, 0x94
mov esi, dword [edi]
imul edi, eax, 0xe8
mov ebx, edx
add ebx, edi
add ebx, 0x30
mov edi, dword [ebx]
imul ebx, eax, 0xe8
add edx, ebx
add edx, 0x68
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x14c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x160], edx
call fcn.10004c30
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
add eax, ecx
mov edx, dword [ebp - 0x158]
add edx, 1
cmp edx, 0x24e
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], edx
jne 0x1000598c
lea eax, [0x1000636b]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x14c]
add esi, 0x2df33
mov edi, dword [ebp - 0x14c]
add edi, 0x80940
mov dword [0x100286c4], 0x1f64
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x170], esi
call fcn.10004cf3
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x14c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.10004e79
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x164]
mov dword [ecx], edx
mov dword [ecx + 4], 0x126000
mov edx, dword [ebp - 0x170]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x2020
add esp, 0x174
pop esi
pop edi
pop ebx
pop ebp
ret