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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7214cb
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x7db1e8]
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
push 0x14
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x858], 0
call fcn.006f4b6f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x85c], eax
push 0x73817c
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x218]
push 0x104
push eax
call ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4d1926
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4d191f
push 0x104
lea eax, [ebp - 0x830]
push eax
call ebx
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4d190a
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x85c]
call fcn.004cb9b0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x884], xmm0
cmp byte [ecx + 0xd], 0
jne 0x4d1893
mov eax, dword [ebp - 0x84c]
cmp eax, dword [ecx + 0x10]
jae 0x4d190a
cmp dword [ebp - 0x858], 0xccccccc
je 0x4d1b10
mov esi, dword [ebp - 0x85c]
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x874], eax
push 0x14
mov byte [ebp - 4], 1
mov dword [ebp - 0x870], 0
call fcn.006f4b6f
mov ecx, dword [ebp - 0x84c]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x870], 0
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x85c]
push eax
push dword [ebp - 0x880]
mov dword [eax], esi
push dword [ebp - 0x884]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.004d9e00
lea eax, [ebp - 0x854]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d1830
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x884]
push eax
lea ecx, [ebp - 0x85c]
call fcn.004cb9b0
mov ecx, dword [ebp - 0x87c]
cmp byte [ecx + 0xd], 0
jne 0x4d1973
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x10]
jb 0x4d1973
mov esi, dword [ebp - 0x85c]
cmp ecx, esi
je 0x4d1979
push ecx
lea ecx, [ebp - 0x85c]
call fcn.004d9b40
push 0x14
push eax
call fcn.006f4b9f
add esp, 8
jmp 0x4d1979
mov esi, dword [ebp - 0x85c]
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 0x868], 0
push 0
push eax
mov dword [ebp - 0x86c], 0
call fcn.006f7570
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.006f7570
add esp, 0x18
mov dword [ebp - 0x864], 0
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x878], 8
push eax
lea eax, [ebp - 0x868]
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x4d1ae1
xor edi, edi
cmp dword [ebp - 0x86c], edi
jbe 0x4d1ae1
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [ebp - 0x868]
lea ecx, [ebp - 0x85c]
add eax, ebx
mov dword [ebp - 0x870], eax
add eax, 4
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.004cb9b0
mov ecx, dword [ebp - 0x87c]
mov edx, dword [ebp - 0x870]
cmp byte [ecx + 0xd], 0
jne 0x4d1a4e
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 0x10]
jae 0x4d1a54
mov ecx, dword [ebp - 0x85c]
cmp ecx, esi
je 0x4d1ad1
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x860]
push eax
push 0
lea eax, [ebp - 0x864]
push eax
push 0
push dword [edx + 0xc]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov eax, dword [ebp - 0x864]
dec eax
cmp eax, 0x102
ja 0x4d1ad1
mov eax, dword [ebp - 0x860]
dec eax
cmp eax, 0x103
ja 0x4d1ad1
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x628]
push eax
mov eax, dword [ebp - 0x868]
push dword [ebx + eax + 0xc]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x4d1b0c
inc edi
add ebx, 0x10
cmp edi, dword [ebp - 0x86c]
jb 0x4d1a10
mov bl, 1
lea ecx, [ebp - 0x85c]
call fcn.004ccae0
mov al, bl
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.006f4db8
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x4d1ae3
call fcn.004da0f0
int3