Function at 0x1b6be
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x2c
pop eax
mov word [ebp - 0x28], ax
push 0x2e
pop eax
mov word [ebp - 0x26], ax
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], 0x255a2
mov dword [ebp - 0x10], 0x10
cmp eax, ebx
je 0x1b8e5
mov eax, dword [eax]
mov ecx, dword [eax]
push esi
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 4]
push 0x2c
mov dword [ebp - 0x1c], eax
pop eax
mov word [ebp - 0x20], ax
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test al, al
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, 0x6664656c
je 0x1b758
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
jmp 0x1b7ad
movzx eax, word [eax]
movzx ecx, word [ebp - 0x28]
add eax, ecx
push edi
push eax
push 1
mov dword [ebp - 4], eax
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1b8d5
push dword [ebp - 4]
push 0
push eax
call sub.ntoskrnl.exe_memset
xor eax, eax
mov word [ebp - 0x18], ax
mov ax, word [ebp - 4]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0001b1f0
test eax, eax
jl 0x1b8b7
mov eax, 0x4000
push edi
push eax
push 1
mov dword [ebp - 4], eax
call esi
mov ebx, eax
test ebx, ebx
je 0x1b8b7
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0x10
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jge 0x1b83a
cmp eax, 0xc0000004
jne 0x1b8b7
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
dec dword [ebp - 0x10]
push edi
push dword [ebp - 4]
push 1
call esi
mov ebx, eax
test ebx, ebx
je 0x1b831
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0x10
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1b836
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add dword [ebp - 4], 0x1000
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
jne 0x1b7ed
jmp 0x1b8b7
mov eax, 0xc000009a
test eax, eax
jl 0x1b8b7
test ebx, ebx
je 0x1b8b7
xor edi, edi
cmp dword [ebx], edi
jbe 0x1b879
lea esi, [ebx + 0xc]
movzx eax, byte [esi - 4]
cmp eax, dword [0x39520]
jne 0x1b871
cmp dword [esi], 0
je 0x1b871
test byte [esi - 3], 1
jne 0x1b871
lea eax, [ebp - 0x18]
push eax
movzx eax, word [esi - 2]
push eax
movzx eax, word [esi - 8]
push eax
call fcn.0001b576
inc edi
add esi, 0x10
cmp edi, dword [ebx]
jb 0x1b847
mov esi, dword [ebp + 8]
cmp byte [esi + 8], 0
je 0x1b8b3
push 3
push 0x10000
push dword [esi]
lea eax, [ebp - 8]
push eax
call fcn.0001afda
test eax, eax
jl 0x1b8b7
push dword [ebp - 8]
call fcn.0001b372
test eax, eax
jge 0x1b8b3
push 0x1af9c
push dword [ebp - 8]
call fcn.0001ae50
jmp 0x1b8b7
and dword [esi + 4], 0
cmp dword [ebp - 0xc], 0
je 0x1b8c8
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test ebx, ebx
je 0x1b8d5
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 8], 0
pop esi
je 0x1b8e5
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop ebx
leave
ret 4