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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x676413
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x75e7a4]
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.00628ae0
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 0x46d40c
push 0x100
lea eax, [ebp - 0x338]
push 0
push eax
call fcn.00628ae0
add esp, 0xc
mov ecx, 0x6b5dd8
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x338], 1
cmp ecx, 0x6b5dda
jne 0x46d323
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 0x46d369
cmp ecx, esi
je 0x46d40c
movzx eax, byte [ecx - 1]
dec ecx
cmp byte [ebp + eax - 0x338], 0
je 0x46d352
sub ecx, esi
cmp ecx, 0xffffffff
je 0x46d40c
lea edx, [ecx + 1]
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0xf
mov byte [ebp - 0x488], 0
cmp edi, edx
jb 0x46d6d0
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.00455da0
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x238]
call fcn.00456df0
mov edx, dword [ebp - 0x474]
cmp edx, 0x10
jb 0x46d423
mov ecx, dword [ebp - 0x488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d400
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d6d5
push edx
push ecx
call fcn.006129d7
add esp, 8
jmp 0x46d423
cmp ebx, 0x10
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x238]
push eax
call fcn.00455da0
cmp byte [ebp + 0x24], 0
push 3
jne 0x46d44e
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 0x46d45f
lea eax, [ebp - 0x338]
mov dword [ebp - 0x33c], eax
push str.explorer.exe
lea ecx, [ebp - 0x33c]
call fcn.00466b80
push dword [ebp - 0x33c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0063dc32
mov eax, dword [ebp - 0x33c]
lea ecx, [ebp - 0x338]
add esp, 0xc
cmp eax, ecx
je 0x46d49d
push eax
call fcn.0063d570
add esp, 4
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46d629
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46d622
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x440]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46d506
test dx, dx
je 0x46d502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46d506
add eax, 4
add ecx, 4
test dx, dx
jne 0x46d4e0
xor eax, eax
jmp 0x46d50b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46d5f6
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 0x46d5f6
cmp dword [ebp - 0x21c], 0xffffffff
je 0x46d5f6
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 0x46d59f
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov esi, dword [ebp - 0x468]
test edx, edx
je 0x46d599
lea ecx, [esi + 8]
cmp dword [ecx], 0
je 0x46d593
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x46d584
jmp 0x46d599
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 0x46d5f6
cmp byte [ebp + 0x24], 0
jne 0x46d60d
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004449b0
push dword [ebp - 0x45c]
call fcn.0046e3d0
add esp, 0x1c
test al, al
jne 0x46d60d
lea eax, [ebp - 0x464]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d4d0
jmp 0x46d622
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 0x46d663
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d659
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d6d5
push edx
push ecx
call fcn.006129d7
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 0x46d6ae
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d6a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d6d5
push edx
push ecx
call fcn.006129d7
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.00612996
mov esp, ebp
pop ebp
ret
call fcn.004615a0
call fcn.006321a4
int3