Function at 0x406a80
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x44a1ae
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e560]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
xor ebx, ebx
lea edi, [esp + 0x198]
mov dword [esp + 0x190], ebx
call fcn.00406ed0
push ebx
push 2
mov dword [esp + 0x64], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x5c]
push eax
push esi
mov dword [esp + 0x28], esi
call sub.KERNEL32.dll_Process32First
lea ebp, [ebx + 0x10]
cmp eax, ebx
je 0x406c8f
lea esp, [esp]
lea ecx, [esp + 0x80]
push ecx
call fcn.0042f26a
mov eax, dword [esp + 0x1a0]
add esp, 4
mov byte [esp + 0x1b], bl
cmp dword [esp + 0x1b0], ebp
jae 0x406b2b
lea eax, [esp + 0x19c]
push eax
lea edx, [esp + 0x84]
push edx
call fcn.0042f2d0
add esp, 8
test eax, eax
je 0x406c7c
cmp byte [esp + 0x1b4], 1
jne 0x406c70
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x80]
lea edi, [esp + 0x40]
mov byte [esp + 0x190], 1
call fcn.00402f20
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x20], 0x5c
call fcn.00406fa0
cmp eax, 0xffffffff
je 0x406bf6
cmp eax, 0xffffffff
je 0x406bf6
lea ecx, [eax + 1]
lea esi, [esp + 0x24]
mov edx, edi
call fcn.004021e0
mov esi, eax
mov byte [esp + 0x190], 2
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x58], ebp
jae 0x406bb9
lea ecx, [esp + 0x44]
cmp dword [esi + 0x18], ebp
jb 0x406bc3
mov eax, dword [esi + 4]
jmp 0x406bc6
lea eax, [esi + 4]
cmp ecx, eax
je 0x406be3
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
call fcn.00402a60
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x4c]
call fcn.00402b00
cmp dword [esp + 0x3c], ebp
jb 0x406bf6
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040e8c6
add esp, 4
mov ecx, dword [esp + 0x19c]
cmp dword [esp + 0x1b0], ebp
jae 0x406c0d
lea ecx, [esp + 0x19c]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x1ac]
mov eax, esi
cmp esi, edi
jb 0x406c20
mov eax, edi
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x58], ebp
jae 0x406c2e
lea edx, [esp + 0x44]
call fcn.00402540
cmp eax, ebx
jne 0x406c4b
cmp esi, edi
jb 0x406c4b
xor eax, eax
cmp esi, edi
setne al
cmp eax, ebx
jne 0x406c4b
mov byte [esp + 0x1b], 1
mov byte [esp + 0x190], bl
cmp dword [esp + 0x58], ebp
jb 0x406c65
mov edx, dword [esp + 0x44]
push edx
call fcn.0040e8c6
add esp, 4
cmp byte [esp + 0x1b], 1
mov esi, dword [esp + 0x20]
jne 0x406c7c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x64], eax
jne 0x406cd9
lea eax, [esp + 0x5c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406b00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1b0], ebp
jb 0x406caf
mov edx, dword [esp + 0x19c]
push edx
call fcn.0040e8c6
add esp, 4
xor al, al
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0042d9c5
add esp, 0x180
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1b0], ebp
jb 0x406cf9
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.0040e8c6
add esp, 4
mov al, 1
jmp 0x406cb1