Function at 0x10fa7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 4]
push 0
push eax
push 0xb
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x1111b
imul eax, eax, 0x11c
add eax, 4
push 0x206b6444
push eax
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
je 0x1111b
mov ecx, dword [ebp - 8]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push edx
push ebx
push 0xb
rep stosb byte es:[edi], al
call esi
mov eax, dword [ebx + 0xc]
lea edi, [ebx + 0x20]
mov dword [ebp - 8], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x254]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov ebx, dword [ebp - 8]
cmp dword [ebx + 0x20], 0x88888888
je 0x1111b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.000112a0
test eax, eax
je 0x1111b
mov edx, 0x14b60
mov ecx, 0x115a5
mov dword [ebp - 4], 0x1d
mov eax, dword [ecx]
test eax, eax
je 0x11089
mov dword [edx], eax
add ecx, 4
add edx, 8
cmp ecx, 0x11619
jl 0x11081
mov esi, 0x10fa2
lea edi, [ebp - 0x150]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, section..data
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x206b6444
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x150]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x4000
push esi
push eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x11122
xor eax, eax
jmp 0x11224
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea eax, [ebp - 0x2c]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
xor eax, eax
lea ecx, [ebp - 0x24]
push eax
push eax
push 0x960
push 1
push 1
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], 0x18
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push 0x80100080
push eax
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x44], ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
cmp dword [ebp - 8], 0
jge 0x1119d
xor esi, esi
jmp 0x1121b
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0xc]
call fcn.00010f50
test eax, eax
je 0x11199
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, cr0
mov dword [ebp - 8], eax
and eax, 0xfffeffff
mov cr0, eax
cli
mov dword [ebx + 0x20], 0x88888888
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, eax
shl ecx, 3
mov eax, dword [ecx + 0x14b60]
lea edx, [ecx + 0x14b60]
test eax, eax
je 0x11208
mov eax, dword [edi + eax*4]
sub eax, dword [ebp - 0x10]
add eax, ebx
mov dword [ecx + 0x14b64], eax
mov ecx, dword [edx]
mov edx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov edx, dword [edx]
mov dword [edx + ecx*4], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1d
jb 0x111d5
sti
mov eax, dword [ebp - 8]
mov cr0, eax
push 1
pop esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret