Function at 0x180018de0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x18004d010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rdx
mov rdi, qword [rcx]
mov ecx, dword [0x18004dec4]
mov rax, qword gs:[0x58]
mov edx, 4
mov rbx, qword [rax + rcx*8]
add rbx, rdx
mov eax, dword [rbx]
cmp dword [0x18004df9c], eax
jle 0x18001914c
lea rcx, [0x18004df9c]
call fcn.180024c20
cmp dword [0x18004df9c], 0xffffffff
jne 0x18001914c
mov rax, qword [str.UWVSK__]
mov qword [rbp - 0x49], rax
mov esi, 0x1f
xor ecx, ecx
lea r11d, [rsi - 0x1b]
mov r10d, dword [0x18004d018]
cmp byte [0x180047adf], cl
je 0x180018fc0
cmp r10d, 2
jl 0x180018f82
movdqa xmm4, xmmword [0x180048060]
movd xmm6, r11d
movd xmm5, esi
movdqa xmm2, xmmword [0x180047fb0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180047fe0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180048020]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180048040]
movd xmm0, dword [rbp - 0x49]
pxor xmm2, xmm0
movd dword [rbp - 0x49], xmm2
movdqa xmm3, xmmword [0x180047fc0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180047fe0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180048020]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180048040]
movd xmm0, dword [rbp - 0x45]
pxor xmm2, xmm0
movd dword [rbp - 0x45], xmm2
jmp 0x180018fc0
lea r9, [rbp - 0x49]
mov r8d, ecx
nop dword [rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, r8b
sub al, dl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x180018f90
mov eax, dword [0x180047ac0]
mov dword [rbp - 0x51], eax
movsd xmm0, qword [str.VMUHWOPSn_:D]
movzx eax, byte [0x180047ac4]
movsd qword [rbp - 0x59], xmm0
mov byte [rbp - 0x4d], al
cmp r10d, 2
jl 0x1800190f1
movdqa xmm4, xmmword [0x180048060]
movd xmm6, r11d
movd xmm5, esi
movdqa xmm2, xmmword [0x180047fb0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180047fe0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180048020]
packuswb xmm2, xmm2
mov eax, dword [0x180048040]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [str.VMUHWOPSn_:D]
pxor xmm2, xmm1
movd dword [rbp - 0x59], xmm2
movdqa xmm3, xmmword [0x180047fc0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180047fe0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180048020]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x55]
pxor xmm2, xmm1
movd dword [rbp - 0x55], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rbp - 0x59]
add r8, rax
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x38
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xd
jl 0x180019100
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
call fcn.180009e10
mov qword [0x18004e010], rax
lea rcx, [0x18004df9c]
call fcn.180024bc0
mov rsi, qword [0x18004e010]
mov eax, dword [rbx]
cmp dword [0x18004e008], eax
jle 0x1800191a2
lea rcx, [0x18004e008]
call fcn.180024c20
cmp dword [0x18004e008], 0xffffffff
jne 0x1800191a2
lea rcx, [0x180027a08]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18004dfa8], rax
lea rcx, [0x18004e008]
call fcn.180024bc0
mov eax, dword [rbx]
cmp dword [0x18004df30], eax
jle 0x1800191eb
lea rcx, [0x18004df30]
call fcn.180024c20
cmp dword [0x18004df30], 0xffffffff
jne 0x1800191eb
mov edx, 2
lea rcx, [0x18004dfb0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1800266f0]
call fcn.1800250d4
lea rcx, [0x18004df30]
call fcn.180024bc0
lea rcx, [0x18004dfb0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180019205
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rbp + 0xf], 0x25ff
mov word [rbp + 0x13], 0
mov qword [rbp + 0x15], rsi
mov rax, qword [0x18004dfa0]
mov qword [rbp - 9], 0xe
lea rcx, [rbp + 0x1f]
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x39], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x180019241
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 9]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x39]
call qword [rax + 0x10]
test al, al
jne 0x18001926b
lea rcx, [0x18004dfb0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
xor eax, eax
jmp 0x180019324
mov rax, qword [0x18004dfa0]
mov qword [rbp - 1], 0xe
lea rcx, [rbp + 0xf]
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x180019296
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 1]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x29]
call qword [rax + 0x10]
test al, al
je 0x180019257
mov rax, qword [0x18004dfa8]
mov r8d, 0x10
mov rdx, r14
lea rcx, [rbp - 0x11]
call rax
mov rbx, rax
mov rcx, qword [0x18004dfa0]
mov qword [rbp + 7], 0xe
lea rax, [rbp + 0x1f]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rcx
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x1800192f0
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 7]
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x19]
call qword [rax + 0x10]
lea rcx, [0x18004dfb0]
test al, al
je 0x18001925e
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
jne 0x180019320
xor eax, eax
jmp 0x180019324
mov rax, qword [rbp - 0x11]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180024a70
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret