Function at 0x100e73b0
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 0x100e744e
lea esi, [edi + 0x18]
mov ecx, esi
call fcn.100e2ef0
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 0x100e7400
test al, 1
je 0x100e75eb
test al, 2
jne 0x100e75fc
test al, 8
jne 0x100e742e
mov ecx, esi
call fcn.100e2ef0
mov dword [esi], 2
jmp 0x100e744c
test al, 0x10
je 0x100e744c
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x100e760d
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 0x100e747a
lea edx, [esp + 8]
mov ecx, esi
mov dword [esp + 8], edi
call fcn.10108450
test eax, eax
setne cl
jmp 0x100e747c
xor ecx, ecx
mov eax, dword [edi]
jmp 0x100e7486
lock cmpxchg dword [edi], ebp
je 0x100e74c5
test bl, bl
je 0x100e74a0
test al, 2
mov edx, eax
jne 0x100e74a5
jmp 0x100e75d2
mov edx, eax
or edx, 2
cmp edx, 0x3f
jbe 0x100e75c1
lea ebp, [edx - 0x40]
test cl, cl
je 0x100e7480
cmp ebp, 0x3f
jbe 0x100e75c1
add edx, 0xffffff80
mov ebp, edx
jmp 0x100e7480
cmp ebp, 0x3f
ja 0x100e750e
mov eax, dword [edi + 0x1e8]
lea ebp, [edi + 0x18]
test eax, eax
je 0x100e74e3
lock dec dword [eax]
jne 0x100e74e3
mov ecx, esi
call fcn.1006d4e0
mov ecx, ebp
call fcn.100e2ef0
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x100e7500
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 0x100e75b9
cmp dword [edi], 0
je 0x100e75b9
mov esi, dword [edi + 4]
test esi, esi
je 0x100e75b9
mov eax, dword [0x10551f24]
test eax, eax
jne 0x100e7557
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 0x100e7578
mov esi, dword [esi]
test esi, esi
je 0x100e7578
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 0x100e75b9
cmp dword [edi + 8], 9
jae 0x100e75a9
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100e75b1
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 0x103a29e0
jmp 0x100e75e1
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 0x100e75e1
mov ecx, str.assertion_failed:__prev.is_complete__
mov edx, 0x25
push 0x103a2950
jmp 0x100e75e1
mov ecx, str.waker_missing
mov edx, 0xd
push 0x103a2970
call fcn.1004d820
add esp, 4
ud2