Function at 0x4d3370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dae68
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], 0
call fcn.004d4720
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x278], eax
xor eax, eax
mov dword [ebp - 0x28], 0
push 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4d3633
movups xmm0, xmmword [str.explorer.exe]
xor ecx, ecx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], 0xf
movups xmmword [eax], xmm0
mov dword [ebp - 0x28], eax
movq xmm0, qword [0x612324]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], cx
mov dword [ebp - 4], ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x25c], eax
xor esi, esi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], esi
push esi
push 2
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
jne 0x4d3458
xor eax, eax
mov dword [ebp - 0x25c], eax
jmp 0x4d351a
push 0x228
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.00573610
add esp, 0xc
mov dword [ebp - 0x254], 0x22c
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4d350e
push dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00597f62
add esp, 0xc
test eax, eax
jne 0x4d34eb
cmp edi, esi
je 0x4d34cc
mov eax, dword [ebp - 0x24c]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x270], edi
jmp 0x4d34eb
lea eax, [ebp - 0x24c]
push eax
push edi
lea ecx, [ebp - 0x274]
call fcn.004bab2c
mov esi, dword [ebp - 0x26c]
mov edi, dword [ebp - 0x270]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4d3493
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x25c], eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d3554
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d354a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d3644
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, dword [ebp - 0x25c]
mov ecx, eax
mov dword [ebp - 0x264], eax
cmp eax, edi
je 0x4d35a7
mov eax, dword [ecx]
lea ecx, [ebp - 0x258]
push ecx
push eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x258], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [ebp - 0x278]
cmp dword [ebp - 0x258], eax
je 0x4d35c0
mov ecx, dword [ebp - 0x264]
add ecx, 4
mov dword [ebp - 0x264], ecx
cmp ecx, edi
jne 0x4d3566
xor eax, eax
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4d35c8
push eax
jmp 0x4d35d9
mov eax, dword [ebp - 0x27c]
jmp 0x4d35a9
lea eax, [ebp - 0x268]
push eax
push 0xe
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x4d3612
sub esi, eax
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x4d3608
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d3644
mov eax, ecx
push esi
push eax
call fcn.0056c61e
add esp, 8
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
push 0x638780
lea eax, [ebp - 0x25d]
push eax
call fcn.0057359b
call fcn.0057da80
int3