Function at 0x1010e120
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 [0x1021106c]
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 0x101de840
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 [0x101de83c]
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.1013c250
add esp, 8
cmp eax, ebx
mov dword [0x10211074], eax
jne 0x1010e1f2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d4
ret
push ebx
push ebx
push eax
call fcn.1013c743
mov ecx, dword [0x10211074]
lea edx, [esp + 0x24]
push ecx
push 1
push 6
push edx
mov word [esp + 0x34], bx
mov dword [esp + 0x36], ebx
call fcn.1013c4bb
mov eax, dword [esp + 0x36]
mov ecx, dword [0x10211074]
push ebx
push eax
push ecx
call fcn.1013c743
add esp, 0x28
cmp word [esp + 0x18], bx
mov dword [esp + 0x10], ebx
jbe 0x1010e371
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
mov edx, dword [0x10211074]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 1
lea eax, [esp + 0x38]
push 0x2c
push eax
call fcn.1013c4bb
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 0x1010e274
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.1010f190
test al, al
je 0x1010e2d9
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.1010fe80
add esp, 0xc
lea ecx, [esp + 0x64]
push eax
call fcn.1010ffb0
lea ecx, [esp + 0x64]
lea edx, [esp + 0x5c]
push ecx
push edx
mov ecx, 0x1021105c
call fcn.1010ee50
lea ecx, [esp + 0x64]
call fcn.1010e390
lea ecx, [esp + 0xa0]
call fcn.1010e390
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1010e34a
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x1010e341
cmp cl, 0xff
je 0x1010e341
dec cl
mov byte [eax], cl
jmp 0x1010e34a
push eax
call fcn.1014bc14
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 0x1010e23c
push 0x10211044
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d4
ret