Function at 0x10185b3e
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]
xor ecx, ecx
mov dword [0x102c0130], 0xe4d
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, 0x84
mov edi, edx
add edi, esi
add edi, 0x80
mov esi, dword [edi]
imul edi, eax, 0x84
add edx, edi
add edx, 0x2c
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x367
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10185b6d
xor eax, eax
mov dword [0x102c0134], 0x1c92
mov dword [0x102c0130], 0x26b7
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov cl, byte [eax + 0x1029f69e]
mov dl, byte [eax + 0x1029f66f]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x140], eax
jne 0x10185be2
lea eax, [ebp - 0x12c]
mov dword [0x102c0134], 0x7e4
mov dword [0x102c0130], 0x14
mov dword [ebp - 0x144], eax
call fcn.1018575c
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.101853ca
mov ecx, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x148]
mov dword [0x102c0150], eax
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
mov ecx, dword [ebp - 0x14c]
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x102c0130], 0x1934
mov edx, ecx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
lea edx, section..data
imul esi, eax, 0x84
mov edi, edx
add edi, esi
add edi, 0x2c
mov esi, dword [ebp - 0x150]
add esi, ecx
mov ebx, eax
add ebx, 1
mov dword [ebp - 0x15c], eax
imul eax, eax, 0x84
mov dword [ebp - 0x160], eax
mov eax, edx
mov dword [ebp - 0x164], ecx
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov ecx, dword [ebp - 0x15c]
imul ecx, ecx, 0x84
add edx, ecx
add edx, 0x80
mov ecx, dword [edx]
mov eax, dword [eax]
movzx edx, word [edi]
xor edx, ecx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ebx
call fcn.1018604f
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
add eax, ecx
mov edx, dword [ebp - 0x16c]
cmp edx, 0x367
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], eax
jne 0x10185cab
lea eax, [0x1029f67d]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [0x102c0134]
add esi, 0xfffff0b3
mov dword [0x102c0130], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x174], ecx
call fcn.10185244
mov dword [0x102c0134], 0xc16
mov dword [0x102c0130], 0x3044
mov eax, dword [ebp - 0x170]
mov dword [esp], eax
mov ecx, dword [ebp - 0x150]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.10186358
xor eax, eax
mov ecx, dword [ebp - 0x150]
add ecx, 0x11e63c
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x117600
mov ecx, dword [ebp - 0x150]
add ecx, 0x487de
mov dword [edx + 8], ecx
mov dword [0x102c0130], 0x402
mov dword [edx + 0xc], 0x20d0
mov ecx, dword [0x102c0130]
add ecx, 0xffffe6c7
mov dword [0x102c0134], ecx
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret