Function at 0x4067c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fd46
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x15c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0
push 2
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x150], 0x128
call esi
push 0
mov edi, eax
push 2
mov dword [ebp - 0x170], edi
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0xffffffff
je 0x406d6c
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x406d65
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bf20
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x406b14
nop dword [eax]
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov ebx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x158], eax
movq qword [ebp - 0x1c], xmm0
mov eax, dword [ebx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x4068a7
mov ecx, ebx
call dword [eax + 0x10]
mov ebx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x4068bc
cmp ebx, dword [edi]
jne 0x4068bc
lock inc dword [eax]
jmp 0x40697f
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
mov dword [ebp - 0x160], eax
mov eax, dword [ebx]
mov edx, dword [eax]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40694e
mov eax, ecx
not eax
shr eax, 0x1f
test eax, eax
jne 0x4068e2
xor edi, edi
jmp 0x406957
mov eax, accept
sub eax, ecx
cmp eax, 1
jl 0x4068de
inc ecx
lea edx, [ecx + 7]
and edx, 0xfffffff8
mov dword [ebp - 0x154], edx
cmp ecx, edx
jle 0x406903
xor edi, edi
jmp 0x406957
mov eax, 1
mul edx
test edx, edx
ja 0x4068de
jb 0x406915
cmp eax, 0xffffffff
ja 0x4068de
cmp eax, 0xffffffef
ja 0x4068de
mov ecx, dword [ebx + 4]
add eax, 0x10
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x406957
mov eax, dword [ebp - 0x154]
dec eax
mov dword [edi], ebx
mov dword [edi + 0xc], 1
mov dword [edi + 8], eax
mov dword [edi + 4], 0
jmp 0x406957
push 1
push ecx
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
je 0x406d98
mov ecx, dword [ebp - 0x160]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov edx, dword [ecx]
lea ecx, [edi + 0x10]
inc edx
push edx
push dword [ebp - 0x158]
call fcn.0040c050
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xc]
mov ebx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x154], eax
mov eax, dword [ebx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x4069a8
mov ecx, ebx
call dword [eax + 0x10]
mov ebx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x4069bd
cmp ebx, dword [edi]
jne 0x4069bd
lock inc dword [eax]
jmp 0x406a80
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
mov dword [ebp - 0x160], eax
mov eax, dword [ebx]
mov edx, dword [eax]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406a4f
mov eax, ecx
not eax
shr eax, 0x1f
test eax, eax
jne 0x4069e3
xor edi, edi
jmp 0x406a58
mov eax, accept
sub eax, ecx
cmp eax, 1
jl 0x4069df
inc ecx
lea edx, [ecx + 7]
and edx, 0xfffffff8
mov dword [ebp - 0x158], edx
cmp ecx, edx
jle 0x406a04
xor edi, edi
jmp 0x406a58
mov eax, 1
mul edx
test edx, edx
ja 0x4069df
jb 0x406a16
cmp eax, 0xffffffff
ja 0x4069df
cmp eax, 0xffffffef
ja 0x4069df
mov ecx, dword [ebx + 4]
add eax, 0x10
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x406a58
mov eax, dword [ebp - 0x158]
dec eax
mov dword [edi], ebx
mov dword [edi + 0xc], 1
mov dword [edi + 8], eax
mov dword [edi + 4], 0
jmp 0x406a58
push 1
push ecx
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
je 0x406d98
mov ecx, dword [ebp - 0x160]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov edx, dword [ecx]
lea ecx, [edi + 0x10]
inc edx
push edx
push dword [ebp - 0x154]
call fcn.0040c050
add esp, 8
add edi, 0x10
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406760
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x406d8e
push eax
push dword [ebp - 0x14]
call fcn.0042009f
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x16c]
test eax, eax
sete bl
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x406af5
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406af1
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x406af5
mov ecx, edx
call edi
lea ecx, [ebp - 0x1c]
test bl, bl
jne 0x406b6f
mov byte [ebp - 4], bl
call fcn.00406e30
mov eax, dword [ebp - 0x15c]
mov esi, dword [esi]
cmp esi, dword [eax]
jne 0x406880
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x158], esp
mov ecx, esp
movq qword [ebp - 0x24], xmm0
push 0x4b7de4
call fcn.0040bf20
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x14]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x168], esp
mov dword [ebp - 0x154], ebx
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x406b58
mov ecx, edi
call dword [eax + 0x10]
mov edi, eax
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0xc]
jl 0x406b7f
cmp edi, dword [ebx]
jne 0x406b7f
mov esi, ebx
lock inc dword [eax]
jmp 0x406c44
call fcn.00406e30
mov ebx, dword [ebp - 0x15c]
jmp 0x406d0b
mov eax, dword [edi]
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406c19
mov eax, ecx
not eax
shr eax, 0x1f
test eax, eax
jne 0x406ba3
xor esi, esi
jmp 0x406c22
mov eax, accept
sub eax, ecx
cmp eax, 1
jl 0x406b9c
inc ecx
lea ebx, [ecx + 7]
and ebx, 0xfffffff8
cmp ecx, ebx
jle 0x406bc4
mov ebx, dword [ebp - 0x154]
xor esi, esi
jmp 0x406c22
mov eax, 1
mul ebx
test edx, edx
ja 0x406bba
jb 0x406bd6
cmp eax, 0xffffffff
ja 0x406bba
cmp eax, 0xffffffef
ja 0x406bba
mov ecx, dword [edi + 4]
add eax, 0x10
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x406bfb
mov ebx, dword [ebp - 0x154]
jmp 0x406c22
lea eax, [ebx - 1]
mov dword [esi], edi
mov ebx, dword [ebp - 0x154]
mov dword [esi + 0xc], 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
jmp 0x406c22
push 1
push ecx
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x406d98
mov eax, dword [ebx + 4]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
inc edx
push edx
push eax
call fcn.0040c050
add esp, 8
mov ecx, dword [ebp - 0x168]
lea eax, [esi + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004065a0
mov ebx, dword [ebp - 0x15c]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
mov esi, dword [ebx]
push dword [esi + 4]
push esi
call fcn.0040b7c0
mov edx, dword [ebx + 4]
mov ecx, eax
mov eax, 0xffffffe
sub eax, edx
cmp eax, 1
jb 0x406d9d
lea eax, [edx + 1]
mov dword [ebx + 4], eax
mov dword [esi + 4], ecx
mov eax, dword [ecx + 4]
mov byte [ebp - 4], 0
mov dword [eax], ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x406cd3
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406ccf
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x406cd9
mov ecx, edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x24]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x406d0b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406d07
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x406d0b
mov ecx, edx
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x406d48
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406d44
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x406d48
mov ecx, edx
call esi
mov edi, dword [ebp - 0x170]
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x406850
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040c2a0
call fcn.0040c1b0
push str.list_T__too_long
call fcn.00414446
int3