Function at 0x140011368
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov rax, qword [0x1400d6a00]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov qword [rsp + 0x58], rcx
mov edx, 0x10000
mov esi, 0x656e6864
mov dword [rsp + 0x40], edx
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14001163e
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.14001ea80
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov r14d, 0x10
mov rdx, rbx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov r15d, 0xc0000004
jmp 0x140011447
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x40]
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14001163e
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.14001ea80
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, r15d
je 0x1400113fc
test eax, eax
js 0x140011643
mov r15d, dword [rbx]
lea rdi, [rbx + 8]
xor ebx, ebx
mov r14d, 0xc0000001
mov esi, ebx
test r15, r15
je 0x140011639
movzx r13d, word [rdi]
lea r9, [rsp + 0x60]
movzx r12d, word [rdi + 6]
lea r8, [rsp + 0x70]
and qword [rbp - 0x78], 0
lea rcx, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x60], r13
mov edx, 0x40
mov qword [rsp + 0x70], 0x30
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
test eax, eax
js 0x140011607
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x30], 2
or r8, 0xffffffffffffffff
mov dword [rsp + 0x28], ebx
mov edx, r12d
mov dword [rsp + 0x20], 0x1fffff
call qword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
test eax, eax
js 0x140011607
mov edx, 0x400
xor ecx, ecx
mov r8d, 0x656e6864
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140011605
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call fcn.14001ea80
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov r9d, 0x400
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryObject]
xor eax, eax
cmp word [rbx], ax
jbe 0x1400115f7
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x400
call fcn.14001ea80
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x400
call fcn.14001ea80
mov rax, qword [rsp + 0x58]
or r8, 0xffffffffffffffff
xor ecx, ecx
inc r8
cmp word [rax + r8*2], cx
jne 0x140011590
mov rdx, rax
lea rcx, [rbp - 0x60]
call sub.ntoskrnl.exe_wcsncpy
movzx r8d, word [rbx]
lea rcx, [rbp + 0x3a0]
mov rdx, qword [rbx + 8]
shr r8, 1
call sub.ntoskrnl.exe_wcsncpy
lea rcx, [rbp - 0x60]
call sub.ntoskrnl.exe__wcslwr
lea rcx, [rbp + 0x3a0]
call sub.ntoskrnl.exe__wcslwr
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x3a0]
call sub.ntoskrnl.exe_wcsstr
test rax, rax
je 0x1400115f7
mov rdx, r12
mov rcx, r13
call fcn.140017fb8
xor eax, eax
mov r14d, eax
mov edx, 0x656e6864
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140011617
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140011627
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc esi
add rdi, 0x18
movsxd rcx, esi
cmp rcx, r15
jb 0x14001146e
mov eax, r14d
jmp 0x140011643
mov eax, 0xc00000a0
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14001e6e0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret