Function at 0x4d4ea0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cddf
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5f62dc]
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
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x270], ebx
cmp dword [ecx + 0x10], ebx
je 0x4d4f15
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x284], esi
cmp esi, 0xffffffff
jne 0x4d4f1c
push str.GetNumProcessesUsingSnapshot:CreateToolhelp32Snapshot_failed_n
call fcn.00401ce9
add esp, 4
xor eax, eax
jmp 0x4d5219
push 0x228
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.00402248
add esp, 0xc
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4d4f68
push str.GetNumProcessesUsingSnapshot:Process32FirstW_failed_n
call fcn.00401ce9
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4d5219
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4d51f5
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x264], eax
je 0x4d51f5
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x2c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d4fb1
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00403841
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040385a
push dword [ebp - 0x288]
mov byte [ebp - 4], 1
push eax
call fcn.00405b7d
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov byte [ebp - 0x271], al
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4d503b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5031
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d523f
push edx
push ecx
call fcn.004045c0
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4d5090
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5086
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d523f
push edx
push ecx
call fcn.004045c0
add esp, 8
cmp byte [ebp - 0x271], 0
je 0x4d51f5
mov eax, dword [ebp - 0x278]
cmp dword [eax + 0x10], 0
je 0x4d50e5
push dword [ebp - 0x264]
lea eax, [ebp - 0x28]
push eax
call fcn.00407ee6
push eax
push dword [ebp - 0x278]
or ebx, 1
mov dword [ebp - 4], 2
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x28c], ebx
call fcn.004071d5
add esp, 0x10
test al, al
jne 0x4d50e5
xor bl, bl
jmp 0x4d50e7
mov bl, 1
mov eax, dword [ebp - 0x270]
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x4d513b
mov edx, dword [ebp - 0x14]
and eax, 0xfffffffe
mov dword [ebp - 0x270], eax
cmp edx, 8
jb 0x4d513b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5131
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d523f
push edx
push ecx
call fcn.004045c0
add esp, 8
test bl, bl
je 0x4d51ef
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4d514f
inc edi
jmp 0x4d51ef
push dword [ebp - 0x264]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4d51e9
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0
push eax
push 0xf
push esi
push 0x5f9a90
call fcn.00406893
push esi
test eax, eax
je 0x4d5235
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov esi, dword [ebp - 0x27c]
test esi, esi
je 0x4d51e9
lea eax, [ebp - 0x290]
mov dword [ebp - 0x280], 0xffffffff
push eax
push 4
lea eax, [ebp - 0x280]
mov dword [ebp - 0x290], 4
push eax
push 0xc
push esi
push 0x5f9a90
call fcn.00406c35
test eax, eax
je 0x4d51e6
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x280], eax
jne 0x4d51e6
inc edi
push esi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x284]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d4f70
push dword [ebp - 0x284]
call esi
mov eax, edi
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.00403e8b
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4d51ef
call fcn.00406866
int3