Function at 0x100b5af6
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016eff7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1020f334]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0xc], 2
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
setne dh
cmp dword [ebx + 0xc], 1
mov dword [ebp - 0x20], ecx
sete dl
nop
mov edi, eax
mov dword [ebp - 0x28], esi
mov ecx, edi
shr ecx, 0xc
dec ecx
shl ecx, 0xc
xor ecx, edi
and ecx, 0x7f000
xor ecx, edi
mov eax, ecx
shr eax, 0x1e
and al, 1
or dl, al
or dh, al
mov byte [ebp - 0x13], dl
mov byte [ebp - 0x14], dh
jne 0x100b5bec
test esi, esi
je 0x100b5bec
lea eax, [ecx - 1]
mov byte [ebp - 0x15], 0
xor eax, ecx
and eax, 0xfff
xor eax, ecx
mov ecx, eax
shr ecx, 0x13
dec ecx
shl ecx, 0x13
xor ecx, eax
and ecx, 0x3ff80000
xor ecx, eax
mov eax, ecx
and eax, 0x7f000
sub esi, 1
je 0x100b5bb6
test eax, eax
jne 0x100b5bb6
mov dl, 1
jmp 0x100b5bb8
xor dl, dl
mov byte [ebp - 0x11], dl
test ecx, 0x3ff80000
jne 0x100b5be6
test ecx, ecx
js 0x100b5bcb
test eax, eax
je 0x100b5be6
mov eax, ecx
mov byte [ebp - 0x12], 1
and eax, 0xfff80000
add eax, 0x80000
xor eax, ecx
and eax, 0x3ff80000
xor ecx, eax
jmp 0x100b5c3b
mov byte [ebp - 0x12], 0
jmp 0x100b5c3b
mov byte [ebp - 0x15], 1
mov eax, ecx
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 0
test dh, dh
je 0x100b5c64
shr ecx, 0x13
dec ecx
shl ecx, 0x13
xor ecx, eax
and ecx, 0x3ff80000
xor ecx, eax
test ecx, 0x7f000
jne 0x100b5c64
test dl, dl
je 0x100b5c41
mov edx, ecx
mov eax, ecx
shl edx, 0x14
shr eax, 0x13
sar edx, 0x14
and eax, 0x7ff
sub eax, edx
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x54]
setne dl
mov byte [ebp - 0x11], dl
test dl, dl
je 0x100b5c64
jmp 0x100b5c49
test esi, esi
je 0x100b5c60
mov byte [ebp - 0x11], 1
mov eax, ecx
and eax, 0xfffff000
add eax, 0x1000
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
jmp 0x100b5c64
mov byte [ebp - 0x11], 0
mov edx, dword [ebp - 0x28]
mov eax, edi
push ebx
mov ebx, ecx
mov ecx, esi
mov esi, dword [ebp - 0x20]
lock cmpxchg8b qword [esi]
pop ebx
mov esi, edx
cmp eax, edi
jne 0x100b5c81
cmp esi, dword [ebp - 0x28]
je 0x100b5c8c
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x100b5b50
cmp byte [ebp - 0x12], 0
je 0x100b5c9f
mov ecx, dword [ebp - 0x1c]
push dword [ebx + 0x10]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [ebp - 0x11], 0
je 0x100b5d90
xor eax, eax
cmp byte [ebp - 0x13], al
sete al
inc eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test byte [0x10219a00], 0x10
mov edi, eax
mov esi, dword [ebp - 0x28]
je 0x100b5cd5
push edi
push esi
mov edx, 0x101b4188
call fcn.100b7b1a
mov eax, dword [ebp - 0x1c]
push 0
push esi
push edi
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x100b5cfc
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebx + 0x10]
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x100b5d93
test byte [0x10219a00], 0x20
je 0x100b5d11
push edi
push esi
mov edx, 0x101b40d8
call fcn.100b7b1a
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x1c135e
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
mov ecx, esi
mov edi, dword [eax + 4]
mov eax, esi
shr ecx, 0xc
mov edx, edi
dec ecx
mov dword [ebp - 0x28], esi
shl ecx, 0xc
xor ecx, esi
and ecx, 0x7f000
xor ecx, esi
mov esi, dword [ebp - 0x20]
push ebx
mov ebx, ecx
mov ecx, edi
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, dword [ebp - 0x28]
jne 0x100b5d60
cmp ecx, edi
je 0x100b5d90
nop dword [eax]
mov esi, eax
mov dword [ebp - 0x28], ecx
shr esi, 0xc
mov edi, eax
dec esi
mov edx, ecx
shl esi, 0xc
xor esi, eax
and esi, 0x7f000
xor esi, eax
push ebx
mov ebx, esi
mov esi, dword [ebp - 0x20]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, edi
jne 0x100b5d60
cmp ecx, dword [ebp - 0x28]
jne 0x100b5d60
mov esi, dword [ebx + 0x10]
cmp byte [ebp - 0x14], 0
je 0x100b5dc7
cmp dword [ebx + 0xc], 3
jne 0x100b5dab
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, 3
jmp 0x100b5dd0
cmp byte [ebp - 0x13], 0
jne 0x100b5dc3
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x1c1394
call dword [eax + 4]
xor eax, eax
jmp 0x100b5dd0
xor eax, eax
cmp byte [ebp - 0x15], al
sete al
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc