Function at 0x180001d30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x240
mov dword [rsp + 0xd8], 0x20000
mov dword [rsp + 0x118], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x120], 0
lea rdi, [rsp + 0x121]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov edx, dword [rsp + 0xd8]
mov r8d, 0x53595351
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x90], rax
mov ecx, dword [rsp + 0xd8]
mov rdi, qword [rsp + 0x90]
xor eax, eax
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0x90]
mov ecx, 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0xc0000004
jne 0x180001e55
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0xd8]
shl eax, 1
mov dword [rsp + 0xd8], eax
mov edx, dword [rsp + 0xd8]
mov r8d, 0x53595351
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x90], rax
mov ecx, dword [rsp + 0xd8]
mov rdi, qword [rsp + 0x90]
xor eax, eax
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0x90]
mov ecx, 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x70], eax
jmp 0x180001dd7
cmp dword [rsp + 0x70], 0
jge 0x180001e61
jmp 0x1800020ef
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x90]
add rax, 8
mov qword [rsp + 0x40], rax
lea rdi, [0x180009060]
xor eax, eax
mov ecx, 0x44000
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
jmp 0x180001eab
mov rax, qword [rsp + 0x58]
add rax, 1
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x58], rax
jae 0x1800020ef
mov rcx, qword [rsp + 0x58]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + rcx]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x58]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + rcx + 6]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0xe0], 0x30
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xf8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0xe0]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x180001f7a
jmp 0x180001e9d
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1fffff
lea r9, [rsp + 0x88]
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x180001fc4
jmp 0x180001e9d
mov qword [rsp + 0x20], 0
mov r9d, 0x38
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwQueryObject]
mov r8d, 0x4f4e4f4e
mov edx, 0x400
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwQueryObject]
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x60]
call fcn.180001c10
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rsp + 0x120]
call fcn.180007cf4
mov rdx, qword [rsp + 0x250]
mov rcx, rax
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x1800020ea
mov rcx, qword [rsp + 0x58]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax + rcx]
call fcn.180001bd0
mov qword [rsp + 0x230], rax
mov rcx, qword [rsp + 0x58]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x40]
movzx edx, word [rax + rcx + 6]
mov rcx, qword [rsp + 0x230]
call fcn.180001cb0
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x180001e9d
add rsp, 0x240
pop rdi
ret