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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4198eb
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [section..data]
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 dword [ebp - 0x478], ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
lea eax, [ebp - 0x470]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x407d09
xor ebx, ebx
mov dword [ebp - 0x474], ebx
cmp dword [ebp - 0x424], ebx
jbe 0x407cfd
mov esi, dword [ebp - 0x470]
add esi, 4
xor eax, eax
mov dword [ebp - 0x428], 0x104
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00411610
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00411610
add esp, 0x18
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x407ce7
push dword [esi]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x407ce7
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x407ce0
xor eax, eax
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], eax
mov word [ebp - 0x450], ax
mov dword [ebp - 4], eax
mov edx, dword [esi + 4]
cmp word [edx], ax
jne 0x407be8
xor ecx, ecx
jmp 0x407c05
mov ecx, edx
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407bf0
sub ecx, ebx
mov ebx, dword [ebp - 0x474]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x468]
call fcn.004051c0
cmp word [ebp - 0x218], 0
mov eax, dword [esi]
mov dword [ebp - 0x434], eax
mov eax, dword [esi - 4]
mov dword [ebp - 0x438], eax
jne 0x407c31
xor eax, eax
jmp 0x407c4f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.004051c0
cmp dword [ebp - 0x42c], 0
mov ecx, 0x20
mov eax, 0x40
cmovne eax, ecx
mov ecx, dword [ebp - 0x478]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x468]
push eax
call fcn.004088b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x43c], 8
jb 0x407cac
push dword [ebp - 0x450]
call fcn.004098d1
add esp, 4
xor eax, eax
mov dword [ebp - 0x43c], 7
cmp dword [ebp - 0x454], 8
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
jb 0x407ce0
push dword [ebp - 0x468]
call fcn.004098d1
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add esi, 0x10
mov dword [ebp - 0x474], ebx
cmp ebx, dword [ebp - 0x424]
jb 0x407af3
push dword [ebp - 0x470]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
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.00408e8c
mov esp, ebp
pop ebp
ret