Function at 0x10018101
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov eax, dword [ebp + 8]
mov ecx, dword [0x1024d054]
add ecx, 0xffffd89b
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], ecx
xor eax, eax
mov ecx, dword [ebp - 0x134]
mov dword [0x1024d058], ecx
mov dword [0x1024d054], 0x1c86
mov edx, eax
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], eax
jmp 0x10018210
mov eax, dword [ebp - 0x140]
mov cl, byte [eax + 0x1022f56b]
mov dl, byte [eax + 0x1022f53c]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x140], eax
jne 0x10018153
lea eax, [ebp - 0x12c]
mov dword [0x1024d054], 0x1dfa
mov dword [ebp - 0x144], eax
call fcn.10018d6d
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.10018966
mov ecx, eax
mov dword [0x1024d074], eax
mov eax, esp
mov edx, dword [ebp - 0x148]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov ecx, dword [0x1024d058]
add ecx, 0x8af
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ecx
xor eax, eax
mov ecx, dword [ebp - 0x150]
mov dword [0x1024d054], ecx
mov edx, eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], eax
jmp 0x10018280
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
lea edx, section..data
imul esi, eax, 0x130
mov edi, edx
add edi, esi
add edi, 0x12c
mov esi, dword [edi]
imul edi, eax, 0x130
add edx, edi
add edx, 0x12a
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x16c
mov ecx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], eax
jne 0x10018210
mov dword [0x1024d054], 0x27c7
xor eax, eax
mov dword [ebp - 0x140], eax
jmp 0x10018153
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
lea edx, section..data
imul esi, eax, 0x130
mov edi, edx
add edi, esi
add edi, 0x12c
mov esi, dword [edi]
imul edi, eax, 0x130
mov ebx, edx
add ebx, edi
add ebx, 0x120
mov edi, dword [ebx]
imul ebx, eax, 0x130
add edx, ebx
add edx, 0x12a
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 - 0x15c], eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.10018e20
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
add edx, 1
cmp edx, 0x16c
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edx
jne 0x10018280
lea eax, [0x1022f54a]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x14c]
add esi, 0xe2f72
mov edi, dword [ebp - 0x14c]
add edi, 0xe88a7
mov dword [0x1024d058], 0xc2
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x174], esi
call fcn.10018beb
mov dword [0x1024d054], 0x2022
mov eax, dword [ebp - 0x170]
mov dword [esp], eax
mov ecx, dword [ebp - 0x14c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.10018f4c
xor eax, eax
mov dword [0x1024d054], 0x1ca4
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x168]
mov dword [ecx], edx
mov dword [ecx + 4], 0x12a000
mov edx, dword [ebp - 0x174]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1f70
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret