Function at 0x140001ba4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14000c800]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp qword [rsp + 0x1d0], 0
jne 0x140001bda
xor eax, eax
jmp 0x140001eca
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
mov r8d, 0x130
mov rdx, qword [rsp + 0x38]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xc0000004
jne 0x140001cc2
mov rax, qword [rsp + 0x58]
add rax, 0x4c0
mov rdx, rax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140001c62
xor eax, eax
jmp 0x140001eca
mov rax, qword [rsp + 0x58]
add rax, 0x4c0
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1400024c0
mov rax, qword [rsp + 0x58]
add rax, 0x4c0
lea r9, [rsp + 0x58]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x140001cbd
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x140001eca
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
lea rdx, [0x1400025b0]
mov rcx, qword [rsp + 0x1d0]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x140001d04
lea rdx, [0x1400025c0]
mov rcx, qword [rsp + 0x1d0]
call sub.ntoskrnl.exe__stricmp
test eax, eax
jne 0x140001d4d
mov eax, 0x128
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x1d8], 0
je 0x140001d48
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x1d8]
mov qword [rcx], rax
jmp 0x140001e9a
mov rcx, qword [rsp + 0x1d0]
call sub.ntoskrnl.exe_strlen
inc rax
mov rdx, rax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x1d0]
call sub.ntoskrnl.exe_strlen
inc rax
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400024c0
mov rcx, qword [rsp + 0x1d0]
call sub.ntoskrnl.exe_strlen
mov r8, rax
mov rdx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x48]
call fcn.140002200
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe__strupr
mov dword [rsp + 0x40], 0
jmp 0x140001dcf
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x40], eax
jae 0x140001e90
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov rcx, rax
call sub.ntoskrnl.exe__strupr
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + 0x26]
mov rdx, qword [rsp + 0x50]
lea rcx, [rdx + rcx + 0x28]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [0x1400025d0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x140001e8b
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x1d8], 0
je 0x140001e89
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x1d8]
mov qword [rcx], rax
jmp 0x140001e90
jmp 0x140001dc5
xor eax, eax
test eax, eax
jne 0x140001cd4
cmp qword [rsp + 0x48], 0
je 0x140001eaf
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140001ec5
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400020e0
add rsp, 0x1c0
pop rdi
ret