Function at 0x426040
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca7d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0x8000
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004032b0
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x42608d
xor eax, eax
jmp 0x426257
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc0000023
je 0x4260b6
cmp dword [ebp - 0x28], 0xc0000004
jne 0x4260ec
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00403300
add esp, 4
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004032b0
add esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x28], eax
jmp 0x4260a4
cmp dword [ebp - 0x28], 0
jge 0x426105
mov eax, dword [ebp - 0x24]
push eax
call fcn.00403300
add esp, 4
xor eax, eax
jmp 0x426257
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
push 4
lea ecx, [ebp - 0x18]
call fcn.00402190
lea ecx, [ebp - 0x18]
call fcn.004028d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + 0x38]
cdq
sub eax, edx
sar eax, 1
push eax
push str._.s
lea edx, [ebp - 0x18]
push edx
call fcn.00402d60
add esp, 0x10
push 4
lea ecx, [ebp - 0x14]
call fcn.00402190
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004263c0
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x14]
call fcn.004028f0
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00425cf0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040b940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004028b0
nop
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004028f0
push eax
lea ecx, [ebp - 0x14]
call fcn.004028f0
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [ebp + 8]
test eax, eax
jne 0x4261fe
mov eax, dword [ebp - 0x24]
push eax
call fcn.00403300
add esp, 4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004028b0
mov eax, dword [ebp - 0x3c]
jmp 0x426257
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004028b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004028b0
nop
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0x42622f
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add eax, dword [edx]
mov dword [ebp - 0x2c], eax
jmp 0x426236
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x42610b
mov edx, dword [ebp - 0x24]
push edx
call fcn.00403300
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429858
mov esp, ebp
pop ebp
ret