Function at 0x1003c1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov bl, byte [esp + 0x30]
mov esi, edx
mov edi, ecx
mov dl, 1
test bl, bl
je 0x1003c318
movsd xmm0, qword [esi + 0x10]
movsd xmm2, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [esp + 0x14], xmm0
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm2
mov eax, dword [edi + 0x18]
cmp eax, 1
je 0x1003c242
test eax, eax
jne 0x1003c24a
mov ebp, dword [edi + 0x1c]
test ebp, ebp
je 0x1003c24a
cmp dword [edi + 0x20], 0
je 0x1003c24a
call sub.KERNEL32.dll_GetProcessHeap
push ebp
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x1003c24a
lea ecx, [edi + 0x1c]
call fcn.1003c0c0
mov dword [edi + 0x18], 1
lea ebp, [edi + 0x1c]
movsd xmm0, qword [esp + 4]
movsd xmm1, qword [esp + 0xc]
movsd qword [edi + 0x1c], xmm0
movsd qword [edi + 0x24], xmm1
movsd xmm0, qword [esp + 0x14]
movsd qword [edi + 0x2c], xmm0
mov eax, dword [edi]
nop word [eax + eax]
mov ecx, eax
xor ecx, 3
lock cmpxchg dword [edi], ecx
jne 0x1003c280
test al, 1
je 0x1003c3df
test al, 2
jne 0x1003c3f0
test al, 8
jne 0x1003c2cd
mov eax, dword [edi + 0x18]
cmp eax, 1
je 0x1003c2e7
test eax, eax
jne 0x1003c2ee
mov eax, dword [ebp]
test eax, eax
je 0x1003c2ee
cmp dword [edi + 0x20], 0
je 0x1003c2ee
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x1003c2ee
test al, 0x10
je 0x1003c316
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x1003c401
push dword [edi + 0x38]
call dword [eax + 8]
add esp, 4
jmp 0x1003c316
mov ecx, ebp
call fcn.1003c0c0
mov dword [edi + 0x18], 2
movsd xmm0, qword [esp + 0x14]
movsd qword [ebp + 0x10], xmm0
movsd xmm0, qword [esp + 4]
movsd xmm1, qword [esp + 0xc]
movsd qword [ebp + 8], xmm1
movsd qword [ebp], xmm0
xor edx, edx
mov eax, dword [edi]
nop word [eax + eax]
test bl, bl
je 0x1003c330
test al, 2
mov ecx, eax
jne 0x1003c335
jmp 0x1003c3c6
mov ecx, eax
or ecx, 2
cmp ecx, 0x3f
jbe 0x1003c3b5
add ecx, 0xffffffc0
lock cmpxchg dword [edi], ecx
jne 0x1003c320
cmp ecx, 0x3f
ja 0x1003c39b
mov eax, dword [edi + 0x18]
mov ebp, edx
cmp eax, 1
je 0x1003c373
test eax, eax
jne 0x1003c37b
mov ebx, dword [edi + 0x1c]
test ebx, ebx
je 0x1003c37b
cmp dword [edi + 0x20], 0
je 0x1003c37b
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x1003c37b
lea ecx, [edi + 0x1c]
call fcn.1003c0c0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x1003c38b
push dword [edi + 0x38]
call dword [eax + 0xc]
add esp, 4
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, ebp
test dl, dl
je 0x1003c3ad
mov ecx, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1003c0c0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.assertion_failed:_self.ref_count_____0
mov edx, 0x26
push 0x103a29e0
jmp 0x1003c3d5
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 0x1003c3d5
mov ecx, str.assertion_failed:__prev.is_complete__
mov edx, 0x25
push 0x103a2950
jmp 0x1003c3d5
mov ecx, str.waker_missing
mov edx, 0xd
push 0x103a2970
call fcn.10037140
add esp, 4
ud2