Function at 0x140001ba4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
cmp qword [rsp + 0x1c0], 0
jne 0x140001bc8
xor eax, eax
jmp 0x140001eb8
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 0x140001cb0
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 0x140001c50
xor eax, eax
jmp 0x140001eb8
mov rax, qword [rsp + 0x58]
add rax, 0x4c0
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1400023c0
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 0x140001cab
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x140001eb8
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
lea rdx, [0x1400024b0]
mov rcx, qword [rsp + 0x1c0]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x140001cf2
lea rdx, [0x1400024c0]
mov rcx, qword [rsp + 0x1c0]
call sub.ntoskrnl.exe__stricmp
test eax, eax
jne 0x140001d3b
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 + 0x1c8], 0
je 0x140001d36
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x1c8]
mov qword [rcx], rax
jmp 0x140001e88
mov rcx, qword [rsp + 0x1c0]
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 + 0x1c0]
call sub.ntoskrnl.exe_strlen
inc rax
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400023c0
mov rcx, qword [rsp + 0x1c0]
call sub.ntoskrnl.exe_strlen
mov r8, rax
mov rdx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x48]
call fcn.140002100
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe__strupr
mov dword [rsp + 0x40], 0
jmp 0x140001dbd
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 0x140001e7e
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, [0x1400024d0]
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 0x140001e79
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x1c8], 0
je 0x140001e77
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x1c8]
mov qword [rcx], rax
jmp 0x140001e7e
jmp 0x140001db3
xor eax, eax
test eax, eax
jne 0x140001cc2
cmp qword [rsp + 0x48], 0
je 0x140001e9d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140001eb3
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x60]
add rsp, 0x1b0
pop rdi
ret