Function at 0x10004650
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1007e650
push 0x1001fe20
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 [0x1008267c]
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 str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp esi, esp
call fcn.1001adf0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100046bc
xor al, al
jmp 0x1000488f
mov esi, esp
push 0x1006bb34
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1001adf0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100046e4
xor al, al
jmp 0x1000488f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x100046fd
xor al, al
jmp 0x1000488f
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 0x10004722
xor al, al
jmp 0x1000488f
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.1001adf0
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2a0]
cmp eax, dword [ebp - 0x268]
jne 0x1000477f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1008267c
call fcn.10020040
add esp, 0xc
jmp 0x10004858
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.1001adf0
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0
jne 0x100047c3
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1008267c
call fcn.10020040
add esp, 0xc
jmp 0x10004858
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.1001adf0
test eax, eax
jne 0x10004801
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1008267c
call fcn.10020040
add esp, 0xc
jmp 0x10004858
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x294]
cmp ecx, dword [eax]
je 0x1000482a
mov byte [ebp - 0x279], 1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1008267c
call fcn.10020040
add esp, 0xc
jmp 0x10004870
mov dword [ebp - 4], 0xfffffffe
call fcn.10004838
jmp 0x10004858
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10004752
cmp dword [ebp - 0x3c], 0
je 0x10004889
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1001adf0
mov al, byte [ebp - 0x279]
push edx
mov ecx, ebp
push eax
lea edx, [0x100048cc]
call fcn.1001ae20
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.1001b8b0
add esp, 0x364
cmp ebp, esp
call fcn.1001adf0
mov esp, ebp
pop ebp
ret