Function at 0x4bd570
Capabilities:
Enumerate processes
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1c73
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x80236c]
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 ebx, dword [ebp + 0x20]
mov dword [ebp - 0x470], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xf
mov byte [ebp - 0x238], 0
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0067fc00
mov edi, dword [ebp + 0x18]
lea esi, [ebp + 8]
add esp, 0xc
mov dword [ebx], 0
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x10
mov byte [ebp - 0x469], 0
cmovae esi, dword [ebp + 8]
test edi, edi
je 0x4bd70c
push 0x100
lea eax, [ebp - 0x338]
push 0
push eax
call fcn.0067fc00
add esp, 0xc
mov ecx, 0x727714
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x338], 1
cmp ecx, 0x727716
jne 0x4bd623
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + esi]
add ecx, esi
cmp byte [ebp + eax - 0x338], 0
jne 0x4bd669
cmp ecx, esi
je 0x4bd70c
movzx eax, byte [ecx - 1]
dec ecx
cmp byte [ebp + eax - 0x338], 0
je 0x4bd652
sub ecx, esi
cmp ecx, 0xffffffff
je 0x4bd70c
lea edx, [ecx + 1]
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0xf
mov byte [ebp - 0x488], 0
cmp edi, edx
jb 0x4bd9d0
sub edi, edx
lea eax, [ebp + 8]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp ebx, 0x10
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x488]
add eax, edx
push eax
call fcn.0049d6d0
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x238]
call fcn.0049ea00
mov edx, dword [ebp - 0x474]
cmp edx, 0x10
jb 0x4bd723
mov ecx, dword [ebp - 0x488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd700
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bd9d5
push edx
push ecx
call fcn.00669b1d
add esp, 8
jmp 0x4bd723
cmp ebx, 0x10
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x238]
push eax
call fcn.0049d6d0
cmp byte [ebp + 0x24], 0
push 3
jne 0x4bd74e
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x338]
cmovae eax, dword [ebp - 0x238]
mov dword [ebp - 0x33c], ecx
push eax
jmp 0x4bd75f
lea eax, [ebp - 0x338]
mov dword [ebp - 0x33c], eax
push str.explorer.exe
lea ecx, [ebp - 0x33c]
call fcn.004b8140
push dword [ebp - 0x33c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00695a0b
mov eax, dword [ebp - 0x33c]
lea ecx, [ebp - 0x338]
add esp, 0xc
cmp eax, ecx
je 0x4bd79d
push eax
call fcn.00694690
add esp, 4
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4bd929
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4bd922
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x440]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bd806
test dx, dx
je 0x4bd802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bd806
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bd7e0
xor eax, eax
jmp 0x4bd80b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4bd8f6
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0xffffffff
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4bd8f6
cmp dword [ebp - 0x21c], 0xffffffff
je 0x4bd8f6
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x468]
or edi, 0xffffffff
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x4bd89f
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov esi, dword [ebp - 0x468]
test edx, edx
je 0x4bd899
lea ecx, [esi + 8]
cmp dword [ecx], 0
je 0x4bd893
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x4bd884
jmp 0x4bd899
lea eax, [eax + eax*2]
mov edi, dword [esi + eax*4]
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0xffffffff
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [ebp - 0x220]
test eax, eax
mov eax, 0xffffffff
cmove ecx, eax
cmp edi, ecx
jne 0x4bd8f6
cmp byte [ebp + 0x24], 0
jne 0x4bd90d
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0048c1e0
push dword [ebp - 0x45c]
call fcn.004be780
add esp, 0x1c
test al, al
jne 0x4bd90d
lea eax, [ebp - 0x464]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4bd7d0
jmp 0x4bd922
mov ecx, dword [ebp - 0x470]
mov eax, dword [ebp - 0x45c]
mov byte [ebp - 0x469], 1
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x224]
cmp edx, 0x10
jb 0x4bd963
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd959
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bd9d5
push edx
push ecx
call fcn.00669b1d
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xf
mov byte [ebp - 0x238], 0
cmp edx, 0x10
jb 0x4bd9ae
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd9a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bd9d5
push edx
push ecx
call fcn.00669b1d
add esp, 8
mov al, byte [ebp - 0x469]
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.00669adc
mov esp, ebp
pop ebp
ret
call fcn.004a8ac0
call fcn.006892c4
int3