Function at 0x140002100
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xc0
movaps xmmword [rax - 0x28], xmm6
mov esi, 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 + 0xe8]
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 rdi, rax
lea rdx, str.NtDuplicateObject
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.NtOpenProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov dword [rsp + 0x50], 0x30
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x70], r12
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x90], xmm1
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x40], xmm1
mov ebx, 0x20
mov ecx, ebx
call fcn.1400040f0
mov qword [0x140009370], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movsd xmm6, qword [0x140005c48]
mov rcx, rax
call fcn.1400040ac
mov eax, ebx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
cvttsd2si rbx, xmm0
mov ebx, ebx
mov ecx, ebx
call fcn.1400040f0
mov qword [0x140009370], rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov r8d, ebx
mov rdx, qword [0x140009370]
lea ecx, [r9 + 0x10]
call rdi
cmp eax, 0xc0000004
jne 0x14000225a
mov rax, qword [0x140009370]
jmp 0x140002201
test eax, eax
jns 0x140002295
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.140003bf0
lea rdx, [0x140003dc0]
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]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edi, r12d
mov rax, qword [0x140009370]
cmp dword [rax], r12d
jbe 0x1400023a7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [0x140009388]
call qword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
cmp dword [0x140009388], 0x32
ja 0x1400023e1
mov eax, edi
lea rbx, [rax + rax*2]
mov rax, qword [0x140009370]
cmp word [rax + rbx*8 + 0xe], 0
je 0x140002396
cmp byte [rax + rbx*8 + 0xc], 7
jne 0x140002396
mov eax, dword [rax + rbx*8 + 8]
mov qword [rsp + 0x40], rax
mov rcx, qword [0x140009358]
test rcx, rcx
je 0x14000230a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
mov edx, 0x40
lea rcx, [0x140009358]
call r14
mov rcx, qword [0x140009358]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140002396
test eax, eax
js 0x140002396
mov rax, qword [0x140009370]
movzx edx, word [rax + rbx*8 + 0xe]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x1fffff
lea r9, [0x140009360]
mov r8, 0xffffffffffffffff
call r15
mov rcx, qword [0x140009360]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140002396
test eax, eax
js 0x140002396
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, esi
je 0x1400023d1
mov rcx, qword [0x140009360]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov rax, qword [0x140009370]
cmp edi, dword [rax]
jb 0x1400022a8
mov rax, qword [0x140009368]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, qword [0x140009360]
mov qword [0x140009368], rax
jmp 0x1400023ae
lea rdx, str.Error_Handle_Leakage_Detected
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003bf0
lea rdx, [0x140003dc0]
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]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3