Function at 0x100058a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x140
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
xor eax, eax
mov ecx, 0x20
mov dword [ebp - 0x114], eax
mov eax, ecx
call fcn.100042a0
mov eax, esp
mov dword [0x10034b7c], 0xec4
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], edx
jmp 0x100059e0
mov eax, dword [ebp - 0x124]
mov cl, byte [eax + 0x10006725]
mov dl, byte [eax + 0x100066f6]
sub dl, cl
mov esi, dword [ebp - 0x118]
mov byte [esi + eax], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x124], eax
je 0x10005a54
jmp 0x10005901
lea eax, [0x10006704]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x10034b7c], 0x1f64
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x12c], ecx
call fcn.10004d4e
add esp, 0xc
sub esp, 0x10
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
mov ecx, dword [ebp - 0x130]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x134]
mov dword [esp + 0xc], edx
call fcn.10004ed5
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x130]
add ecx, 0x83655
mov edx, dword [ebp - 0x110]
mov dword [edx], ecx
mov dword [edx + 4], 0x128000
mov ecx, dword [ebp - 0x130]
add ecx, 0x6e2c5
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2000
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
lea edx, section..data
imul esi, ecx, 0x138
mov edi, edx
add edi, esi
add edi, 0x2c
mov esi, ecx
add esi, 1
imul ecx, ecx, 0x138
add edx, ecx
add edx, 0x38
mov ecx, dword [edx]
movzx edx, word [edi]
xor edx, ecx
add edx, eax
cmp esi, 0x24b
mov eax, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], eax
jne 0x100059e0
xor eax, eax
mov dword [0x10034b80], 0x1562
mov dword [ebp - 0x124], eax
jmp 0x10005901
mov dword [0x10034b7c], 0xdb0
mov dword [0x10034b80], 0xffffeaa5
call fcn.10005464
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], eax
call fcn.10005578
add esp, 8
mov ecx, eax
mov dword [0x10034b94], eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ebp - 0x134]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
xor ecx, ecx
mov edx, dword [0x10034b7c]
add edx, 0x1adc
mov dword [0x10034b80], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], ecx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
lea edx, section..data
imul esi, eax, 0x138
mov edi, edx
add edi, esi
add edi, 0x2c
mov esi, dword [ebp - 0x130]
add esi, ecx
imul ebx, eax, 0x138
mov dword [ebp - 0x140], eax
mov eax, edx
add eax, ebx
mov ebx, dword [ebp - 0x140]
imul ebx, ebx, 0x138
add edx, ebx
add edx, 0x38
mov ebx, dword [ebp - 0x140]
add ebx, 1
mov edx, dword [edx]
mov eax, dword [eax]
movzx edi, word [edi]
xor edi, edx
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], ebx
call fcn.10004c8b
add esp, 0xc
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov edx, dword [ebp - 0x14c]
cmp edx, 0x24b
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], eax
je 0x10005938
jmp 0x10005ad8