Function at 0x402150
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41044d
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x418008]
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
xor bl, bl
lea ecx, [ebp - 0x58]
xor bh, bh
mov byte [ebp - 0x28d], bl
mov byte [ebp - 0x285], bh
call fcn.00401620
mov dword [ebp - 4], 0
nop dword [eax]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x294], esi
test esi, esi
je 0x402491
push 0x228
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.00404840
add esp, 0xc
mov dword [ebp - 0x284], 0x22c
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40247f
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x298], eax
lea ecx, [ebp - 0x260]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402230
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402f00
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
mov dword [ebp - 0x28c], edx
setae al
cmovae ebx, edx
test al, al
mov eax, dword [ebp - 0x18]
je 0x40227c
mov esi, edx
lea edi, [edx + eax*2]
jmp 0x402282
lea edi, [esi + eax*2]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x4022b3
sub ebx, esi
nop dword [eax + eax]
movzx eax, word [esi]
push eax
call fcn.00406420
mov word [ebx + esi], ax
add esp, 4
add esi, 2
cmp esi, edi
jne 0x402290
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28c], edx
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov ebx, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae eax, dword [ebp - 0x58]
cmp ecx, 8
setae byte [ebp - 0x286]
cmovae edi, edx
cmp ebx, dword [ebp - 0x48]
jne 0x402312
mov esi, ebx
test esi, esi
je 0x402417
movzx ecx, word [edi]
movzx edx, word [eax]
cmp cx, dx
jb 0x40230c
sub edi, eax
cmp cx, dx
ja 0x40230c
cmp esi, 1
je 0x402411
movzx ecx, word [edi + eax + 2]
add eax, 2
dec esi
movzx edx, word [eax]
cmp cx, dx
jae 0x4022f0
mov edx, dword [ebp - 0x28c]
mov al, byte [ebp - 0x286]
lea edi, [ebp - 0x28]
test al, al
cmovne edi, edx
cmp ebx, 8
jne 0x402365
movzx ecx, word [edi]
mov edx, 0x64
mov esi, ebx
mov eax, str.dock.exe
cmp ecx, edx
jb 0x402359
sub edi, eax
cmp cx, dx
ja 0x402359
cmp esi, 1
je 0x402427
movzx ecx, word [eax + edi + 2]
add eax, 2
dec esi
movzx edx, word [eax]
cmp cx, dx
jae 0x40233d
mov edx, dword [ebp - 0x28c]
mov al, byte [ebp - 0x286]
test al, al
lea edi, [ebp - 0x28]
cmovne edi, edx
cmp ebx, 0xb
jne 0x4023ac
movzx ecx, word [edi]
mov edx, 0x64
mov esi, ebx
mov eax, str.dock_64.exe
cmp ecx, edx
jb 0x4023a6
sub edi, eax
cmp cx, dx
ja 0x4023a6
cmp esi, 1
je 0x402427
movzx ecx, word [eax + edi + 2]
add eax, 2
dec esi
movzx edx, word [eax]
cmp cx, dx
jae 0x40238a
mov edx, dword [ebp - 0x28c]
mov bh, byte [ebp - 0x285]
mov bl, byte [ebp - 0x28d]
test bl, bl
je 0x4023c0
test bh, bh
jne 0x40243a
cmp byte [ebp - 0x286], 0
mov byte [ebp - 4], 0
je 0x4023ff
mov ecx, dword [ebp - 0x14]
mov eax, edx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4023f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c6
push ecx
push edx
call fcn.004036ce
add esp, 8
mov esi, dword [ebp - 0x294]
cmp dword [ebp - 0x298], 0
jmp 0x4021ea
mov edx, dword [ebp - 0x28c]
mov bh, byte [ebp - 0x285]
mov bl, 1
mov byte [ebp - 0x28d], bl
jmp 0x4023bc
mov edx, dword [ebp - 0x28c]
mov bh, 1
mov byte [ebp - 0x285], bh
jmp 0x4023b2
cmp byte [ebp - 0x286], 0
mov byte [ebp - 4], 0
je 0x402479
mov ecx, dword [ebp - 0x14]
mov eax, edx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40246f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c6
push ecx
push edx
call fcn.004036ce
add esp, 8
mov esi, dword [ebp - 0x294]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x4021a0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x58]
xor ecx, ecx
push ecx
mov word [eax], cx
lea ecx, [ebp - 0x40]
call fcn.00402e10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
mov edi, dword [ebp - 0x30]
sub eax, edi
cmp eax, 0xa
jb 0x4024f8
cmp ecx, 8
lea esi, [ebp - 0x40]
lea eax, [edi + 0xa]
cmovae esi, dword [ebp - 0x40]
push 0x14
mov dword [ebp - 0x30], eax
push str.Mydock.exe
lea eax, [esi + edi*2]
push eax
call fcn.00405ce0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x14], ax
jmp 0x402516
push 0xa
push str.Mydock.exe
mov byte [ebp - 0x298], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x298]
push 0xa
call fcn.004031d0
test bh, bh
jne 0x40252a
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.004013d0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x402560
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402556
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c6
push ecx
push edx
call fcn.004036ce
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x4025aa
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4025a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c6
push ecx
push edx
call fcn.004036ce
add esp, 8
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.0040343f
mov esp, ebp
pop ebp
ret
call fcn.004067ef
int3