Function at 0x406670
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, 0x210
movzx eax, byte [0x537199]
push 1
push 0x80000
call fcn.00403b10
add esp, 8
test eax, eax
je 0x406ac1
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, 0x80000
lea edi, [esp + 0x24]
mov ebx, 0x80000
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x80000
mov dword [esp + 0x20], 0
mov dword [esp], eax
xor eax, eax
jmp 0x4066d8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x24], 0
cmp ecx, ebx
jb 0x406779
push edi
push ebx
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x406791
or eax, 0x10000000
push eax
call fcn.004152e0
add esp, 4
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], 1
push eax
call fcn.00413fb0
add esp, 4
cmp eax, 0xd0000004
jne 0x40687d
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, ebx
add edx, ebx
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x12c], ecx
lea ebx, [eax + 0x2800]
test eax, eax
cmove ebx, edx
test ecx, ecx
je 0x4066d0
lea eax, [esp + 0x12c]
push eax
call fcn.00414ed0
add esp, 4
jmp 0x4066d0
push ebx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043a730
add esp, 0xc
mov esi, dword [esp + 0x18]
jmp 0x4066ea
mov dword [esp + 4], esi
mov esi, dword [ebp + 0xc]
mov eax, 0x528d98
mov dword [esp + 0x20], ebx
test esi, esi
cmovne eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp]
cmove eax, esi
mov dword [esp], eax
movzx eax, byte [0x537199]
push 4
push 0x7d0
call fcn.00403b10
add esp, 8
test eax, eax
je 0x406ad2
mov dword [esp + 0xc], eax
test esi, esi
mov eax, fcn.00405e40
mov ebx, 0x405e10
mov dword [esp + 0x10], 0x1f4
mov dword [esp + 0x14], 0
cmove ebx, eax
xor esi, esi
jmp 0x406817
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
add ecx, esi
mov dword [edx + eax*4], ecx
inc dword [esp + 0x14]
add esi, edi
test edi, edi
je 0x406855
mov eax, dword [esp + 4]
mov edi, dword [eax + esi]
push dword [esp]
push dword [esp + 0xc]
push dword [eax + esi + 0x44]
push 0x528d98
call ebx
add esp, 0x10
test al, al
je 0x406811
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x406800
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004071c0
add esp, 8
mov eax, dword [esp + 0x14]
jmp 0x406800
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
cmp byte [ebx], 0
mov dword [esp + 0x34], edi
je 0x4068ad
xor esi, esi
lea ecx, [edi + 0x68]
xor edx, edx
push 0
call fcn.00405390
add esp, 4
mov eax, dword [edi + 0xb0]
jmp 0x4068b1
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
test ecx, ecx
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], ecx
je 0x406aa5
lea eax, [esp + 0x12c]
push eax
call fcn.00414ed0
jmp 0x406aa2
xor eax, eax
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
call fcn.0041fb40
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], edx
lea eax, [esp + 0x128]
lea ecx, [esp + 0x48]
push 0x19db1de
push 0xd53e8000
push eax
push ecx
call fcn.0041fb70
add esp, 0x10
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
je 0x4068fb
xor eax, eax
xor ecx, ecx
jmp 0x406903
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov esi, dword [esp + 4]
mov dword [esp + 0x128], 8
mov dword [esp + 0x12c], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x130], 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x34]
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00407470
add esp, 8
mov ecx, dword [esp + 0x130]
mov ebx, dword [esp + 0x128]
mov eax, dword [esp + 0x12c]
imul edx, ecx, 0xe0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
add edx, ebx
test ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 0x30], edx
je 0x406a8f
add ebx, 0xe0
jmp 0x4069da
add esi, 0xe0
add ebx, 0xe0
cmp esi, dword [esp + 8]
mov esi, dword [esp + 4]
je 0x406a87
mov edi, dword [ebx - 0xe0]
cmp edi, 2
je 0x406a82
lea esi, [ebx - 0xe0]
mov eax, dword [esi + 0xc4]
mov dword [esp], eax
lea eax, [esi + 4]
push 0xc0
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00436b50
add esp, 0xc
movsd xmm0, qword [esi + 0xc8]
movsd xmm1, qword [esi + 0xd0]
lea eax, [esp + 0x110]
mov ecx, dword [esp]
movsd qword [eax], xmm0
movsd qword [eax + 8], xmm1
movsd xmm0, qword [esi + 0xd8]
movsd qword [eax + 0x10], xmm0
lea eax, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x10c], ecx
push eax
push ecx
mov edi, dword [ebp + 8]
push edi
lea eax, [esp + 0x134]
push eax
call fcn.004085c0
add esp, 0x10
cmp dword [esp + 0x128], 2
je 0x4069c0
lea ecx, [esp + 0x128]
call fcn.00405e50
jmp 0x4069c0
mov edi, dword [ebp + 8]
jmp 0x406a8b
mov ebx, dword [esp + 8]
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x24]
push eax
call fcn.004083c0
add esp, 4
push edi
call fcn.004089b0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x406ab9
push 1
push eax
push esi
call fcn.00403b20
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x80000
push 1
call fcn.0043daa0
add esp, 8
ud2
push 0x7d0
push 4
call fcn.0043daa0
add esp, 8
ud2