Function at 0x409395
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11dc
call fcn.0040ce40
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x11da]
mov word [ebp - 0x11dc], bx
rep stosd dword es:[edi], eax
push 0x44
mov dword [ebp - 0x10], ebx
pop esi
mov dword [ebp - 4], ebx
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x11dc]
mov dword [ebp - 0x6c], esi
push 0x40f418
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x11dc]
push eax
call esi
lea eax, [ebp - 0x11dc]
push 0x40fba4
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x11dc]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.kernel32.dll
call esi
push str.advapi32.dll
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], eax
je 0x4095cf
cmp eax, ebx
je 0x4095cf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push dword [ebp + 8]
call edi
push str.CreateProcessWithTokenW
mov dword [ebp + 0xc], eax
push dword [ebp - 0xc]
call edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x28], eax
je 0x4095cf
cmp eax, ebx
je 0x4095cf
call dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x4095cf
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x4095cf
mov edi, 0x128
lea eax, [ebp - 0x194]
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x194], edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x194]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4094e1
push edi
jmp 0x409588
lea eax, [ebp - 0x170]
push str.explorer.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409516
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x409516
mov eax, dword [ebp - 0x24]
cmp dword [ebp + 0xc], eax
je 0x409529
lea eax, [ebp - 0x194]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409532
jmp 0x4094e1
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x10], eax
push edi
call esi
cmp dword [ebp - 0x10], ebx
je 0x4095cf
push dword [ebp - 0x10]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4095cf
lea ecx, [ebp - 4]
mov edi, 0x2000000
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409585
lea eax, [ebp - 8]
push eax
push 1
push 2
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 4]
test eax, eax
jne 0x40958c
call esi
push dword [ebp + 0xc]
call esi
jmp 0x4095cf
call esi
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x11dc]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 8]
call dword [ebp - 0x28]
push 0xffffffffffffffff
mov edi, eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 8]
call esi
cmp edi, ebx
jne 0x409604
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x11dc]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
mov edi, eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xc], ebx
je 0x409612
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp + 8], ebx
je 0x409620
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
je 0x40962e
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x20]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret