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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x42047f
mov eax, dword [ebp + 0x10]
mov edi, 0x5719dc
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x420494
jmp 0x420651
mov edi, 0x5719c4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 4
mov eax, dword [0x593ab0]
movzx eax, byte [eax]
push 1
push 0x80000
call fcn.00409a80
add esp, 8
test eax, eax
je 0x420974
mov dword [esp + 0x14], 0x80000
mov dword [esp + 0x18], eax
mov esi, eax
xor eax, eax
mov ecx, 0x80000
mov ebx, 0x80000
mov dword [esp + 0x1c], 0
jmp 0x4204e8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
sub ecx, eax
mov dword [esp], 0
cmp ebx, ecx
jbe 0x420508
push ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00422cd0
add esp, 0xc
mov esi, dword [esp + 0x18]
mov eax, esp
push eax
push ebx
push esi
push 5
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jns 0x420565
or eax, 0x10000000
push eax
call fcn.0044ef00
add esp, 4
cmp eax, 0xd0000004
jne 0x420624
mov eax, dword [esp]
mov ecx, ebx
mov dword [esp + 0x50], 0xd0000004
mov dword [esp + 0x54], edx
add ecx, ebx
lea ebx, [eax + 0x2800]
test eax, eax
cmove ebx, ecx
test edx, edx
je 0x4204e0
lea eax, [esp + 0x54]
push eax
call fcn.0044ecd0
add esp, 4
jmp 0x4204e0
mov eax, dword [0x593ab0]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], 0
movzx eax, byte [eax]
push 4
push 0x7d0
call fcn.00409a80
add esp, 8
test eax, eax
je 0x420980
mov ecx, dword [edi + 0x14]
xor edi, edi
mov dword [esp + 0x20], 0x1f4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], ecx
jmp 0x4205c9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
lea eax, [esi + edi]
mov dword [ecx + edx*4], eax
inc edx
mov dword [esp + 0x28], edx
add edi, ebx
test ebx, ebx
je 0x420602
mov ebx, dword [esi + edi]
push dword [esp + 0x2c]
push dword [esp + 0x14]
push dword [esi + edi + 0x44]
push 1
call dword [esp + 0x48]
add esp, 0x10
test al, al
je 0x4205c3
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
jne 0x4205b0
lea eax, [esp + 0x20]
push eax
call fcn.004230f0
add esp, 4
jmp 0x4205b0
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
cmp byte [eax], 0
lea esi, [ebx + 0x20]
mov dword [esp + 0x3c], esi
je 0x420658
mov ecx, ebx
xor edx, edx
xor edi, edi
call fcn.00411150
mov eax, dword [ebx + 8]
jmp 0x42065c
test edx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
je 0x42063d
lea eax, [esp + 0x54]
push eax
call fcn.0044ecd0
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x420651
push 1
push eax
push esi
call main
add esp, 0xc
xor eax, eax
jmp 0x42096c
xor eax, eax
xor edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
call fcn.00494e90
mov dword [esp], eax
mov dword [esp + 4], edx
lea ebx, [esp + 0x50]
push 0x19db1de
push 0xd53e8000
lea eax, [esp + 8]
push eax
push ebx
call fcn.00494ec0
add esp, 0x10
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x54]
je 0x42069c
xor eax, eax
xor ecx, ecx
jmp 0x4206a4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x20]
mov dword [esp], 0
mov dword [esp + 4], 8
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x6c], eax
push ebx
lea eax, [esp + 4]
push eax
call fcn.00417d70
add esp, 8
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp]
imul edi, edx, 0xe8
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
add edi, eax
test edx, edx
mov dword [esp + 0xc], edi
je 0x420942
lea edi, [esp + 0x13c]
mov dword [esp + 0x10], esi
jmp 0x42075e
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0xc]
je 0x420942
lea ecx, [eax + 0xe8]
mov dword [esp + 4], ecx
mov ecx, dword [eax]
cmp ecx, 2
je 0x420942
add eax, 4
mov dword [esp + 0x138], ecx
push 0xe4
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x138]
push eax
push dword [esp + 0x210]
push esi
push ebx
call fcn.00428ef0
add esp, 0x10
cmp dword [esp + 0x50], 2
je 0x420750
mov eax, dword [esp + 0x60]
mov esi, ebx
test eax, eax
je 0x4207c5
push 1
push eax
push dword [esp + 0x6c]
call main
add esp, 0xc
mov ebx, dword [esp + 0x108]
test ebx, ebx
je 0x420800
mov edi, dword [esp + 0x104]
add edi, 4
jmp 0x4207e6
add edi, 0x10
dec ebx
je 0x420800
mov eax, dword [edi - 4]
test eax, eax
je 0x4207e0
push 1
push eax
push dword [edi]
call main
add esp, 0xc
jmp 0x4207e0
mov eax, dword [esp + 0x100]
test eax, eax
je 0x420820
shl eax, 4
push 4
push eax
push dword [esp + 0x10c]
call main
add esp, 0xc
mov eax, dword [esp + 0x70]
cmp eax, 0x80000000
je 0x42083e
test eax, eax
je 0x42083e
push 1
push eax
push dword [esp + 0x7c]
call main
add esp, 0xc
mov eax, dword [esp + 0x118]
cmp eax, 0x80000000
je 0x420862
test eax, eax
je 0x420862
push 1
push eax
push dword [esp + 0x124]
call main
add esp, 0xc
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x4208a0
mov edi, dword [esp + 0x110]
add edi, 4
jmp 0x420886
add edi, 0x10
dec ebx
je 0x4208a0
mov eax, dword [edi - 4]
test eax, eax
je 0x420880
push 1
push eax
push dword [edi]
call main
add esp, 0xc
jmp 0x420880
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x4208c0
shl eax, 4
push 4
push eax
push dword [esp + 0x118]
call main
add esp, 0xc
mov eax, dword [esp + 0x80]
mov ebx, esi
lea edi, [esp + 0x13c]
cmp eax, 0x80000000
je 0x4208ed
test eax, eax
je 0x4208ed
push 1
push eax
push dword [esp + 0x8c]
call main
add esp, 0xc
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x10]
cmp eax, 0x80000000
je 0x420915
test eax, eax
je 0x420915
push 1
push eax
push dword [esp + 0x9c]
call main
add esp, 0xc
mov eax, dword [esp + 0x128]
test eax, eax
je 0x420750
lock dec dword [eax]
jne 0x420750
lea eax, [esp + 0x128]
push eax
call fcn.00415190
add esp, 4
jmp 0x420750
mov eax, esp
push eax
call fcn.00415630
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
test ecx, ecx
je 0x42096c
push 1
push ecx
push dword [esp + 0x20]
mov esi, eax
call main
mov eax, esi
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x80000
push 1
call fcn.004ce340
push 0x7d0
push 4
call fcn.004ce340
add esp, 8
ud2