Function at 0x140001450
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 8], ecx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov r12d, ecx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0x14]
call rax
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rsp + 0x48], rax
lea rdx, str.NtDuplicateObject
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
lea rdx, str.NtOpenProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 0x30
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x80], r15
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rsp + 0xb8], xmm1
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsp + 0xc8], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x90], xmm1
mov ebx, 0x20
mov ecx, ebx
call fcn.140001250
mov rdi, rax
mov qword [0x14000c8d8], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov r14d, 0x8123
mov rcx, rdi
call fcn.1400067e0
mov rax, qword [0x14000c8d8]
test rdi, rdi
cmovne rax, r14
mov qword [0x14000c8d8], rax
mov eax, ebx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x140008c18]
cvttsd2si rbx, xmm0
mov ebx, ebx
mov dword [rsp + 0x40], ebx
mov ecx, ebx
call fcn.140001250
mov qword [0x14000c8d8], rax
jmp 0x1400015e1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov r8d, ebx
mov rdx, qword [0x14000c8d8]
lea ecx, [r9 + 0x10]
call rsi
cmp eax, 0xc0000004
jne 0x140001612
mov rdi, qword [0x14000c8d8]
jmp 0x140001578
test eax, eax
jns 0x14000167c
mov rbx, qword [0x14000c8d8]
mov rcx, rbx
call fcn.1400067e0
mov rax, qword [0x14000c8d8]
test rbx, rbx
cmovne rax, r14
mov qword [0x14000c8d8], rax
mov rcx, qword [0x14000c8f0]
test rcx, rcx
je 0x14000164c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.NtQuerySystemInformation_Failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005a90
lea rdx, [0x140005f10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, r15d
mov rax, qword [0x14000c8d8]
cmp dword [rax], 0
jbe 0x1400017fb
mov rsi, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x14000c908]
call qword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
cmp dword [0x14000c908], 0x64
jbe 0x140001719
mov rbx, qword [0x14000c8d8]
mov rcx, rbx
call fcn.1400067e0
mov rax, qword [0x14000c8d8]
test rbx, rbx
cmovne rax, r14
mov qword [0x14000c8d8], rax
mov rcx, qword [0x14000c8f0]
test rcx, rcx
je 0x1400016e9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Error:_handle_leak
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005a90
lea rdx, [0x140005f10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, edi
lea rbx, [rax + rax*2]
mov rax, qword [0x14000c8d8]
cmp word [rax + rbx*8 + 0xe], 0
je 0x1400017ea
cmp byte [rax + rbx*8 + 0xc], 7
jne 0x1400017ea
mov eax, dword [rax + rbx*8 + 8]
mov qword [rsp + 0x90], rax
mov rcx, qword [0x14000c8f0]
test rcx, rcx
je 0x14000175b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xa8]
mov edx, 0x40
lea rcx, [0x14000c8f0]
call r13
mov rcx, qword [0x14000c8f0]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400017ea
test eax, eax
js 0x1400017ea
mov rax, qword [0x14000c8d8]
movzx edx, word [rax + rbx*8 + 0xe]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x1fffff
lea r9, [0x14000c8e8]
mov r8, 0xffffffffffffffff
call rsi
mov rcx, qword [0x14000c8e8]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400017ea
test eax, eax
js 0x1400017ea
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, r12d
je 0x14000182f
mov rcx, qword [0x14000c8e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov rax, qword [0x14000c8d8]
cmp edi, dword [rax]
jb 0x140001694
mov rax, qword [0x14000c8e0]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400067c0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [0x14000c8e8]
mov qword [0x14000c8e0], rax
jmp 0x140001802