Function at 0x140003160
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
cmp qword [rsp + 0xb0], 0
jne 0x140003184
xor eax, eax
jmp 0x140003469
mov edx, 0x130
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8d, 0x130
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000326c
lfence
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [rsp + 0x20], 0xc0000004
je 0x1400031ef
lfence
movsxd rax, dword [rsp + 0x20]
jmp 0x140003469
mov rax, qword [rsp + 0x38]
add rax, 0x130
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140003880
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000326c
cmp dword [rsp + 0x20], 0xc0000004
je 0x14000326c
lfence
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movsxd rax, dword [rsp + 0x20]
jmp 0x140003469
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [0x140004080]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [0x140004090]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
cmp dword [rsp + 0x20], 0
jl 0x14000343c
mov r8b, 1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x14000332a
mov r8b, 1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x140003361
lfence
mov eax, 0x128
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov eax, 0x128
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x20]
mov qword [rsp + 0x40], rax
jmp 0x14000343c
mov dword [rsp + 0x24], 0
jmp 0x140003375
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x14000343c
lfence
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x26]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x28]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov r8b, 1
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x140003437
lfence
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x20]
mov qword [rsp + 0x40], rax
jmp 0x14000343c
jmp 0x14000336b
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0xb8], 0
je 0x140003464
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
add rsp, 0xa0
pop rdi
ret