Function at 0x140024770
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 [0x1400c02b0]
test rax, rax
jne 0x140024a1d
cmp word [0x1400c6af8], bp
jne 0x140024a1d
cmp qword [0x1400c6af0], rbp
jne 0x140024a1d
mov r8b, 1
lea rdx, str.NtShutdownSystem
call fcn.140024190
mov dword [0x1400c6afc], eax
mov ecx, 0xfff
and ax, cx
mov word [0x1400c6af8], ax
xor edx, edx
mov r8d, 1
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1400c6af0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov esi, ebp
mov qword [rsp + 0x50], rbp
mov rbx, qword [0x1400c0360]
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x48]
cmp byte [rbx + 0x19], bpl
jne 0x14002492a
lea r15, [0x140024a40]
nop dword [rax]
movups xmm6, xmmword [rbx + 0x20]
mov ecx, 0x20
call fcn.14009f198
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, [0x140027b00]
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 0x1400249d7
cmp rdi, rsi
je 0x1400248b3
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 0x1400248cf
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140027780
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
cmp dword [rsp + 0x38], 0
jne 0x1400249d0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140024908
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140024903
nop
cmp rbx, qword [rax + 0x10]
jne 0x140024903
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400248f0
mov rbx, rax
jmp 0x140024920
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140024920
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140024914
cmp byte [rbx + 0x19], 0
je 0x140024830
mov rbp, qword [rsp + 0x40]
mov rbx, rbp
cmp rbp, rdi
je 0x140024981
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x1400249ff
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x1400249f3
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 0x1400249e7
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140024940
test rbp, rbp
je 0x140024a1d
mov rax, rbp
cmp rbp, rdi
je 0x1400249a1
cmp dword [rax + 8], 0
jne 0x140024a0b
add rax, 0x10
cmp rax, rdi
jne 0x140024992
sub rsi, rbp
and rsi, 0xfffffffffffffff0
mov rax, rbp
cmp rsi, 0x1000
jb 0x140024a12
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024a12
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.14009f1d4
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