Function at 0x1019802e
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]
mov dword [ebp - 0x130], eax
xor eax, eax
mov ecx, dword [0x1028bd6c]
mov edx, ecx
add edx, 0x58f
mov dword [0x1028bd6c], edx
add ecx, 0x10ac
mov dword [0x1028bd70], ecx
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jmp 0x1019813b
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, section..data
imul esi, ecx, 0x8c
mov edi, edx
add edi, esi
add edi, 0x88
mov esi, ecx
add esi, 1
mov ebx, dword [ebp - 0x144]
add ebx, eax
mov dword [ebp - 0x148], eax
imul eax, ecx, 0x8c
mov dword [ebp - 0x14c], eax
mov eax, edx
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
add eax, ecx
add eax, 0x84
mov ecx, dword [ebp - 0x150]
imul ecx, ecx, 0x8c
add edx, ecx
add edx, 0x80
mov ecx, dword [edi]
mov edx, dword [edx]
movzx eax, word [eax]
xor eax, ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], eax
call fcn.101985ff
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov edx, dword [ebp - 0x154]
cmp edx, 0x1b2
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], eax
je 0x1019824f
jmp 0x10198078
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x8c
mov edi, edx
add edi, esi
add edi, 0x88
mov esi, dword [edi]
imul edi, eax, 0x8c
add edx, edi
add edx, 0x84
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1b2
mov ecx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1019813b
lea eax, [0x1027bc16]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1019882f
mov eax, dword [0x1028bd6c]
mov dword [0x1028bd6c], 0x5bf
add eax, 0xffffe9fd
mov dword [0x1028bd70], eax
call fcn.10198b57
mov dword [esp], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
call fcn.101984b5
mov dword [0x1028bd8c], eax
mov dword [0x1028bd70], 0x1bda
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov ecx, esp
mov edx, dword [ebp - 0x15c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x10198078
lea eax, [0x1027bc24]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x144]
add esi, 0x139c1a
mov edi, dword [ebp - 0x144]
add edi, 0xd9962
mov ebx, dword [0x1028bd70]
add ebx, 0xffffdb94
mov dword [0x1028bd6c], ebx
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.101986a7
mov dword [0x1028bd70], 0x8a7
mov eax, dword [ebp - 0x174]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x15c]
mov dword [esp + 0xc], edx
call fcn.101994d1
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x178]
mov dword [ecx], edx
mov dword [ecx + 4], 0x12ae00
mov edx, dword [ebp - 0x16c]
mov dword [ecx + 8], edx
mov dword [0x1028bd70], 0x5c
mov dword [ecx + 0xc], 0x1f40
add esp, 0x17c
pop esi
pop edi
pop ebx
pop ebp
ret