Function at 0x14003c92c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov rdi, rdx
mov r14, rcx
lea r12, [rcx + 0x40]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov qword [rbp - 0x48], r12
xor eax, eax
mov byte [rbp + 0x48], al
mov r13b, 1
mov ebx, eax
mov qword [rbp + 0x60], rax
lock inc dword [r14 + 0x30]
lea r15, [r14 + 0x38]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
lea rcx, [rbp + 0x58]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov rsi, qword [rbp + 0x58]
mov rax, rsi
sub rax, qword [r14 + 0x58]
imul rax, rax, 0x3e8
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x1400cf298]
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
comiss xmm1, dword [0x1400b6a14]
seta al
xor r10d, r10d
test al, al
je 0x14003cab9
lea r12, [r14 + 0x48]
mov rax, qword [r12]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14003caad
lea rcx, [rbx + 0x28]
call fcn.14003cfcc
mov rdi, qword [rbx + 0x10]
xor r10d, r10d
test al, al
jne 0x14003ca59
mov rax, rbx
cmp byte [rdi + 0x19], r10b
je 0x14003ca26
mov rdi, qword [rbx + 8]
jmp 0x14003ca1e
cmp rax, qword [rdi + 0x10]
jne 0x14003ca3e
mov rax, rdi
mov rdi, qword [rdi + 8]
cmp byte [rdi + 0x19], r10b
je 0x14003ca11
jmp 0x14003ca3e
mov rcx, qword [rdi]
cmp byte [rcx + 0x19], r10b
jne 0x14003ca3e
mov rdi, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r10b
je 0x14003ca2f
mov rdx, rbx
mov rcx, r12
call fcn.1400165c0
mov rdx, rax
call fcn.14002fff8
mov rbx, rdi
xor r10d, r10d
jmp 0x14003ca98
cmp byte [rdi + 0x19], r10b
je 0x14003ca7d
mov rax, qword [rbx + 8]
jmp 0x14003ca72
cmp rbx, qword [rax + 0x10]
jne 0x14003ca78
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r10b
je 0x14003ca65
mov rbx, rax
jmp 0x14003ca98
mov rbx, rdi
mov rcx, qword [rdi]
cmp byte [rcx + 0x19], r10b
jne 0x14003ca98
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r10b
je 0x14003ca89
mov rax, qword [r12]
mov qword [rbp - 0x40], rax
cmp rbx, rax
jne 0x14003c9ee
mov rdi, qword [rbp + 0x50]
mov qword [r14 + 0x58], rsi
lea r12, [r14 + 0x40]
mov rbx, qword [rbp + 0x60]
mov r9, qword [r14 + 0x20]
mov eax, dword [r9]
lea ecx, [rax*2 - 2]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [r9], ecx
lea rsi, [r14 + 0x48]
mov r8, qword [rsi]
mov rcx, qword [r8]
cmp rcx, r8
je 0x14003cb7e
mov r10, qword [rcx + 0x40]
mov edx, dword [r10]
mov eax, edx
shr eax, 1
xor eax, dword [r9]
test al, 1
je 0x14003caf8
int 0x2c
mov eax, edx
lock cmpxchg dword [r10], edx
cmp edx, eax
jne 0x14003cae8
mov eax, dword [r9]
shr eax, 1
xor eax, edx
test al, 1
jne 0x14003cb24
test edx, 0xfffffffc
movzx r13d, r13b
mov r10d, 0
cmova r13d, r10d
jmp 0x14003cb27
xor r10d, r10d
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], r10b
je 0x14003cb4f
mov rax, qword [rcx + 8]
jmp 0x14003cb44
cmp rcx, qword [rax + 0x10]
jne 0x14003cb4a
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r10b
je 0x14003cb37
mov rcx, rax
jmp 0x14003cb6a
mov rcx, rax
mov rdx, qword [rax]
cmp byte [rdx + 0x19], r10b
jne 0x14003cb6a
mov rcx, rdx
mov rax, qword [rdx]
mov rdx, rax
cmp byte [rax + 0x19], r10b
je 0x14003cb5b
cmp rcx, r8
jne 0x14003cae4
test r13b, r13b
jne 0x14003cb7e
inc dword [r14 + 0x64]
jmp 0x14003cbaa
mov eax, dword [r9]
shr rax, 1
and eax, 1
imul rdx, rax, 0x100020
mov rcx, qword [r14 + 0x20]
lea rbx, [rcx + 0x10]
add rbx, rdx
mov eax, dword [r14 + 0x30]
mov dword [rdx + rcx + 8], eax
lock or dword [rsp], r10d
or dword [r9], 4
test r15, r15
je 0x14003cbbe
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
test r13b, r13b
je 0x14003cd30
call fcn.14002870c
mov rcx, qword [rax + 8]
xor r13d, r13d
test rcx, rcx
je 0x14003cbe7
cmp dword [rcx], r13d
jbe 0x14003cbe7
call fcn.14002870c
call fcn.14003dd04
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0xa8]
mov rax, qword [rcx]
mov r8d, 0x100000
mov rdx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14007c5ab.0]
mov ecx, eax
mov rax, qword [rdi]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x10]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0xa0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x40]
test eax, eax
je 0x14003ce87
call fcn.14002870c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14003cc58
cmp dword [rcx], r13d
jbe 0x14003cc58
call fcn.14002870c
call fcn.14003dc78
mov r13b, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov r11, qword [r14 + 0x20]
mov ecx, dword [r11]
and ecx, 0xfffffffb
mov dword [r11], ecx
mov edx, dword [r14 + 0x30]
shr rcx, 1
and ecx, 1
imul rcx, rcx, 0x100020
mov rax, qword [r14 + 0x20]
mov dword [rcx + rax + 0xc], edx
mov eax, dword [r11]
shr eax, 1
xor eax, dword [r11]
and eax, 1
xor dword [r11], eax
xor r10d, r10d
mov dword [r14 + 0x64], r10d
mov r9, qword [rsi]
mov r8, qword [r9]
jmp 0x14003cd15
mov r10, qword [r8 + 0x40]
prefetchw byte [r10]
mov edx, dword [r10]
mov ecx, dword [r11]
add ecx, ecx
xor ecx, edx
and ecx, 2
xor ecx, edx
mov eax, edx
lock cmpxchg dword [r10], ecx
cmp edx, eax
jne 0x14003ccb5
mov rax, qword [r8 + 0x10]
xor r10d, r10d
cmp byte [rax + 0x19], r10b
je 0x14003ccfa
mov rax, qword [r8 + 8]
jmp 0x14003ccef
cmp r8, qword [rax + 0x10]
jne 0x14003ccf5
mov r8, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r10b
je 0x14003cce2
mov r8, rax
jmp 0x14003cd15
mov r8, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r10b
jne 0x14003cd15
mov r8, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r10b
je 0x14003cd06
cmp r8, r9
jne 0x14003ccad
test r15, r15
je 0x14003cd34
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
jmp 0x14003cd34
mov r13b, byte [rbp + 0x48]
mov eax, dword [r14 + 0x60]
test eax, eax
je 0x14003ce3d
cmp dword [r14 + 0x64], eax
jl 0x14003ce3d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov rbx, qword [rsi]
mov rdi, qword [rbx + 8]
jmp 0x14003cd7c
mov r8, qword [rdi + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.140030084
mov rdx, rdi
mov rdi, qword [rdi]
call fcn.14002fff8
cmp byte [rdi + 0x19], 0
je 0x14003cd62
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor edi, edi
mov qword [rsi + 8], rdi
mov ebx, 0x200048
mov edx, ebx
lea rcx, [rbp - 0x38]
call fcn.140066e8c
mov r8d, ebx
mov rdx, qword [r14 + 0x20]
mov rbx, qword [rbp - 0x20]
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x14003cdd3
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14003ce66
mov rax, qword [rbp - 0x28]
mov qword [r14 + 0x18], rax
mov qword [rbp - 0x28], rdi
mov qword [r14 + 0x20], rbx
mov eax, dword [rbp - 0x18]
mov dword [r14 + 0x28], eax
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x18], 0x8000ffff
mov dword [r14 + 0x64], edi
lea rcx, [rbp - 0x38]
call fcn.140066d68
test r15, r15
je 0x14003ce16
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov rcx, qword [r14 + 0xa0]
test rcx, rcx
jne 0x14003ce2f
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xbad_function_call_void_]
nop dword [rax + rax]
int3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14007c5ab.0]
nop
test r12, r12
je 0x14003ce51
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov al, r13b
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1400145e8
int3
lea r8, str.onecoreinternal_sdkincwilopensource_wil_resource.h
mov edx, 0x921
call fcn.140005dd8
int3