Function at 0x4356e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5565cb
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5c3040]
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 0x435776
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 0x4357aa
push 0x5abf08
push eax
call ebx
mov dword [ebp - 0x150], eax
jmp 0x4357ac
xor eax, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x435833
test eax, eax
je 0x435833
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x13c]
push eax
push 1
push 0
push 0
call edi
test eax, eax
je 0x435833
mov eax, dword [ebp - 0x13c]
xor ebx, ebx
cmp dword [ebp - 0x140], ebx
jbe 0x43582a
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
push str.winlogon.exe
push dword [edi + eax + 8]
call fcn.00534d42
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x13c]
jne 0x435816
mov ecx, dword [ebp - 0x154]
cmp ecx, dword [edi + eax]
je 0x435824
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 0x140]
jb 0x4357f0
jmp 0x43582a
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 0x43584a
push eax
call edi
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x43585e
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x4358e1
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4358e1
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x43589e
push edi
call ebx
xor esi, esi
jmp 0x4358e1
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x114]
push str.winlogon.exe
push eax
call fcn.00534d42
add esp, 8
test eax, eax
cmove esi, dword [ebp - 0x130]
cmp byte [0x5c6494], 0
jne 0x4358d8
lea eax, [ebp - 0x138]
push eax
push edi
call ebx
test eax, eax
jne 0x4358a4
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 0x43594f
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 0x435951
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.00524763
mov esp, ebp
pop ebp
ret