Function at 0x100b1990
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100d81bb
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x14c]
test al, al
je 0x100b1cc5
push 0x100f9548
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x100f94e0]
test al, al
jne 0x100b1a6d
mov eax, dword [ebx + 0x150]
mov ecx, dword [0x100f94e4]
cmp eax, ecx
jne 0x100b1a6d
mov ecx, 4
mov edi, 0x100f94e8
lea esi, [ebx + 0x154]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x100b1a6d
mov ecx, dword [ebx + 0x168]
mov eax, dword [0x100f94fc]
cmp ecx, eax
jne 0x100b1a6d
test ecx, ecx
je 0x100b1a2a
mov esi, dword [ebx + 0x164]
mov edi, dword [0x100f94f8]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
sete al
test al, al
je 0x100b1a6d
lea edi, [ebx + 0x16c]
mov ecx, 8
mov esi, 0x100f9500
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x100f9520]
lea edi, [ebx + 0x194]
mov dword [ebx + 0x18c], ecx
mov edx, dword [0x100f9524]
mov ecx, 8
mov esi, 0x100f9528
mov dword [ebx + 0x190], edx
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x14c], 0
push 0x100f9548
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebx + 0x14c]
test al, al
je 0x100b1cc5
mov eax, dword [ebx + 0x168]
mov ecx, dword [ebx + 0x164]
push ebp
push eax
push ecx
lea ecx, [esp + 0x14c]
call fcn.100b08c0
mov ecx, 0x34
lea esi, [esp + 0x144]
lea edi, [esp + 0x74]
push 0x10
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 0x154]
lea ecx, [esp + 0x78]
call fcn.100c7810
push 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x78]
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 1
call fcn.100c7810
lea eax, [esp + 0x14]
lea ecx, [esp + 0x74]
push eax
call fcn.100b0980
mov ecx, 8
lea esi, [esp + 0x14]
lea edi, [esp + 0x34]
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x150]
shl eax, cl
dec eax
xor ebp, ebp
test eax, eax
je 0x100b1b6c
mov dword [esp + 0x10], eax
mov ecx, 0x34
lea esi, [esp + 0x144]
lea edi, [esp + 0x74]
push 0x20
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x78]
call fcn.100c7810
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
call fcn.100b0980
xor eax, eax
mov dl, byte [esp + eax + 0x14]
mov cl, byte [esp + eax + 0x34]
xor cl, dl
mov byte [esp + eax + 0x34], cl
inc eax
cmp eax, 0x20
jb 0x100b1b4d
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x100b1b1c
test ebp, ebp
jne 0x100b1b78
lea edi, [ebx + 0x16c]
jmp 0x100b1b87
cmp ebp, 1
lea edi, [ebx + 0x194]
je 0x100b1b87
lea edi, [esp + 0x54]
inc ebp
mov ecx, 8
lea esi, [esp + 0x34]
cmp ebp, 3
rep movsd dword es:[edi], dword [esi]
mov eax, 0x10
jb 0x100b1b14
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0x18c], eax
mov dword [ebx + 0x190], ecx
mov eax, 8
mov edx, eax
and edx, 7
lea ecx, [edx + ebx + 0x18c]
mov dl, byte [esp + eax + 0x54]
xor byte [ecx], dl
inc eax
cmp eax, 0x20
jb 0x100b1bba
lea esi, [ebx + 0x14c]
push 0x100f9548
mov dword [esp + 0x14], 0x100f9548
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, ebx
mov dword [esp + 0x21c], 0
neg eax
sbb eax, eax
and eax, esi
mov esi, 0x10
mov ebp, eax
mov cl, byte [eax]
sub ebp, 0x100f94e0
mov byte [0x100f94e0], cl
mov edx, dword [eax + 4]
mov dword [0x100f94e4], edx
mov ecx, 0x100f94e8
mov dl, byte [ecx + ebp]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x100b1c24
add eax, 0x18
cmp eax, 0x100f94f8
je 0x100b1c80
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp edi, dword [0x100f94fc]
je 0x100b1c66
mov ecx, 0x100f94f8
call fcn.100416e7
test edi, edi
je 0x100b1c80
push edi
call fcn.100033f2
add esp, 4
mov dword [0x100f94f8], eax
mov dword [0x100f94fc], edi
test edi, edi
je 0x100b1c80
mov ecx, edi
mov edi, dword [0x100f94f8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x100f9500
mov esi, 0x20
mov cl, byte [eax + ebp]
mov byte [eax], cl
inc eax
dec esi
jne 0x100b1c8a
mov eax, 0x100f9520
mov esi, 8
mov dl, byte [eax + ebp]
mov byte [eax], dl
inc eax
dec esi
jne 0x100b1c9d
mov eax, 0x100f9528
mov esi, 0x20
mov cl, byte [eax + ebp]
mov byte [eax], cl
inc eax
dec esi
jne 0x100b1cb0
push 0x100f9548
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov eax, dword [ebx + 0x1c0]
xor ecx, ecx
and eax, 1
or eax, ecx
je 0x100b1cfa
mov al, byte [ebx + 0x1bc]
test al, al
je 0x100b1cfa
mov ecx, 2
lea edi, [ebx + 0x1b4]
lea esi, [ebx + 0x18c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov eax, edx
sete al
jmp 0x100b1cfc
mov al, 1
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x210
ret