Function at 0x428700
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448671
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4590c0]
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
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.004338d0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x218]
call fcn.00401e30
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x448]
push 0x5c
push ecx
call fcn.00433381
add esp, 8
cmp eax, ebx
je 0x4287ef
mov edx, dword [ebp - 0x448]
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4287ef
mov eax, dword [edx - 0xc]
sub eax, ecx
lea edx, [ebp - 0x448]
dec eax
push edx
lea ecx, [ebp - 0x44c]
call fcn.0040c040
lea edi, [ebp - 0x448]
mov byte [ebp - 4], 1
call fcn.00410f90
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4287ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x228
lea ecx, [ebp - 0x440]
push ebx
push ecx
mov dword [ebp - 0x444], ebx
call fcn.004338d0
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x44c], esi
cmp esi, 0xffffffff
jne 0x42883d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x428a0a
lea ecx, [ebp - 0x444]
push ecx
push esi
mov dword [ebp - 0x444], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4289e6
lea ecx, [ecx]
mov edx, dword [ebp - 0x43c]
push edx
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x4289d0
lea ecx, [ebp - 0x450]
push ecx
mov ecx, eax
call fcn.004121e0
add esp, 4
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x450]
mov esi, dword [edi - 0xc]
cmp esi, ebx
jl 0x428a34
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4288c5
mov eax, esi
lea ecx, [ebp - 0x450]
call fcn.00402000
mov edi, dword [ebp - 0x450]
lea edx, [esi + 1]
push edx
push edi
call fcn.00431fb3
add esp, 8
cmp esi, dword [edi - 8]
jg 0x428a34
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
mov ecx, 0x450d00
mov eax, edi
jmp 0x4288f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x428916
cmp dx, bx
je 0x428912
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x428916
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4288f0
xor eax, eax
jmp 0x42891b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
setne al
cmp al, bl
je 0x4289ab
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x420]
call fcn.00401e30
mov ecx, dword [ebp - 0x448]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x428a3e
mov esi, dword [ebp - 0x454]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42897d
cmp dx, bx
je 0x428979
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42897d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x428957
xor eax, eax
jmp 0x428982
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
or ecx, 0xffffffff
cmp al, bl
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
jne 0x428a48
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4289ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4289ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x44c]
lea ecx, [ebp - 0x444]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x428860
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.00430efe
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402060
push 0x80004005
call fcn.00402060
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x428a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428aa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x428a18