Function at 0x10001d10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
lea eax, [esp + 0x13]
mov dword [esp + 0x14], 0
push eax
push 0
push 1
push 0x14
mov dword [esp + 0x28], 0x10000
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x30]
mov esi, dword [sym.imp.ntdll.dll_ZwOpenProcess]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x18
push eax
push 0x43a
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], 0
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0
call esi
test eax, eax
jns 0x10001f49
lea eax, [ebx + 1]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push 0x43a
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jns 0x10001f49
mov esi, dword [sym.imp.ntdll.dll_ZwAllocateVirtualMemory]
lea eax, [esp + 0x18]
push 4
push 0x1000
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
call esi
mov edi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x10
call edi
test eax, eax
je 0x10001e65
nop dword [eax]
push 0x8000
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_ZwFreeVirtualMemory]
mov eax, dword [esp + 0x18]
push 4
add eax, eax
mov dword [esp + 0x18], 0
push 0x1000
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
call esi
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x10
call edi
test eax, eax
jne 0x10001e10
mov eax, dword [esp + 0x14]
xor edi, edi
mov esi, dword [eax]
mov dword [esp + 0x1c], esi
lea esi, [eax + 4]
cmp dword [esp + 0x1c], edi
jbe 0x10001f2e
mov eax, dword [esp + 0x1c]
cmp byte [esi + 4], 5
jne 0x10001ef7
mov eax, dword [esi]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], 0
push eax
push 0x40
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenProcess]
test eax, eax
js 0x10001ef3
push 0
push 0
push 0x1fffff
lea eax, [esp + 0x38]
push eax
movzx eax, word [esi + 6]
push 0xffffffffffffffff
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_ZwDuplicateObject]
test eax, eax
js 0x10001ef3
push 0
push 0x18
lea eax, [esp + 0x58]
push eax
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
test eax, eax
js 0x10001ef3
cmp dword [esp + 0x60], ebx
je 0x10001f01
mov eax, dword [esp + 0x1c]
inc edi
add esi, 0x10
cmp edi, eax
jb 0x10001e82
jmp 0x10001f2a
push 0
push 0
push 0x43a
lea eax, [esp + 0x2c]
push eax
movzx eax, word [esi + 6]
push 0xffffffffffffffff
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_ZwDuplicateObject]
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10001f49
push 0x8000
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_ZwFreeVirtualMemory]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret