Function at 0x501520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc0
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xcc0], ecx
mov ecx, dword [ebp - 0xcc0]
call fcn.00500d70
test eax, eax
jne 0x50154f
xor eax, eax
jmp 0x501aaa
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
push 0x3fc
push 0
lea eax, [ebp - 0x634]
push eax
call fcn.0055e2a0
add esp, 0xc
lea ecx, [ebp - 0x65c]
call fcn.00446b40
mov dword [ebp - 0x644], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0xffffffff
je 0x501781
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x640]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x501774
xor eax, eax
mov word [ebp - 0x868], ax
push 0x206
push 0
lea ecx, [ebp - 0x866]
push ecx
call fcn.0055e2a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0xcc0]
call fcn.00500ef0
test eax, eax
je 0x501759
push 0x5ef9e0
lea ecx, [ebp - 0x868]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x501759
xor edx, edx
mov word [ebp - 0xa70], dx
push 0x206
push 0
lea eax, [ebp - 0xa6e]
push eax
call fcn.0055e2a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0xa70]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov ecx, dword [ebp - 0xcc0]
call fcn.00500ef0
test eax, eax
je 0x501708
push 0x5f0610
lea eax, [ebp - 0xa70]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x5016a9
push 0x5f0408
lea ecx, [ebp - 0xa70]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x5016b5
mov dword [ebp - 0x63c], 1
jmp 0x501706
mov edx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x230]
mov dword [ebp + edx*4 - 0x638], eax
lea ecx, [ebp - 0xa70]
push ecx
lea ecx, [ebp - 0xca4]
call fcn.00426f30
lea edx, [ebp - 0xca4]
push edx
lea ecx, [ebp - 0x65c]
call fcn.00446c60
lea ecx, [ebp - 0xca4]
call fcn.00426fe0
mov eax, dword [ebp - 0x644]
add eax, 1
mov dword [ebp - 0x644], eax
jmp 0x501759
mov ecx, dword [ebp - 0x644]
mov edx, dword [ebp - 0x230]
mov dword [ebp + ecx*4 - 0x638], edx
lea eax, [ebp - 0xa70]
push eax
lea ecx, [ebp - 0xca8]
call fcn.00426f30
lea ecx, [ebp - 0xca8]
push ecx
lea ecx, [ebp - 0x65c]
call fcn.00446c60
lea ecx, [ebp - 0xca8]
call fcn.00426fe0
mov edx, dword [ebp - 0x644]
add edx, 1
mov dword [ebp - 0x644], edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x640]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5015d9
mov edx, dword [ebp - 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x63c], 0
jne 0x5017aa
mov dword [ebp - 0xcac], 0
lea ecx, [ebp - 0x65c]
call fcn.00446ba0
mov eax, dword [ebp - 0xcac]
jmp 0x501aaa
cmp dword [ebp - 0x644], 0
je 0x501a8f
mov dword [ebp - 0xa74], 0
jmp 0x5017d2
mov eax, dword [ebp - 0xa74]
add eax, 1
mov dword [ebp - 0xa74], eax
mov ecx, dword [ebp - 0xa74]
cmp ecx, dword [ebp - 0x644]
jae 0x501a67
lea ecx, [ebp - 0xc8c]
call fcn.00501d10
mov dword [ebp - 0xc88], 0
mov edx, dword [ebp - 0xa74]
push edx
lea ecx, [ebp - 0x65c]
call fcn.004956b0
push eax
lea ecx, [ebp - 0xc8c]
call fcn.00427000
push 0x208
push 0
lea eax, [ebp - 0xc80]
push eax
call fcn.0055e2a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0xc80]
push ecx
push 0x17
lea ecx, [ebp - 0xc8c]
call fcn.004273c0
push eax
call fcn.00500c20
mov ecx, eax
call fcn.005058f0
xor edx, edx
mov dword [ebp - 0xca0], edx
mov dword [ebp - 0xc9c], edx
mov dword [ebp - 0xc98], edx
mov dword [ebp - 0xc94], edx
lea eax, [ebp - 0xca0]
push eax
push 0x208
lea ecx, [ebp - 0xc80]
push ecx
call fcn.005434b0
add esp, 0xc
lea edx, [ebp - 0xc84]
push edx
push 0x10
lea eax, [ebp - 0xca0]
push eax
call fcn.004b7e90
add esp, 0xc
lea ecx, [ebp - 0xc8c]
push ecx
call fcn.00549d20
add esp, 4
test eax, eax
je 0x5018c3
lea ecx, [ebp - 0xc8c]
call fcn.00501d40
jmp 0x5017c3
push 0x5f232c
push 0x650
call fcn.00563fac
add esp, 8
mov dword [ebp - 0xcb0], eax
mov edx, dword [ebp - 0xcb0]
mov dword [ebp - 0xc90], edx
cmp dword [ebp - 0xc90], 0
jne 0x501900
lea ecx, [ebp - 0xc8c]
call fcn.00501d40
jmp 0x501a67
push 0x650
push 0
mov eax, dword [ebp - 0xc90]
push eax
call fcn.0055e2a0
add esp, 0xc
push 0x5ef9e0
push 0x104
mov ecx, dword [ebp - 0xc90]
push ecx
call fcn.00429540
mov edx, dword [ebp - 0xa74]
push edx
lea ecx, [ebp - 0x65c]
call fcn.004956b0
mov ecx, eax
call fcn.004273c0
push eax
push 0x104
mov eax, dword [ebp - 0xc90]
add eax, 0x208
push eax
call fcn.00429540
mov ecx, dword [ebp - 0xc90]
mov edx, dword [ebp - 0xa74]
mov eax, dword [ebp + edx*4 - 0x638]
mov dword [ecx + 0x618], eax
push 0x9c60
lea ecx, [ebp - 0xcb4]
call fcn.00426f30
mov ecx, eax
call fcn.004273c0
push eax
push 0x208
mov ecx, dword [ebp - 0xc90]
add ecx, 0x410
push ecx
call fcn.004b8620
lea ecx, [ebp - 0xcb4]
call fcn.00426fe0
mov edx, dword [ebp - 0xc90]
mov dword [edx + 0x61c], 0x32
mov eax, dword [ebp - 0xc90]
mov dword [eax + 0x620], 0
mov ecx, dword [ebp - 0xc90]
mov dword [ecx + 0x624], 0
mov edx, dword [ebp - 0xc90]
mov dword [edx + 0x628], 0
mov eax, dword [ebp - 0xc90]
mov dword [eax + 0x62c], 1
mov ecx, dword [ebp - 0xc90]
mov dword [ecx + 0x630], 0
push 0x10
push 0
mov edx, dword [ebp - 0xc90]
add edx, 0x634
push edx
call fcn.0055e2a0
add esp, 0xc
mov eax, dword [ebp - 0xc90]
mov dword [eax + 0x648], 0
mov ecx, dword [ebp - 0xc90]
mov dword [ecx + 0x64c], 0x6e
lea edx, [ebp - 0xc90]
push edx
mov ecx, dword [ebp + 8]
call fcn.00501db0
lea ecx, [ebp - 0xc8c]
call fcn.00501d40
jmp 0x5017c3
lea ecx, [ebp - 0x65c]
call fcn.00446cf0
mov dword [ebp - 0xcb8], 1
lea ecx, [ebp - 0x65c]
call fcn.00446ba0
mov eax, dword [ebp - 0xcb8]
jmp 0x501aaa
mov dword [ebp - 0xcbc], 0
lea ecx, [ebp - 0x65c]
call fcn.00446ba0
mov eax, dword [ebp - 0xcbc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret 4