Function at 0x1000191a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x101830e8
push 0x218
mov eax, 0x101f284e
call fcn.100048bd
mov esi, ecx
mov dword [ebp - 0x218], esi
lea edi, [esi + 0x14c]
cmp byte [edi], 0
je 0x10183327
push 0x1025eb90
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x10253690], 0
jne 0x10183141
push 0x10253690
mov ecx, edi
call fcn.10005614
test al, al
je 0x10183141
push 0x10253690
mov ecx, edi
call fcn.1000192e
mov byte [edi], 0
push 0x1025eb90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi], 0
je 0x10183327
push dword [esi + 0x168]
lea ecx, [ebp - 0x210]
push dword [esi + 0x164]
call fcn.100095bb
push 0x34
pop ecx
lea esi, [ebp - 0x210]
lea edi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x218]
push 0x10
lea eax, [esi + 0x154]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.100073c4
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1000000
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.100073c4
add esp, 0x18
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x140]
push eax
call fcn.10001a4b
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10003aa8
mov ecx, dword [esi + 0x150]
lea edx, [esi + 0x194]
xor eax, eax
mov dword [ebp - 0x224], edx
inc eax
add esp, 0xc
shl eax, cl
lea ecx, [esi + 0x16c]
dec eax
mov dword [ebp - 0x220], ecx
xor edi, edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], edi
test eax, eax
je 0x10183278
push 0x34
pop ecx
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x140]
lea esi, [ebp - 0x210]
lea edi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100073c4
add esp, 0xc
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x140]
push eax
call fcn.10001a4b
xor eax, eax
movups xmm0, xmmword [ebp + eax - 0x50]
movups xmm1, xmmword [ebp + eax - 0x30]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x50], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x10183242
sub dword [ebp - 0x214], 1
jne 0x1018320b
mov edi, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
push 0x20
lea eax, [ebp - 0x50]
cmp edi, 1
push eax
lea eax, [ebp - 0x70]
cmove eax, edx
test edi, edi
cmove eax, ecx
push eax
call fcn.10003aa8
mov ecx, dword [ebp - 0x220]
add esp, 0xc
mov edx, dword [ebp - 0x224]
inc edi
mov dword [ebp - 0x21c], edi
push 0x10
pop eax
mov dword [ebp - 0x214], eax
cmp edi, 3
jb 0x10183207
mov esi, dword [ebp - 0x218]
mov eax, dword [ebp - 0x70]
push 8
pop edx
mov dword [esi + 0x18c], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x190], eax
mov al, byte [ebp + edx - 0x70]
mov ecx, edx
and ecx, 7
xor byte [ecx + esi + 0x18c], al
inc edx
cmp edx, 0x20
jb 0x101832d5
mov eax, 0x1025eb90
lea edi, [esi + 0x14c]
push eax
mov byte [edi], 0
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
xor eax, eax
test esi, esi
mov ecx, 0x10253690
cmove edi, eax
push edi
call fcn.10004e21
push 0x1025eb90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.10003a03
test al, al
je 0x1018335a
cmp byte [esi + 0x1bc], 0
je 0x1018335a
push 8
lea eax, [esi + 0x1b4]
push eax
lea eax, [esi + 0x18c]
push eax
call fcn.10003a9e
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x1018335c
mov al, 1
call fcn.100029e6
ret