Function at 0x100e70b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov bl, byte [esp + 0x20]
mov ebp, edx
mov edi, ecx
mov al, 1
test bl, bl
je 0x100e714e
lea esi, [edi + 0x18]
mov ecx, esi
call fcn.100e2bf0
mov dword [edi + 0x18], 1
movsd xmm0, qword [ebp]
movsd xmm1, qword [ebp + 8]
movsd qword [edi + 0x1c], xmm0
movsd qword [edi + 0x24], xmm1
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2c], eax
mov eax, dword [edi]
nop word cs:[eax + eax]
mov ecx, eax
xor ecx, 3
lock cmpxchg dword [edi], ecx
jne 0x100e7100
test al, 1
je 0x100e72eb
test al, 2
jne 0x100e72fc
test al, 8
jne 0x100e712e
mov ecx, esi
call fcn.100e2bf0
mov dword [esi], 2
jmp 0x100e714c
test al, 0x10
je 0x100e714c
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x100e730d
push dword [edi + 0x1f0]
call dword [eax + 8]
add esp, 4
xor eax, eax
cmp dword [edi + 0x1e8], 0
lea esi, [edi + 0x1e8]
mov dword [esp + 4], ebp
mov dword [esp], eax
je 0x100e717a
lea edx, [esp + 8]
mov ecx, esi
mov dword [esp + 8], edi
call fcn.10108170
test eax, eax
setne cl
jmp 0x100e717c
xor ecx, ecx
mov eax, dword [edi]
jmp 0x100e7186
lock cmpxchg dword [edi], ebp
je 0x100e71c5
test bl, bl
je 0x100e71a0
test al, 2
mov edx, eax
jne 0x100e71a5
jmp 0x100e72d2
mov edx, eax
or edx, 2
cmp edx, 0x3f
jbe 0x100e72c1
lea ebp, [edx - 0x40]
test cl, cl
je 0x100e7180
cmp ebp, 0x3f
jbe 0x100e72c1
add edx, 0xffffff80
mov ebp, edx
jmp 0x100e7180
cmp ebp, 0x3f
ja 0x100e720e
mov eax, dword [edi + 0x1e8]
lea ebp, [edi + 0x18]
test eax, eax
je 0x100e71e3
lock dec dword [eax]
jne 0x100e71e3
mov ecx, esi
call fcn.1006d220
mov ecx, ebp
call fcn.100e2bf0
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x100e7200
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], 0
mov edi, dword [esp + 4]
je 0x100e72b9
cmp dword [edi], 0
je 0x100e72b9
mov esi, dword [edi + 4]
test esi, esi
je 0x100e72b9
mov eax, dword [0x104dec60]
test eax, eax
jne 0x100e7257
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x100e7278
mov esi, dword [esi]
test esi, esi
je 0x100e7278
push esi
call sub.KERNEL32.dll_DeleteCriticalSection
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [edi + 4]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
push esi
call dword [edi]
add esp, 4
cmp dword [edi + 4], 0
je 0x100e72b9
cmp dword [edi + 8], 9
jae 0x100e72a9
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100e72b1
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 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 0x10423c50
jmp 0x100e72e1
mov ecx, str.assertion_failed:_snapshot.is_complete____B
mov edx, 0x28
push 0x10423c18
call fcn.100ff9a0
add esp, 4
ud2
mov ecx, str.assertion_failed:_prev.is_running__
mov edx, 0x23
push 0x10423b88
jmp 0x100e72e1
mov ecx, str.assertion_failed:__prev.is_complete__
mov edx, 0x25
push 0x10423bc0
jmp 0x100e72e1
mov ecx, str.waker_missing
mov edx, 0xd
push 0x10423be0
call fcn.1004d560
add esp, 4
ud2