Function at 0x100c9e10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1d4
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xdd]
push ebx
mov byte [esp + 0xe0], bl
push ebx
push 0x7d3
rep stosd dword es:[edi], eax
call dword [0x10182e10]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xdc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10162744
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0xe0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x10162740]
or ecx, 0xffffffff
mov word [edi - 1], ax
mov edi, dword [esp + 0x1ec]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xe0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.100f7260
add esp, 8
cmp eax, ebx
mov dword [0x10182e18], eax
jne 0x100c9ee2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d4
ret
push ebx
push ebx
push eax
call fcn.100f7753
mov ecx, dword [0x10182e18]
lea edx, [esp + 0x24]
push ecx
push 1
push 6
push edx
mov word [esp + 0x34], bx
mov dword [esp + 0x36], ebx
call fcn.100f74cb
mov eax, dword [esp + 0x36]
mov ecx, dword [0x10182e18]
push ebx
push eax
push ecx
call fcn.100f7753
add esp, 0x28
cmp word [esp + 0x18], bx
mov dword [esp + 0x10], ebx
jbe 0x100ca061
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
mov edx, dword [0x10182e18]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 1
lea eax, [esp + 0x38]
push 0x2c
push eax
call fcn.100f74cb
mov al, byte [esp + 0x20]
mov cl, 0x57
imul cl
add esp, 0x10
add al, 0x61
xor ecx, ecx
mov dl, cl
add dl, al
xor byte [esp + ecx + 0x30], dl
inc ecx
cmp ecx, 0x2c
jb 0x100c9f64
mov al, byte [esp + 0x17]
lea edi, [esp + 0x30]
mov byte [esp + 0x20], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ebx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.100ca480
test al, al
je 0x100c9fc9
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.100cb020
add esp, 0xc
lea ecx, [esp + 0x64]
push eax
call fcn.100cb150
lea ecx, [esp + 0x64]
lea edx, [esp + 0x5c]
push ecx
push edx
mov ecx, 0x10182e00
call fcn.100ca1e0
lea ecx, [esp + 0x64]
call fcn.100ca080
lea ecx, [esp + 0xa0]
call fcn.100ca080
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100ca03a
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x100ca031
cmp cl, 0xff
je 0x100ca031
dec cl
mov byte [eax], cl
jmp 0x100ca03a
push eax
call fcn.101066ed
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
and ecx, 0xffff
cmp eax, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], eax
jb 0x100c9f2c
push 0x10182de8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d4
ret