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

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x2c
mov eax, 0x46277b
call fcn.00450d5a
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push ebx
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
cmp eax, 1
jne 0x4083e4
mov dword [ebp - 0x20], ebx
push 5
pop eax
cmp dword [ebp - 0x20], eax
jae 0x4083d7
cmp dword [ebp - 0x18], ebx
jne 0x4083d7
mov dword [ebp - 0x28], ebx
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x2c]
jae 0x4083bb
shl edi, 4
mov eax, dword [ebp - 0x24]
push dword [edi + eax + 8]
lea esi, [ebp - 0x14]
call fcn.004043af
mov byte [ebp - 4], 1
call fcn.0040ad77
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
push dword [eax + ecx*4]
push dword [ebp - 0x14]
call fcn.0044e665
pop ecx
pop ecx
test eax, eax
je 0x4083c3
mov eax, dword [ebp - 0x24]
add eax, edi
mov ecx, dword [ebp + 0x23c]
cmp ecx, dword [eax]
jne 0x4083c3
push dword [eax + 4]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4083c3
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x20]
jmp 0x408338
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x28]
jmp 0x408350
push dword [ebp - 0x24]
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x4084b1
mov dword [ebp], ebx
push 0x228
push ebx
lea eax, [ebp + 4]
push eax
call fcn.0044c8f0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
jne 0x408415
mov eax, 0x80100026
jmp fcn.0040426a
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x408433
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40840b
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x1c], ebx
push 5
pop eax
cmp dword [ebp - 0x1c], eax
jae 0x408493
cmp dword [ebp - 0x18], ebx
jne 0x4084a8
lea eax, [ebp + 0x24]
push eax
lea esi, [ebp - 0x14]
call fcn.004043af
mov byte [ebp - 4], 2
call fcn.0040ad77
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
push dword [eax + ecx*4]
push dword [ebp - 0x14]
call fcn.0044e665
pop ecx
pop ecx
test eax, eax
je 0x4084db
push dword [ebp + 8]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4084db
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x18], ebx
jne 0x4084a8
lea eax, [ebp]
push eax
push dword [ebp - 0x30]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408439
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x230
leave
ret
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call edi
inc dword [ebp - 0x1c]
jmp 0x40843c