Function at 0x42ee40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547fab
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5b0008]
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 eax, edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x148], ecx
xor edi, edi
mov dword [ebp - 0x144], 0
push str.wtsapi32
mov dword [ebp - 0x158], eax
or esi, 0xffffffff
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x160], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x15c], eax
test eax, eax
je 0x42eed6
push str.WTSEnumerateProcessesA
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x160], edi
xor eax, eax
mov dword [ebp - 4], 0
push str.wtsapi32
mov dword [ebp - 0x150], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x42ef0a
push 0x59b418
push eax
call ebx
mov dword [ebp - 0x150], eax
jmp 0x42ef0c
xor eax, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x42ef93
test eax, eax
je 0x42ef93
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x13c]
push eax
push 1
push 0
push 0
call edi
test eax, eax
je 0x42ef93
mov eax, dword [ebp - 0x13c]
xor ebx, ebx
cmp dword [ebp - 0x140], ebx
jbe 0x42ef8a
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
push str.winlogon.exe
push dword [edi + eax + 8]
call fcn.0052bbfc
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x13c]
jne 0x42ef76
mov ecx, dword [ebp - 0x154]
cmp ecx, dword [edi + eax]
je 0x42ef84
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 0x140]
jb 0x42ef50
jmp 0x42ef8a
add ebx, ebx
mov esi, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 0x150]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14c]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x42efaa
push eax
call edi
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x42efbe
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x42f041
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x42f041
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], pe_nt_image_headers32
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x42effe
push edi
call ebx
xor esi, esi
jmp 0x42f041
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x114]
push str.winlogon.exe
push eax
call fcn.0052bbfc
add esp, 8
test eax, eax
cmove esi, dword [ebp - 0x130]
cmp byte [0x5b2e27], 0
jne 0x42f038
lea eax, [ebp - 0x138]
push eax
push edi
call ebx
test eax, eax
jne 0x42f004
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42f0af
lea eax, [ebp - 0x144]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x148]
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
lea eax, [ebp - 0x158]
push 4
push eax
mov eax, dword [ebp - 0x148]
push 0xc
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x144]
call ebx
push edi
call ebx
mov eax, esi
jmp 0x42f0b1
xor eax, eax
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.00518799
mov esp, ebp
pop ebp
ret