Function at 0x180012280
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x18004d010]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12, r9
mov r14, r8
mov qword [rbp - 0x69], rdx
mov r15, rcx
test rdx, rdx
je 0x180012749
cmp r8, 0x40000000
ja 0x180012749
mov rcx, r8
call fcn.1800250ec
mov rsi, rax
mov edx, dword [0x18004dec4]
mov rcx, qword gs:[0x58]
mov eax, 4
mov rbx, qword [rcx + rdx*8]
add rbx, rax
xor edi, edi
mov ecx, dword [rbx]
cmp dword [0x18004df9c], ecx
jle 0x180012631
lea rcx, [0x18004df9c]
call fcn.180024c20
cmp dword [0x18004df9c], 0xffffffff
jne 0x180012631
mov rax, qword [str.UWVSK__]
mov qword [rbp - 0x71], rax
lea r11d, [rdi + 4]
lea r13d, [rdi + 0x1f]
mov r10d, dword [0x18004d018]
cmp byte [0x180047adf], dil
je 0x180012490
cmp r10d, 2
jl 0x180012451
movdqa xmm4, xmmword [0x180048060]
movd xmm6, r11d
movd xmm5, r13d
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 - 0x71]
pxor xmm2, xmm0
movd dword [rbp - 0x71], 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 - 0x6d]
pxor xmm2, xmm0
movd dword [rbp - 0x6d], xmm2
jmp 0x180012490
lea r9, [rbp - 0x71]
mov r8d, edi
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x180012460
mov eax, dword [0x180047ac0]
mov dword [rbp - 0x79], eax
movsd xmm0, qword [str.VMUHWOPSn_:D]
movzx eax, byte [0x180047ac4]
movsd qword [rsp + 0x20], xmm0
mov byte [rbp - 0x75], al
mov r8d, edi
cmp r10d, 2
jl 0x1800125c8
movdqa xmm4, xmmword [0x180048060]
movd xmm6, r11d
movd xmm5, r13d
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 [rsp + 0x20], 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 - 0x7d]
pxor xmm2, xmm1
movd dword [rbp - 0x7d], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x1800125e0
lea rdx, [rbp - 0x71]
lea rcx, [rsp + 0x20]
call fcn.180009e10
mov qword [0x18004e010], rax
lea rcx, [0x18004df9c]
call fcn.180024bc0
mov r13, qword [0x18004e010]
mov eax, dword [rbx]
cmp dword [0x18004e008], eax
jle 0x180012687
lea rcx, [0x18004e008]
call fcn.180024c20
cmp dword [0x18004e008], 0xffffffff
jne 0x180012687
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 0x1800126d0
lea rcx, [0x18004df30]
call fcn.180024c20
cmp dword [0x18004df30], 0xffffffff
jne 0x1800126d0
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 0x1800126ea
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rbp - 0x19], 0x25ff
mov word [rbp - 0x15], 0
mov qword [rbp - 0x13], r13
mov rax, qword [0x18004dfa0]
mov qword [rbp - 0x31], 0xe
lea rcx, [rbp - 9]
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x59], rax
mov rcx, qword [r15 + 0x38]
test rcx, rcx
jne 0x180012726
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x31]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x59]
call qword [rax + 0x10]
test al, al
jne 0x18001277a
lea rcx, [0x18004dfb0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.180024a70
mov rbx, qword [rsp + 0x118]
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x18004dfa0]
mov qword [rbp - 0x29], 0xe
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x51], rcx
mov qword [rbp - 0x49], rax
mov rcx, qword [r15 + 0x78]
test rcx, rcx
jne 0x1800127a5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x49]
call qword [rax + 0x10]
test al, al
je 0x18001273c
mov rax, qword [0x18004dfa8]
mov r8, r14
mov rdx, qword [rbp - 0x69]
mov rcx, rsi
call rax
mov r13, rax
mov rcx, qword [0x18004dfa0]
mov qword [rbp - 0x21], 0xe
lea rax, [rbp - 9]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rcx
mov rcx, qword [r15 + 0x78]
test rcx, rcx
jne 0x1800127fc
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x21]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x39]
call qword [rax + 0x10]
lea rcx, [0x18004dfb0]
test al, al
je 0x180012743
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test r13, r13
je 0x180012749
mov eax, dword [rbx]
cmp dword [0x18004e198], eax
jle 0x18001285e
lea rcx, [0x18004e198]
call fcn.180024c20
cmp dword [0x18004e198], 0xffffffff
jne 0x18001285e
mov byte [0x18004e3d0], 0
lea rcx, [0x18004e198]
call fcn.180024bc0
mov r9, qword [rbp + 0x7f]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x180012870
sub r14d, eax
movzx r10d, byte [r9]
mov rbx, rsi
test r10b, r10b
je 0x1800128b9
movzx ecx, r10b
mov rax, r9
mov rdx, rbx
sub rdx, r9
mov r8, r12
sub r8, r9
nop dword [rax]
cmp cl, 0x78
jne 0x1800128af
movzx ecx, byte [r8 + rax]
cmp byte [rdx + rax], cl
jne 0x1800128cb
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x1800128a0
test rbx, rbx
jne 0x1800128da
mov rcx, rsi
call fcn.180024a90
jmp 0x180012749
inc edi
cmp edi, r14d
ja 0x1800128be
movsxd rbx, edi
add rbx, rsi
jmp 0x180012889
mov rcx, rsi
call fcn.180024a90
sub rbx, rsi
add rbx, qword [rbp - 0x69]
mov rax, rbx
jmp 0x18001274b