Function at 0x161aa
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 8
push esi
call fcn.00013e02
test al, al
je 0x163b2
push 1
push 4
push dword [ebp + 0xc]
call fcn.00013e02
test al, al
je 0x163b2
push 1
push 4
push dword [ebp + 0x10]
call fcn.00013e02
test al, al
je 0x163b2
xor eax, eax
xor ebx, ebx
mov word [esi + 2], ax
mov word [esi], ax
mov dword [esi + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
jne 0x1624e
test ebx, ebx
je 0x16230
push 0x35343332
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x35343332
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp + 8], eax
mov ebx, eax
test eax, eax
jne 0x16206
mov edi, 0xc000009a
test edi, edi
jge 0x16269
test ebx, ebx
je 0x16262
push 0x35343332
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x163b7
mov eax, 0x1b464
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x16271
sub eax, edx
sar eax, 1
add eax, eax
movzx edi, ax
lea eax, [ebx + 0x20]
mov dword [ebp - 0xc], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1628d
sub eax, ecx
sub ax, word [ebx + 0x1e]
push 0x35343332
movzx eax, ax
mov dword [ebp - 8], eax
lea eax, [edi + eax*2 + 4]
movzx ebx, ax
movzx eax, bx
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [esi + 4], eax
test eax, eax
je 0x1636b
movzx ecx, bx
push ecx
push 0
push eax
call sub.ntoskrnl.exe_memset
movzx eax, di
push eax
push 0x1b464
push dword [esi + 4]
call sub.ntoskrnl.exe_memcpy
mov word [esi], di
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov word [esi + 2], bx
movzx ecx, word [eax + 0x1e]
lea eax, [ecx + eax + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], ax
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x1b464
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1631b
sub ebx, dword [ebp - 0xc]
sub eax, ecx
mov ecx, dword [esi + 4]
sar eax, 1
lea eax, [ecx + eax*2]
mov dword [ebp - 0x18], eax
xor eax, eax
push eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1a], bx
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov edi, eax
mov eax, dword [esi + 4]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x16356
sub eax, ecx
sar eax, 1
add eax, eax
mov word [esi], ax
jmp 0x16370
mov edi, 0xc000009a
test edi, edi
jge 0x16394
mov eax, dword [esi + 4]
test eax, eax
je 0x16394
push 0x35343332
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and dword [esi + 4], 0
xor eax, eax
mov word [esi + 2], ax
mov word [esi], ax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0x10]
push 0x35343332
mov dword [edx], ecx
push eax
jmp 0x1625c
mov eax, 0xc0000005
pop edi
pop esi
pop ebx
leave
ret 0xc