Function at 0x10005814
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
jmp 0x10005930
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, section..data
mov esi, eax
add esi, 1
imul edi, eax, 0xe8
mov ebx, edx
add ebx, edi
add ebx, 0x94
imul edi, eax, 0xe8
mov dword [ebp - 0x144], eax
mov eax, edx
add eax, edi
add eax, 0x30
mov edi, dword [ebp - 0x144]
imul edi, edi, 0xe8
add edx, edi
add edx, 0x68
mov edi, dword [ebp - 0x148]
add edi, ecx
mov ebx, dword [ebx]
mov eax, dword [eax]
movzx edx, word [edx]
xor edx, ebx
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], edx
call fcn.10004c1e
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
add eax, ecx
mov edx, dword [ebp - 0x14c]
cmp edx, 0x24e
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], eax
je 0x10005a2f
jmp 0x10005848
mov eax, dword [ebp - 0x158]
mov cl, byte [eax + 0x10006388]
mov dl, byte [eax + 0x10006359]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x158], eax
je 0x100059a0
jmp 0x100058ff
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 - 0x15c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10005930
xor eax, eax
mov dword [0x100286c8], 0x1562
mov dword [ebp - 0x158], eax
jmp 0x100058ff
lea eax, [ebp - 0x12c]
mov dword [0x100286c4], 0xdb0
mov dword [0x100286c8], 0xffffeaa5
mov dword [ebp - 0x160], eax
call fcn.100053e3
mov dword [esp], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
call fcn.100054f1
mov ecx, eax
mov dword [0x100286dc], eax
mov eax, esp
mov edx, dword [ebp - 0x15c]
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 [0x100286c4]
add edx, 0x1adc
mov dword [0x100286c8], edx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x10005848
lea eax, [0x10006367]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x148]
add esi, 0x83a87
mov edi, dword [ebp - 0x148]
add edi, 0x59de3
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.10004ce1
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x15c]
mov dword [esp + 0xc], edx
call fcn.10004e6d
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x170]
mov dword [ecx], edx
mov dword [ecx + 4], 0x126000
mov edx, dword [ebp - 0x164]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x2010
add esp, 0x174
pop esi
pop edi
pop ebx
pop ebp
ret