Function at 0x140064f60
Capabilities:
Create thread
Load ntoskrnl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov r14, rcx
xor ebp, ebp
mov rax, qword [0x1401d03a0]
test rax, rax
jne 0x14006520d
cmp word [0x1401d04a8], bp
jne 0x14006520d
cmp qword [0x1401d04a0], rbp
jne 0x14006520d
mov r8b, 1
lea rdx, str.NtShutdownSystem
call fcn.140064920
mov dword [0x1401d04ac], eax
mov ecx, 0xfff
and ax, cx
mov word [0x1401d04a8], ax
xor edx, edx
lea r8d, [rbp + 1]
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1401d04a0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov esi, ebp
mov qword [rsp + 0x50], rbp
mov rbx, qword [0x1401d02f8]
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x48]
cmp byte [rbx + 0x19], bpl
jne 0x14006511a
lea r15, [0x140065230]
nop word [rax + rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, 0x20
call fcn.14007fe00
movdqa xmm0, xmm6
psrldq xmm0, 8
movq qword [rax], xmm0
movq qword [rax + 8], xmm6
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140065b80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400651c7
cmp rdi, rsi
je 0x1400650a3
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi], xmm1
add rdi, 0x10
mov qword [rsp + 0x48], rdi
jmp 0x1400650bf
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140065950
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
cmp dword [rsp + 0x38], 0
jne 0x1400651c0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400650f8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400650f3
nop
cmp rbx, qword [rax + 0x10]
jne 0x1400650f3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400650e0
mov rbx, rax
jmp 0x140065110
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140065110
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140065104
cmp byte [rbx + 0x19], 0
je 0x140065020
mov rbp, qword [rsp + 0x40]
mov rbx, rbp
cmp rbp, rdi
je 0x140065171
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x1400651ef
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1400651e3
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x1400651d7
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140065130
test rbp, rbp
je 0x14006520d
mov rax, rbp
cmp rbp, rdi
je 0x140065191
cmp dword [rax + 8], 0
jne 0x1400651fb
add rax, 0x10
cmp rax, rdi
jne 0x140065182
sub rsi, rbp
and rsi, 0xfffffffffffffff0
mov rax, rbp
cmp rsi, 0x1000
jb 0x140065202
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065202
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rdx, rsi
mov rcx, rbp
call fcn.14007fe44
mov rax, r14
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [rsp + 0x60]
mov rsp, r11
pop r15
pop r14
pop rdi
ret