Function at 0x1001035a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x148
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
xor eax, eax
mov ecx, 0x20
mov dword [ebp - 0x114], eax
mov eax, ecx
call fcn.10009b10
mov eax, esp
mov dword [0x102786f8], 0x88d
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], edx
jmp 0x100104bf
lea eax, [0x100121d4]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [0x102786f8]
mov edi, dword [ebp - 0x124]
add edi, 0x17d43
mov ebx, dword [ebp - 0x124]
add ebx, 0x9180a
add esi, 0x2a3
mov dword [0x102786fc], esi
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], ebx
call fcn.10011395
add esp, 0xc
sub esp, 0x10
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
mov ecx, dword [ebp - 0x124]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x138]
mov dword [esp + 0xc], edx
call fcn.100118f4
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x134]
mov dword [ecx], edx
mov dword [ecx + 4], 0x13c800
mov edx, dword [ebp - 0x128]
mov dword [ecx + 8], edx
mov edx, dword [0x102786fc]
add edx, 0xffffdd55
mov dword [0x102786f8], edx
mov dword [ecx + 0xc], 0x2000
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0x100121f5]
mov dl, byte [eax + 0x100121c6]
sub dl, cl
mov esi, dword [ebp - 0x118]
mov byte [esi + eax], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x13c], eax
je 0x10010539
jmp 0x1001048c
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
lea edx, [0x1026a8ac]
imul esi, eax, 0x68
mov edi, edx
add edi, esi
add edi, 0x64
mov esi, dword [edi]
imul edi, eax, 0x68
add edx, edi
add edx, 0x18
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x223
mov ecx, edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
jne 0x100104bf
xor eax, eax
mov dword [0x102786fc], 0x2571
mov dword [0x102786f8], 0x132c
mov dword [ebp - 0x13c], eax
jmp 0x1001048c
mov dword [0x102786f8], 0xfffefc67
call fcn.10011af7
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], eax
call fcn.10010ccf
add esp, 8
mov ecx, eax
mov dword [0x10278714], eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ebp - 0x138]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
xor ecx, ecx
mov edx, dword [0x102786fc]
add edx, 0xfffff20e
mov dword [0x102786f8], edx
mov edx, ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
lea edx, [0x1026a8ac]
imul esi, ecx, 0x68
mov edi, edx
add edi, esi
add edi, 4
imul esi, ecx, 0x68
mov ebx, edx
add ebx, esi
add ebx, 0x18
mov esi, ecx
add esi, 1
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x14c], ecx
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov ecx, dword [ebp - 0x14c]
imul ecx, ecx, 0x68
add edx, ecx
add edx, 0x64
mov ecx, dword [edx]
mov edx, dword [edi]
movzx edi, word [ebx]
xor edi, ecx
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x154], esi
call fcn.100114f6
add esp, 0xc
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov edx, dword [ebp - 0x154]
cmp edx, 0x223
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], eax
je 0x100103b2
jmp 0x100105b3