Function at 0x140008950
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xf0]
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140008a35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, str.Failed_to_duplicate_handle__error:__lu
lea rcx, [rsp + 0xb0]
call fcn.140002b80
nop
lea rdx, [0x14000bea0]
lea rcx, [rsp + 0x90]
call fcn.140002be0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x90]
mov edx, 0xc
lea rcx, [0x14000f170]
call fcn.1400065b0
nop
lea rcx, [rsp + 0xb0]
call fcn.140003340
nop
mov eax, 1
jmp 0x140008c1c
mov dword [rsp + 0x50], 0
mov dword [rsp + 0xf8], 0
mov qword [rsp + 0x48], 0
lea r9, [rsp + 0xf8]
mov r8d, dword [rsp + 0xf8]
mov rdx, qword [rsp + 0x48]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc0000004
jne 0x140008b0b
cmp qword [rsp + 0x48], 0
je 0x140008ac6
mov eax, dword [rsp + 0xf8]
shl rax, 1
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x48]
mov edx, 8
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x48], rax
jmp 0x140008b06
mov eax, dword [rsp + 0xf8]
shl rax, 1
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x80]
mov edx, 8
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
jmp 0x140008a51
mov qword [rsp + 0x60], 0
cmp dword [rsp + 0x50], 0
jl 0x140008b9f
mov dword [rsp + 0x40], 0
jmp 0x140008b33
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x40], eax
jae 0x140008b9d
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax + 8]
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x58]
cmp ecx, eax
jne 0x140008b9b
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax + 0xe]
movzx ecx, word [rsp + 0xf0]
cmp eax, ecx
jne 0x140008b9b
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x60], rax
jmp 0x140008b9d
jmp 0x140008b29
jmp 0x140008c17
cmp qword [rsp + 0x48], 0
je 0x140008c17
lea rdx, str.NtQuerySystemInformation_failed___code:_0x_X_
lea rcx, [rsp + 0xd0]
call fcn.140002b80
nop
lea rdx, str.c_poc::get_ethread_address
lea rcx, [rsp + 0xa0]
call fcn.140002be0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xa0]
mov edx, 0xc
lea rcx, [0x14000f170]
call fcn.1400062a0
nop
lea rcx, [rsp + 0xd0]
call fcn.140003340
nop
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140009940
add rsp, 0x118
ret