Function at 0x10000948
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov dword [ebp - 4], 0
mov eax, dword [0x1000b528]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
cmp edx, dword [0x1000b528]
je 0x100009a9
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
ja 0x1000099f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x20]
cmp dword [ebp + 8], eax
jae 0x1000099f
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 0x2c]
test eax, eax
je 0x1000099d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 4], edx
jmp 0x100009a9
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
jmp 0x1000095e
cmp dword [ebp - 4], 0
jne 0x10000b0d
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
and eax, 0xff
test eax, eax
jne 0x10000b0d
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push 0x20736649
mov ecx, dword [ebp - 0x18]
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 0x18]
shl edx, 2
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
jmp 0x10000a1a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax]
jae 0x10000b01
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x11c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 8]
cmp ecx, dword [ebp + 8]
ja 0x10000afc
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x11c
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x11c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + edx + 8]
mov ecx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0xc]
cmp dword [ebp + 8], edx
jae 0x10000afc
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x11c
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0xc]
xor esi, esi
mov si, word [edx + ecx + 0x1a]
lea eax, [eax + esi + 0x1c]
push eax
call sub.ntoskrnl.exe_strlen
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x11c
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0xc]
xor esi, esi
mov si, word [edx + ecx + 0x1a]
lea eax, [eax + esi + 0x1c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x80
push 0x1000b458
call dword [sym.imp.ntoskrnl.exe_RtlMultiByteToUnicodeN]
test eax, eax
jl 0x10000afa
mov edx, dword [ebp - 0x1c]
shr edx, 1
mov word [edx*2 + 0x1000b458], 0
mov dword [ebp - 4], 0x1000b458
jmp 0x10000b01
jmp 0x10000a11
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 4], 0
jne 0x10000b1c
mov dword [ebp - 0x24], 0x10000940
jmp 0x10000b22
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
pop esi
mov esp, ebp
pop ebp
ret 4