Function at 0x1018c53f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x17c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x101b3cb8]
mov dword [0x101b3cb8], 0xf98
add edx, 0xffffeba2
mov dword [0x101b3cbc], edx
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
mov esi, eax
add esi, 1
imul edi, eax, 0x10c
mov ebx, edx
add ebx, edi
add ebx, 0x60
imul eax, eax, 0x10c
add edx, eax
add edx, 0xbc
mov eax, dword [edx]
movzx edx, word [ebx]
xor edx, eax
add edx, ecx
cmp esi, 0x223
mov eax, edx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], esi
jne 0x1018c580
xor eax, eax
mov dword [0x101b3cb8], 0x40d
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov cl, byte [eax + 0x1018f5a0]
mov dl, byte [eax + 0x1018f571]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x140], eax
jne 0x1018c5ef
lea eax, [ebp - 0x12c]
mov dword [0x101b3cb8], 0x158a
mov dword [ebp - 0x144], eax
call fcn.1018d452
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.1018c15e
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x148]
mov dword [0x101b3cd8], ecx
mov edx, esp
mov esi, dword [ebp - 0x13c]
mov dword [edx + 4], esi
mov dword [edx + 0xc], 4
mov dword [edx + 8], 0x1000
mov dword [edx], 0
call eax
sub esp, 0x10
xor ecx, ecx
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, 0x10c
mov edi, edx
add edi, esi
add edi, 0xbc
imul esi, eax, 0x10c
mov ebx, edx
add ebx, esi
add ebx, 0x5c
mov esi, eax
add esi, 1
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x14c]
add eax, ecx
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x158]
imul eax, eax, 0x10c
add edx, eax
add edx, 0x60
mov eax, dword [edi]
mov edi, dword [ebx]
movzx edx, word [edx]
xor edx, eax
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], esi
call fcn.1018c8e4
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x164]
add eax, ecx
mov edx, dword [ebp - 0x168]
cmp edx, 0x223
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], eax
jne 0x1018c69d
lea eax, [0x1018f57f]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x14c]
add esi, 0x40fa2
mov edi, dword [ebp - 0x14c]
add edi, 0x37868
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x178], esi
call fcn.1018c3c2
mov eax, dword [ebp - 0x174]
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.1018cf6f
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x178]
mov dword [ecx], edx
mov dword [ecx + 4], 0x135800
mov edx, dword [ebp - 0x16c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1ff0
mov dword [0x101b3cb8], 0x2343
add esp, 0x17c
pop esi
pop edi
pop ebx
pop ebp
ret