Function at 0x10004a10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009de58
push 0x10034220
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 [0x100a3784]
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 0x10088ca8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp esi, esp
call fcn.1002f1f0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10004a7c
xor al, al
jmp 0x10004c4f
mov esi, esp
push 0x10088e2c
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1002f1f0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10004aa4
xor al, al
jmp 0x10004c4f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x10004abd
xor al, al
jmp 0x10004c4f
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 0x10004ae2
xor al, al
jmp 0x10004c4f
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.1002f1f0
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2a0]
cmp eax, dword [ebp - 0x268]
jne 0x10004b3f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a3784
call fcn.10034440
add esp, 0xc
jmp 0x10004c18
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.1002f1f0
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0
jne 0x10004b83
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a3784
call fcn.10034440
add esp, 0xc
jmp 0x10004c18
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.1002f1f0
test eax, eax
jne 0x10004bc1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a3784
call fcn.10034440
add esp, 0xc
jmp 0x10004c18
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x294]
cmp ecx, dword [eax]
je 0x10004bea
mov byte [ebp - 0x279], 1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100a3784
call fcn.10034440
add esp, 0xc
jmp 0x10004c30
mov dword [ebp - 4], 0xfffffffe
call fcn.10004bf8
jmp 0x10004c18
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10004b12
cmp dword [ebp - 0x3c], 0
je 0x10004c49
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1002f1f0
mov al, byte [ebp - 0x279]
push edx
mov ecx, ebp
push eax
lea edx, [0x10004c8c]
call fcn.1002f220
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.1002fcb0
add esp, 0x364
cmp ebp, esp
call fcn.1002f1f0
mov esp, ebp
pop ebp
ret