Function at 0x140001c20
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 [0x14000ab88]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp qword [rsp + 0x1d0], 0
jne 0x140001c56
xor eax, eax
jmp 0x140001f46
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 0x140001d3e
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 0x140001cde
xor eax, eax
jmp 0x140001f46
mov rax, qword [rsp + 0x58]
add rax, 0x4c0
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140002540
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 0x140001d39
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x140001f46
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
lea rdx, [0x140002630]
mov rcx, qword [rsp + 0x1d0]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x140001d80
lea rdx, [0x140002640]
mov rcx, qword [rsp + 0x1d0]
call sub.ntoskrnl.exe__stricmp
test eax, eax
jne 0x140001dc9
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 0x140001dc4
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x1d8]
mov qword [rcx], rax
jmp 0x140001f16
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.140002540
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.140002280
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe__strupr
mov dword [rsp + 0x40], 0
jmp 0x140001e4b
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 0x140001f0c
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, [0x140002650]
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 0x140001f07
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x1d8], 0
je 0x140001f05
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x1d8]
mov qword [rcx], rax
jmp 0x140001f0c
jmp 0x140001e41
xor eax, eax
test eax, eax
jne 0x140001d50
cmp qword [rsp + 0x48], 0
je 0x140001f2b
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140001f41
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.140002160
add rsp, 0x1c0
pop rdi
ret