Function at 0x100e30b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov bl, byte [esp + 0x20]
mov edi, ecx
mov al, 1
mov dword [esp], edx
test bl, bl
je 0x100e314f
lea ebp, [edi + 0x18]
mov ecx, ebp
call fcn.100e2ef0
mov eax, dword [esp]
mov dword [edi + 0x18], 1
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [edi + 0x1c], xmm0
movsd qword [edi + 0x24], xmm1
mov eax, dword [eax + 0x10]
mov dword [edi + 0x2c], eax
mov eax, dword [edi]
nop dword [eax]
mov ecx, eax
xor ecx, 3
lock cmpxchg dword [edi], ecx
jne 0x100e3100
test al, 1
je 0x100e32ef
test al, 2
jne 0x100e3300
test al, 8
jne 0x100e312f
mov ecx, ebp
call fcn.100e2ef0
mov dword [ebp], 2
jmp 0x100e314d
test al, 0x10
je 0x100e314d
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x100e3311
push dword [edi + 0x1f0]
call dword [eax + 8]
add esp, 4
xor eax, eax
cmp dword [edi + 0x1e8], 0
mov dword [esp + 4], eax
je 0x100e3170
lea ecx, [esp + 8]
mov dword [esp + 8], edi
call fcn.10107e70
test eax, eax
setne dl
jmp 0x100e3172
xor edx, edx
mov eax, dword [edi]
lea ecx, [edi + 0x1e8]
jmp 0x100e3186
lock cmpxchg dword [edi], esi
je 0x100e31c5
test bl, bl
je 0x100e31a0
test al, 2
mov ebp, eax
jne 0x100e31a5
jmp 0x100e32d6
mov ebp, eax
or ebp, 2
cmp ebp, 0x3f
jbe 0x100e32c5
lea esi, [ebp - 0x40]
test dl, dl
je 0x100e3180
cmp esi, 0x3f
jbe 0x100e32c5
add ebp, 0xffffff80
mov esi, ebp
jmp 0x100e3180
cmp esi, 0x3f
ja 0x100e320c
mov eax, dword [edi + 0x1e8]
lea ebx, [edi + 0x18]
test eax, eax
je 0x100e31e1
lock dec dword [eax]
jne 0x100e31e1
call fcn.10069f30
mov ecx, ebx
call fcn.100e2ef0
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x100e31fe
push dword [edi + 0x1f0]
call dword [eax + 0xc]
add esp, 4
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp byte [esp + 4], 0
je 0x100e32bd
mov eax, dword [esp]
cmp dword [eax], 0
je 0x100e32bd
mov eax, dword [esp]
mov edi, dword [eax + 4]
test edi, edi
je 0x100e32bd
mov eax, dword [0x10551f24]
test eax, eax
jne 0x100e3258
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
cmovne eax, edx
mov dword [0x10551f24], eax
cmp eax, 0x100f3390
jne 0x100e3279
mov esi, dword [edi]
test esi, esi
je 0x100e3279
push esi
call sub.KERNEL32.dll_DeleteCriticalSection
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [esp]
mov esi, dword [ebx + 4]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
push edi
call dword [esi]
add esp, 4
cmp dword [esi + 4], 0
je 0x100e32bd
cmp dword [esi + 8], 9
jae 0x100e32ad
call sub.KERNEL32.dll_GetProcessHeap
push edi
jmp 0x100e32b5
call sub.KERNEL32.dll_GetProcessHeap
push dword [edi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.assertion_failed:_self.ref_count_____0
mov edx, 0x26
push 0x103a29e0
jmp 0x100e32e5
mov ecx, str.assertion_failed:_snapshot.is_complete__
mov edx, 0x28
push 0x103a29a8
call fcn.100ffc80
add esp, 4
ud2
mov ecx, str.assertion_failed:_prev.is_running__
mov edx, 0x23
push 0x103a2918
jmp 0x100e32e5
mov ecx, str.assertion_failed:__prev.is_complete__
mov edx, 0x25
push 0x103a2950
jmp 0x100e32e5
mov ecx, str.waker_missing
mov edx, 0xd
push 0x103a2970
call fcn.1004d820
add esp, 4
ud2