Function at 0x10001fa9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x101c250c]
add edx, 0xfffff8c9
mov dword [0x101c2510], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1000208e
lea eax, [0x101b523d]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.1000276a
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.10002440
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0xf64b0
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x147800
mov dword [0x101c2510], 0x309
mov ecx, dword [ebp - 0x144]
add ecx, 0x5f01b
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f40
mov dword [0x101c250c], 0xae8
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x58
mov edi, edx
add edi, esi
add edi, 0x50
imul esi, eax, 0x58
add edx, esi
add edx, 0x54
add eax, 1
mov edx, dword [edx]
movzx esi, word [edi]
xor esi, edx
add esi, ecx
cmp eax, 0x23d
mov ecx, esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x138], eax
jne 0x1000208e
mov dword [0x101c250c], 0x197e
xor eax, eax
mov dword [ebp - 0x14c], eax
jmp 0x100020fb
mov eax, dword [ebp - 0x14c]
mov cl, byte [eax + 0x101b525e]
mov dl, byte [eax + 0x101b522f]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x14c], eax
jne 0x100020fb
lea eax, [ebp - 0x12c]
mov dword [0x101c2510], 0x43d
mov dword [ebp - 0x150], eax
call fcn.10002645
mov dword [esp], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], eax
call fcn.100017ef
mov dword [0x101c252c], eax
mov dword [0x101c2510], 0x15d1
mov ecx, esp
mov edx, dword [ebp - 0x148]
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 - 0x154], edx
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
lea edx, section..data
imul esi, eax, 0x58
mov edi, edx
add edi, esi
add edi, 0x10
mov esi, dword [ebp - 0x144]
add esi, ecx
mov ebx, eax
add ebx, 1
mov dword [ebp - 0x15c], eax
imul eax, eax, 0x58
mov dword [ebp - 0x160], eax
mov eax, edx
mov dword [ebp - 0x164], ecx
mov ecx, dword [ebp - 0x160]
add eax, ecx
add eax, 0x50
mov ecx, dword [ebp - 0x15c]
imul ecx, ecx, 0x58
add edx, ecx
add edx, 0x54
mov ecx, dword [edx]
mov edx, dword [edi]
movzx eax, word [eax]
xor eax, ecx
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x16c], ebx
call fcn.10002a36
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
add eax, ecx
mov edx, dword [ebp - 0x16c]
cmp edx, 0x23d
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], eax
je 0x10001fe5
jmp 0x100021a0