Function at 0x140045c18
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, rdx
mov rdi, rcx
lea r15, [rcx + 0x40]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov qword [rsp + 0x80], r15
xor eax, eax
mov r13b, al
mov bl, 1
mov r14d, eax
lock inc dword [rdi + 0x30]
lea rsi, [rdi + 0x38]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov rcx, rdi
call fcn.140039ec8
mov r10, qword [rdi + 0x20]
mov eax, dword [r10]
lea ecx, [rax*2 - 2]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [r10], ecx
lea r12, [rdi + 0x48]
mov r8, qword [r12]
mov rcx, qword [r8]
cmp rcx, r8
je 0x140045d2d
mov r9, qword [rcx + 0x40]
mov edx, dword [r9]
mov eax, edx
shr eax, 1
xor eax, dword [r10]
test al, 1
je 0x140045cba
int 0x2c
mov eax, edx
lock cmpxchg dword [r9], edx
cmp edx, eax
jne 0x140045caa
mov eax, dword [r10]
shr eax, 1
xor eax, edx
test al, 1
jne 0x140045ce2
test edx, 0xfffffffc
movzx ebx, bl
mov r9, r14
cmova ebx, r9d
jmp 0x140045ce5
xor r9d, r9d
cmp byte [rcx + 0x19], r9b
jne 0x140045d1f
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], r9b
jne 0x140045d03
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r9b
je 0x140045cf5
jmp 0x140045d1f
mov rax, qword [rcx + 8]
jmp 0x140045d16
cmp rcx, qword [rax + 0x10]
jne 0x140045d1c
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r9b
je 0x140045d09
mov rcx, rax
cmp rcx, r8
jne 0x140045ca6
test bl, bl
jne 0x140045d30
inc dword [rdi + 0x5c]
jmp 0x140045d5b
xor r9d, r9d
mov eax, dword [r10]
shr rax, 1
and eax, 1
imul rdx, rax, 0x100f4
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], r9d
or dword [r10], 4
test rsi, rsi
je 0x140045d69
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x140045e71
mov rbx, qword [rbp]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, qword [rax]
call fcn.14004e874
mov rax, qword [rbx + 8]
mov rbx, qword [rax + 0x120]
lea rbp, [rbx + 8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov ebx, dword [rbx + 0x14]
test rbp, rbp
je 0x140045dac
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
xor ebp, ebp
test ebx, ebx
setne al
mov byte [r14 + 0x4c], al
mov r13b, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov r11, qword [rdi + 0x20]
and dword [r11], 0xfffffffb
mov eax, dword [r11]
shr rax, 1
and eax, 1
imul rdx, rax, 0x100f4
mov rcx, qword [rdi + 0x20]
mov eax, dword [rdi + 0x30]
mov dword [rdx + rcx + 8], eax
mov eax, dword [r11]
shr eax, 1
xor eax, dword [r11]
and eax, 1
xor dword [r11], eax
mov dword [rdi + 0x5c], ebp
mov r9, qword [r12]
mov r8, qword [r9]
jmp 0x140045e5c
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 0x140045e08
cmp byte [r8 + 0x19], bpl
jne 0x140045e5c
mov rax, qword [r8 + 0x10]
cmp byte [rax + 0x19], bpl
jne 0x140045e40
mov r8, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], bpl
je 0x140045e32
jmp 0x140045e5c
mov rax, qword [r8 + 8]
jmp 0x140045e53
cmp r8, qword [rax + 0x10]
jne 0x140045e59
mov r8, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bpl
je 0x140045e46
mov r8, rax
cmp r8, r9
jne 0x140045e00
test rsi, rsi
je 0x140045e73
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
jmp 0x140045e73
xor ebp, ebp
mov eax, dword [rdi + 0x58]
test eax, eax
je 0x140045fd7
cmp dword [rdi + 0x5c], eax
jl 0x140045fd7
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov rcx, r12
call fcn.140022a48
mov edx, 0x201ec
lea rcx, [rsp + 0x28]
call fcn.1400671dc
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
mov rdx, qword [rdi + 0x20]
mov eax, 0x403
mov r8d, 0x80
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rcx - 0x10], xmm1
add rdx, r8
sub rax, 1
jne 0x140045ebe
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
mov rax, qword [rdx + 0x60]
mov qword [rcx + 0x60], rax
mov eax, dword [rdx + 0x68]
mov dword [rcx + 0x68], eax
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140045f75
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x140045f71
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000b684
int3
mov qword [rdi + 0x18], rbp
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
mov qword [rsp + 0x38], rbp
mov qword [rdi + 0x20], rbx
mov eax, dword [rsp + 0x48]
mov dword [rdi + 0x28], eax
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], 0x8000ffff
mov dword [rdi + 0x5c], ebp
lea rcx, [rsp + 0x28]
call fcn.1400670d8
test rsi, rsi
je 0x140045fb6
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rdi + 0x98]
test rcx, rcx
jne 0x140045fc9
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400aa8c0]
nop
test r15, r15
je 0x140045fe5
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov al, r13b
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret