Function at 0x1400344b4
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
mov sil, 1
xor r14d, r14d
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 [0x140099910]
seta al
test al, al
je 0x140034566
mov rcx, rdi
call fcn.140034c1c
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 0x140034618
mov r9, qword [rcx + 0x40]
mov edx, dword [r9]
mov eax, edx
shr eax, 1
xor eax, dword [r8]
test al, 1
je 0x1400345a7
int 0x2c
mov eax, edx
lock cmpxchg dword [r9], edx
cmp edx, eax
jne 0x140034597
mov eax, dword [r8]
shr eax, 1
xor eax, edx
test al, 1
jne 0x1400345ca
test edx, 0xfffffffc
movzx esi, sil
cmova esi, ebx
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], bl
je 0x1400345f0
mov rax, qword [rcx + 8]
jmp 0x1400345e6
cmp rcx, qword [rax + 0x10]
jne 0x1400345eb
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x1400345d9
mov rcx, rax
jmp 0x140034609
mov rcx, rax
mov rdx, qword [rax]
cmp byte [rdx + 0x19], bl
jne 0x140034609
mov rcx, rdx
mov rax, qword [rdx]
mov rdx, rax
cmp byte [rax + 0x19], bl
je 0x1400345fb
cmp byte [rcx + 0x19], bl
je 0x140034593
test sil, sil
jne 0x140034618
inc dword [rdi + 0x64]
jmp 0x140034642
mov eax, dword [r8]
shr rax, 1
and eax, 1
imul rdx, rax, 0x100020
mov rcx, qword [rdi + 0x20]
lea r14, [rcx + 0x10]
add r14, rdx
mov eax, dword [rdi + 0x30]
mov dword [rdx + rcx + 8], eax
lock or dword [rsp], ebx
or dword [r8], 4
test rbp, rbp
je 0x140034656
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 0x1400347c0
call fcn.14002eb8c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14003467b
cmp dword [rcx], ebx
jbe 0x14003467b
call fcn.14002eb8c
call fcn.1400352f0
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
movabs r10, 0x96458e475ad73170
mov r8d, 0x100000
mov rdx, r14
mov rax, qword [rax + 0x18]
call qword [case.0x140063591.0]
mov rcx, qword [r13]
mov dword [rcx], eax
mov rcx, qword [r13 + 0x10]
mov eax, dword [r14 + 4]
mov dword [rcx], eax
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x88]
test eax, eax
je 0x1400348e5
call fcn.14002eb8c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400346f3
cmp dword [rcx], ebx
jbe 0x1400346f3
call fcn.14002eb8c
call fcn.140035244
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, 0x100020
mov rax, qword [rdi + 0x20]
mov dword [rcx + rax + 0xc], edx
mov eax, dword [r10]
shr eax, 1
xor eax, dword [r10]
and eax, 1
xor dword [r10], eax
mov dword [rdi + 0x64], ebx
mov r8, qword [r15]
mov r8, qword [r8]
jmp 0x1400347a4
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 0x14003474b
mov rax, qword [r8 + 0x10]
cmp byte [rax + 0x19], bl
je 0x14003478b
mov rax, qword [r8 + 8]
jmp 0x140034781
cmp r8, qword [rax + 0x10]
jne 0x140034786
mov r8, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x140034774
mov r8, rax
jmp 0x1400347a4
mov r8, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], bl
jne 0x1400347a4
mov r8, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], bl
je 0x140034796
cmp byte [r8 + 0x19], bl
je 0x140034743
test rbp, rbp
je 0x1400347c3
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
jmp 0x1400347c3
mov r13b, bl
mov eax, dword [rdi + 0x60]
test eax, eax
je 0x1400348b5
cmp dword [rdi + 0x64], eax
jl 0x1400348b5
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 0x14003481c
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 0x1400347ef
mov qword [rsi + 8], rsi
mov qword [rsi], rsi
mov qword [rsi + 0x10], rsi
mov qword [r15 + 8], rbx
mov esi, 0x200048
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 0x140034884
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 0x14003489d
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 0x1400348c9
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
lea r8, str.onecoreinternal_sdkincwilopensource_wil_resource.h
mov edx, 0x932
call fcn.14000602c
int3