Function at 0x14003dbb8
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 [0x1400b1ca0]
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
comiss xmm1, dword [0x1400998f0]
seta al
test al, al
je 0x14003dc6d
mov rcx, rdi
call fcn.140034c1c
mov qword [rdi + 0x58], rbx
mov r9, qword [rdi + 0x20]
mov eax, dword [r9]
lea ecx, [rax*2 - 2]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [r9], ecx
lea r15, [rdi + 0x48]
mov rcx, qword [r15]
mov rcx, qword [rcx]
xor ebx, ebx
cmp byte [rcx + 0x19], bl
jne 0x14003dd1f
mov r8, qword [rcx + 0x40]
mov edx, dword [r8]
mov eax, edx
shr eax, 1
xor eax, dword [r9]
test al, 1
je 0x14003dcae
int 0x2c
mov eax, edx
lock cmpxchg dword [r8], edx
cmp edx, eax
jne 0x14003dc9e
mov eax, dword [r9]
shr eax, 1
xor eax, edx
test al, 1
jne 0x14003dcd1
test edx, 0xfffffffc
movzx esi, sil
cmova esi, ebx
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], bl
je 0x14003dcf7
mov rax, qword [rcx + 8]
jmp 0x14003dced
cmp rcx, qword [rax + 0x10]
jne 0x14003dcf2
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x14003dce0
mov rcx, rax
jmp 0x14003dd10
mov rcx, rax
mov rdx, qword [rax]
cmp byte [rdx + 0x19], bl
jne 0x14003dd10
mov rcx, rdx
mov rax, qword [rdx]
mov rdx, rax
cmp byte [rax + 0x19], bl
je 0x14003dd02
cmp byte [rcx + 0x19], bl
je 0x14003dc9a
test sil, sil
jne 0x14003dd1f
inc dword [rdi + 0x64]
jmp 0x14003dd49
mov eax, dword [r9]
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 [r9], 4
test rbp, rbp
je 0x14003dd5d
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 0x14003de85
mov rbx, qword [r13]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, qword [rax]
call fcn.1400423d8
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 0x14003ddad
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 0x14003de69
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 0x14003de10
mov rax, qword [r8 + 0x10]
cmp byte [rax + 0x19], bl
je 0x14003de50
mov rax, qword [r8 + 8]
jmp 0x14003de46
cmp r8, qword [rax + 0x10]
jne 0x14003de4b
mov r8, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x14003de39
mov r8, rax
jmp 0x14003de69
mov r8, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], bl
jne 0x14003de69
mov r8, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], bl
je 0x14003de5b
cmp byte [r8 + 0x19], bl
je 0x14003de08
test rbp, rbp
je 0x14003de88
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
jmp 0x14003de88
mov r13b, bl
mov eax, dword [rdi + 0x60]
test eax, eax
je 0x14003df7a
cmp dword [rdi + 0x64], eax
jl 0x14003df7a
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 0x14003dee1
mov r8, qword [r14 + 0x10]
mov rdx, r15
mov rcx, r15
call fcn.140027230
mov rbx, r14
mov r14, qword [r14]
lea rcx, [rbx + 0x28]
call fcn.1400271c0
mov edx, 0x68
mov rcx, rbx
call fcn.14007eb34
xor ebx, ebx
cmp byte [r14 + 0x19], bl
je 0x14003deb4
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.14004f094
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.140035104
xor ebx, ebx
mov dword [rdi + 0x64], ebx
lea rcx, [rsp + 0x20]
call fcn.14004f018
test rbp, rbp
je 0x14003df49
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 0x14003df62
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.0x140063591.0]
nop
test r12, r12
je 0x14003df8e
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