Function at 0x180012900
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
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.180025cf0
sub rsp, rax
movaps xmmword [rsp + 0x10c0], xmm6
mov rax, qword [0x18004d010]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov qword [rsp + 0x38], r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
je 0x180012dd0
mov r9d, dword [0x18004dec4]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rbx, qword [rax + r9*8]
add rbx, rcx
xor esi, esi
mov eax, dword [rbx]
cmp dword [0x18004df9c], eax
jle 0x180012cb2
lea rcx, [0x18004df9c]
call fcn.180024c20
cmp dword [0x18004df9c], 0xffffffff
jne 0x180012cb2
mov rax, qword [str.UWVSK__]
mov qword [rsp + 0x30], rax
lea r11d, [rsi + 4]
lea r12d, [rsi + 0x1f]
mov r10d, dword [0x18004d018]
cmp byte [0x180047adf], sil
je 0x180012b10
cmp r10d, 2
jl 0x180012acc
movdqa xmm4, xmmword [0x180048060]
movd xmm6, r11d
movd xmm5, r12d
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 [rsp + 0x30]
pxor xmm2, xmm0
movd dword [rsp + 0x30], 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 [rsp + 0x34]
pxor xmm2, xmm0
movd dword [rsp + 0x34], xmm2
jmp 0x180012b10
lea r9, [rsp + 0x30]
mov r8d, esi
nop dword [rax]
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 0x180012ae0
mov eax, dword [0x180047ac0]
mov dword [rsp + 0x28], eax
movsd xmm0, qword [str.VMUHWOPSn_:D]
movzx eax, byte [0x180047ac4]
movsd qword [rsp + 0x20], xmm0
mov byte [rsp + 0x2c], al
mov r8d, esi
cmp r10d, 2
jl 0x180012c4c
movdqa xmm4, xmmword [0x180048060]
movd xmm6, r11d
movd xmm5, r12d
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 [rsp + 0x24]
pxor xmm2, xmm1
movd dword [rsp + 0x24], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, 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 0x180012c60
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.180009e10
mov qword [0x18004e010], rax
lea rcx, [0x18004df9c]
call fcn.180024bc0
mov r12, qword [0x18004e010]
mov eax, dword [rbx]
cmp dword [0x18004e008], eax
jle 0x180012d08
lea rcx, [0x18004e008]
call fcn.180024c20
cmp dword [0x18004e008], 0xffffffff
jne 0x180012d08
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 0x180012d51
lea rcx, [0x18004df30]
call fcn.180024c20
cmp dword [0x18004df30], 0xffffffff
jne 0x180012d51
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 0x180012d6b
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rbp - 0x78], 0x25ff
mov word [rbp - 0x74], 0
mov qword [rbp - 0x72], r12
mov rax, qword [0x18004dfa0]
mov qword [rsp + 0x70], 0xe
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x180012daa
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
test al, al
jne 0x180012e04
lea rcx, [0x18004dfb0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
xor eax, eax
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.180024a70
mov rbx, qword [rsp + 0x1118]
movaps xmm6, xmmword [rsp + 0x10c0]
add rsp, 0x10d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x18004dfa0]
mov qword [rsp + 0x78], 0xe
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x180012e32
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
call qword [rax + 0x10]
test al, al
je 0x180012dc3
mov rax, qword [0x18004dfa8]
mov r8d, 0x1000
mov rdx, r15
lea rcx, [rbp - 0x50]
call rax
mov rbx, rax
mov rcx, qword [0x18004dfa0]
mov qword [rbp - 0x80], 0xe
lea rax, [rbp - 0x68]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x180012e95
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
call qword [rax + 0x10]
lea rcx, [0x18004dfb0]
test al, al
je 0x180012dca
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
je 0x180012dd0
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [r14 + rdi], 0
jne 0x180012ed0
movsxd rax, dword [rbp - 0x14]
lea rcx, [rbp - 0x50]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea r13, [rcx + 0x18]
add r13, rax
movzx r12d, word [rcx + 6]
test r12d, r12d
je 0x180012dd0
nop
lea rcx, [rsi + rsi*4]
lea rbx, [rcx*8]
add rbx, r13
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180012f3e
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x180012f30
cmp rdi, rax
je 0x180012f4b
inc esi
cmp esi, r12d
jae 0x180012dd0
jmp 0x180012f00
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x180012dd0
mov ecx, dword [rbx + 8]
lea rdx, [rbp - 0x50]
add rdx, rax
je 0x180012dd0
test ecx, ecx
je 0x180012dd0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180012f7a
mov dword [rax], ecx
lea rax, [rbp - 0x50]
sub r15, rax
lea rax, [rdx + r15]
jmp 0x180012dd2