Function at 0x140033174
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 [0x1400aec80]
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
comiss xmm1, dword [0x140097768]
seta al
test al, al
je 0x140033226
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 0x1400332d8
mov r9, qword [rcx + 0x40]
mov edx, dword [r9]
mov eax, edx
shr eax, 1
xor eax, dword [r8]
test al, 1
je 0x140033267
int 0x2c
mov eax, edx
lock cmpxchg dword [r9], edx
cmp edx, eax
jne 0x140033257
mov eax, dword [r8]
shr eax, 1
xor eax, edx
test al, 1
jne 0x14003328a
test edx, 0xfffffffc
movzx esi, sil
cmova esi, ebx
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], bl
je 0x1400332b0
mov rax, qword [rcx + 8]
jmp 0x1400332a6
cmp rcx, qword [rax + 0x10]
jne 0x1400332ab
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x140033299
mov rcx, rax
jmp 0x1400332c9
mov rcx, rax
mov rdx, qword [rax]
cmp byte [rdx + 0x19], bl
jne 0x1400332c9
mov rcx, rdx
mov rax, qword [rdx]
mov rdx, rax
cmp byte [rax + 0x19], bl
je 0x1400332bb
cmp byte [rcx + 0x19], bl
je 0x140033253
test sil, sil
jne 0x1400332d8
inc dword [rdi + 0x64]
jmp 0x140033302
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 0x140033316
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 0x140033480
call fcn.14002dfdc
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14003333b
cmp dword [rcx], ebx
jbe 0x14003333b
call fcn.14002dfdc
call fcn.140033fa8
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.0x1400620e5.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 0x1400335a5
call fcn.14002dfdc
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400333b3
cmp dword [rcx], ebx
jbe 0x1400333b3
call fcn.14002dfdc
call fcn.140033efc
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 0x140033464
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 0x14003340b
mov rax, qword [r8 + 0x10]
cmp byte [rax + 0x19], bl
je 0x14003344b
mov rax, qword [r8 + 8]
jmp 0x140033441
cmp r8, qword [rax + 0x10]
jne 0x140033446
mov r8, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x140033434
mov r8, rax
jmp 0x140033464
mov r8, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], bl
jne 0x140033464
mov r8, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], bl
je 0x140033456
cmp byte [r8 + 0x19], bl
je 0x140033403
test rbp, rbp
je 0x140033483
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
jmp 0x140033483
mov r13b, bl
mov eax, dword [rdi + 0x60]
test eax, eax
je 0x140033575
cmp dword [rdi + 0x64], eax
jl 0x140033575
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 0x1400334dc
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 0x1400334af
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.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 0x140033544
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 0x14003355d
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 0x140033589
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, 0x924
call fcn.140005c78
int3