Function at 0x180016820
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x180050040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, r9
mov r15, r8
mov qword [rbp - 0x51], rdx
mov r13, rcx
test rdx, rdx
je 0x180016d57
cmp r8, 0x40000000
ja 0x180016d57
mov rcx, r8
call fcn.1800276b4
mov r14, rax
mov ecx, dword [0x18008a250]
mov rax, qword gs:[0x58]
mov edx, 4
mov rbx, qword [rax + rcx*8]
add rbx, rdx
xor edi, edi
mov eax, dword [rbx]
cmp dword [0x18008a298], eax
jle 0x180016b73
lea rcx, [0x18008a298]
call fcn.180027290
cmp dword [0x18008a298], 0xffffffff
jne 0x180016b73
mov rax, qword [str.UWVSK__]
mov qword [rbp - 0x49], rax
movdqa xmm5, xmmword [0x18004b210]
movdqa xmm2, xmmword [0x18004b1d0]
movdqa xmm3, xmmword [0x18004b1c0]
movdqa xmm7, xmmword [0x18004b260]
movdqa xmm6, xmmword [0x18004b200]
movdqa xmm4, xmmword [0x18004b280]
mov r10d, dword [0x180050090]
cmp r10d, 2
jl 0x1800169cd
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
movdqa xmm1, xmm3
psubd xmm1, xmm0
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
movd xmm0, dword [rbp - 0x49]
xorps xmm1, xmm0
movd dword [rbp - 0x49], xmm1
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
movdqa xmm1, xmm2
psubd xmm1, xmm0
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
movd xmm0, dword [rbp - 0x45]
xorps xmm1, xmm0
movd dword [rbp - 0x45], xmm1
jmp 0x180016a13
lea r9, [rbp - 0x49]
mov r8d, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x1800169e0
mov eax, dword [0x18002abd8]
mov dword [rbp - 0x31], eax
movzx eax, byte [0x18002abdc]
movsd xmm0, qword [str.VMUHWOPSn_:D]
mov byte [rbp - 0x2d], al
movsd qword [rbp - 0x39], xmm0
mov r8d, edi
cmp r10d, 2
jl 0x180016b07
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm5
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd eax, xmm7
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [str.VMUHWOPSn_:D]
xorps xmm3, xmm0
movd dword [rbp - 0x39], xmm3
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x35]
xorps xmm2, xmm1
movd dword [rbp - 0x35], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x39]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x180016b20
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.180001f60
mov qword [0x18008a300], rax
lea rcx, [0x18008a298]
call fcn.180027224
mov r12, qword [0x18008a300]
mov eax, dword [rbx]
cmp dword [0x18008a2f8], eax
jle 0x180016bc9
lea rcx, [0x18008a2f8]
call fcn.180027290
cmp dword [0x18008a2f8], 0xffffffff
jne 0x180016bc9
lea rcx, [0x18002a978]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18008a2b8], rax
lea rcx, [0x18008a2f8]
call fcn.180027224
mov dword [rbp - 0x29], 0x25ff
mov word [rbp - 0x25], 0
mov qword [rbp - 0x23], r12
mov rax, qword [0x18008a2a8]
mov qword [rbp - 0x49], 0xe
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x39], rax
mov rcx, qword [r13 + 0x38]
test rcx, rcx
jne 0x180016c05
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x39]
call qword [rax + 0x10]
test al, al
je 0x180016d57
mov rax, qword [0x18008a2a8]
mov qword [rbp - 0x39], 0xe
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x49], rax
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x180016c4a
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x39]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x49]
call qword [rax + 0x10]
test al, al
je 0x180016d57
mov rax, qword [0x18008a2b8]
mov r8, r15
mov rdx, qword [rbp - 0x51]
mov rcx, r14
call rax
mov r12, rax
mov rcx, qword [0x18008a2a8]
mov qword [rbp - 0x39], 0xe
lea rax, [rbp - 0x19]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], rcx
mov rcx, qword [r13 + 0x78]
test rcx, rcx
jne 0x180016ca5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x39]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x49]
call qword [rax + 0x10]
test al, al
je 0x180016d57
test r12, r12
je 0x180016d57
mov eax, dword [rbx]
cmp dword [0x18008a394], eax
jle 0x180016cfa
lea rcx, [0x18008a394]
call fcn.180027290
cmp dword [0x18008a394], 0xffffffff
jne 0x180016cfa
mov byte [0x18008a460], 0
lea rcx, [0x18008a394]
call fcn.180027224
mov r9, qword [rbp + 0x7f]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r9 + rax], 0
jne 0x180016d05
sub r15d, eax
movzx r10d, byte [r9]
mov rbx, r14
test r10b, r10b
je 0x180016d4a
movzx ecx, r10b
mov rax, rsi
mov rdx, rbx
sub rdx, rsi
mov r8, r9
sub r8, rsi
cmp cl, 0x78
jne 0x180016d3e
movzx ecx, byte [rax]
cmp byte [rdx + rax], cl
jne 0x180016d8d
inc rax
movzx ecx, byte [r8 + rax]
test cl, cl
jne 0x180016d31
test rbx, rbx
jne 0x180016d9f
mov rcx, r14
call fcn.1800271e0
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1800271c0
mov rbx, qword [rsp + 0xe8]
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
inc edi
cmp edi, r15d
ja 0x180016d4f
movsxd rbx, edi
add rbx, r14
jmp 0x180016d1e
mov rcx, r14
call fcn.1800271e0
sub rbx, r14
add rbx, qword [rbp - 0x51]
mov rax, rbx
jmp 0x180016d59