Function at 0x10004660
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009cdf8
push 0x10033930
mov eax, dword fs:[0]
push eax
add esp, 0xfffffcac
push ebx
push esi
push edi
lea edi, [ebp - 0x364]
mov ecx, 0xd3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100a2784]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, esp
push 0x10087c98
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp esi, esp
call fcn.1002ec40
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100046cc
xor al, al
jmp 0x1000489f
mov esi, esp
push 0x10087de0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1002ec40
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100046f4
xor al, al
jmp 0x1000489f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x1000470d
xor al, al
jmp 0x1000489f
mov dword [ebp - 0x270], 0x22c
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10004732
xor al, al
jmp 0x1000489f
mov byte [ebp - 0x279], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x294], 0
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.1002ec40
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2a0]
cmp eax, dword [ebp - 0x268]
jne 0x1000478f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a2784
call fcn.10033b50
add esp, 0xc
jmp 0x10004868
mov esi, esp
mov eax, dword [ebp - 0x268]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.1002ec40
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0
jne 0x100047d3
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a2784
call fcn.10033b50
add esp, 0xc
jmp 0x10004868
mov esi, esp
push 0
push 4
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.1002ec40
test eax, eax
jne 0x10004811
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a2784
call fcn.10033b50
add esp, 0xc
jmp 0x10004868
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x294]
cmp ecx, dword [eax]
je 0x1000483a
mov byte [ebp - 0x279], 1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a2784
call fcn.10033b50
add esp, 0xc
jmp 0x10004880
mov dword [ebp - 4], 0xfffffffe
call fcn.10004848
jmp 0x10004868
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10004762
cmp dword [ebp - 0x3c], 0
je 0x10004899
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1002ec40
mov al, byte [ebp - 0x279]
push edx
mov ecx, ebp
push eax
lea edx, [0x100048dc]
call fcn.1002ec70
pop eax
pop edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1002f700
add esp, 0x364
cmp ebp, esp
call fcn.1002ec40
mov esp, ebp
pop ebp
ret