Function at 0x14003cb68
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, rdx
mov rdi, 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 [rsp + 0xa8], r12
xor r15d, r15d
mov sil, 1
mov r14d, r15d
lock inc dword [rdi + 0x30]
lea rbp, [rdi + 0x38]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa0]
mov rax, rbx
sub rax, qword [rdi + 0x58]
imul rax, rax, 0x3e8
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x1400aec80]
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
comiss xmm1, dword [0x140097760]
seta al
test al, al
je 0x14003cc1d
mov rcx, rdi
call fcn.1400338dc
mov qword [rdi + 0x58], rbx
mov r8, qword [rdi + 0x20]
mov eax, dword [r8]
lea ecx, [rax*2 - 2]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [r8], ecx
lea r15, [rdi + 0x48]
mov rcx, qword [r15]
mov rcx, qword [rcx]
xor ebx, ebx
cmp byte [rcx + 0x19], bl
jne 0x14003cccf
mov r9, qword [rcx + 0x40]
mov edx, dword [r9]
mov eax, edx
shr eax, 1
xor eax, dword [r8]
test al, 1
je 0x14003cc5e
int 0x2c
mov eax, edx
lock cmpxchg dword [r9], edx
cmp edx, eax
jne 0x14003cc4e
mov eax, dword [r8]
shr eax, 1
xor eax, edx
test al, 1
jne 0x14003cc81
test edx, 0xfffffffc
movzx esi, sil
cmova esi, ebx
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], bl
je 0x14003cca7
mov rax, qword [rcx + 8]
jmp 0x14003cc9d
cmp rcx, qword [rax + 0x10]
jne 0x14003cca2
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x14003cc90
mov rcx, rax
jmp 0x14003ccc0
mov rcx, rax
mov rdx, qword [rax]
cmp byte [rdx + 0x19], bl
jne 0x14003ccc0
mov rcx, rdx
mov rax, qword [rdx]
mov rdx, rax
cmp byte [rax + 0x19], bl
je 0x14003ccb2
cmp byte [rcx + 0x19], bl
je 0x14003cc4a
test sil, sil
jne 0x14003cccf
inc dword [rdi + 0x64]
jmp 0x14003ccf9
mov eax, dword [r8]
shr rax, 1
and eax, 1
imul rdx, rax, 0x100e8
mov rcx, qword [rdi + 0x20]
lea r14, [rcx + 0xc]
add r14, rdx
mov eax, dword [rdi + 0x30]
mov dword [rdx + rcx + 4], eax
lock or dword [rsp], ebx
or dword [r8], 4
test rbp, rbp
je 0x14003cd0d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
test sil, sil
je 0x14003ce35
mov rbx, qword [r13]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, qword [rax]
call fcn.140041278
mov rax, qword [rbx + 8]
mov rbx, qword [rax + 0x120]
lea rsi, [rbx + 8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov ebx, dword [rbx + 0x14]
test rsi, rsi
je 0x14003cd5d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test ebx, ebx
setne al
mov byte [r14 + 0x4c], al
mov r13b, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov r10, qword [rdi + 0x20]
mov ecx, dword [r10]
and ecx, 0xfffffffb
mov dword [r10], ecx
mov edx, dword [rdi + 0x30]
shr rcx, 1
and ecx, 1
imul rcx, rcx, 0x100e8
mov rax, qword [rdi + 0x20]
mov dword [rcx + rax + 8], edx
mov eax, dword [r10]
shr eax, 1
xor eax, dword [r10]
and eax, 1
xor dword [r10], eax
xor ebx, ebx
mov dword [rdi + 0x64], ebx
mov r8, qword [r15]
mov r8, qword [r8]
jmp 0x14003ce19
mov r9, qword [r8 + 0x40]
prefetchw byte [r9]
mov edx, dword [r9]
mov ecx, dword [r10]
add ecx, ecx
xor ecx, edx
and ecx, 2
xor ecx, edx
mov eax, edx
lock cmpxchg dword [r9], ecx
cmp edx, eax
jne 0x14003cdc0
mov rax, qword [r8 + 0x10]
cmp byte [rax + 0x19], bl
je 0x14003ce00
mov rax, qword [r8 + 8]
jmp 0x14003cdf6
cmp r8, qword [rax + 0x10]
jne 0x14003cdfb
mov r8, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x14003cde9
mov r8, rax
jmp 0x14003ce19
mov r8, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], bl
jne 0x14003ce19
mov r8, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], bl
je 0x14003ce0b
cmp byte [r8 + 0x19], bl
je 0x14003cdb8
test rbp, rbp
je 0x14003ce38
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
jmp 0x14003ce38
mov r13b, bl
mov eax, dword [rdi + 0x60]
test eax, eax
je 0x14003cf2a
cmp dword [rdi + 0x64], eax
jl 0x14003cf2a
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov rsi, qword [r15]
mov r14, qword [rsi + 8]
jmp 0x14003ce91
mov r8, qword [r14 + 0x10]
mov rdx, r15
mov rcx, r15
call fcn.140026394
mov rbx, r14
mov r14, qword [r14]
lea rcx, [rbx + 0x28]
call fcn.140026320
mov edx, 0x68
mov rcx, rbx
call fcn.140007d20
xor ebx, ebx
cmp byte [r14 + 0x19], bl
je 0x14003ce64
mov qword [rsi + 8], rsi
mov qword [rsi], rsi
mov qword [rsi + 0x10], rsi
mov qword [r15 + 8], rbx
mov esi, 0x201d4
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.14004def4
mov r8d, esi
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 8]
call fcn.140033dbc
xor ebx, ebx
mov dword [rdi + 0x64], ebx
lea rcx, [rsp + 0x20]
call fcn.14004de78
test rbp, rbp
je 0x14003cef9
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
jne 0x14003cf12
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xbad_function_call_void_]
nop dword [rax + rax]
int3
mov rax, qword [rcx]
movabs r10, 0xe3d0a69134582a70
mov rax, qword [rax + 0x10]
call qword [case.0x1400620e5.0]
nop
test r12, r12
je 0x14003cf3e
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov al, r13b
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret