Function at 0x401380
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
sub esp, 0x1a8
push ebx
push ebp
push esi
push edi
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov ebx, eax
push ebx
push str.dwSessionID_
call fcn.004019a0
add esp, 8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4013d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a8
ret
lea eax, [esp + 0x90]
mov dword [esp + 0x90], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4013f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push 0x42aa9c
push 0x42a788
call fcn.004126ae
add esp, 8
test eax, eax
jne 0x401431
mov edi, str.winlogon.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x42a788
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
xor edi, edi
lea eax, [esp + 0xb4]
push 0x42a788
push eax
call fcn.004126ae
add esp, 8
test eax, eax
jne 0x40146f
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40146f
cmp dword [esp + 0x1c], ebx
je 0x401483
lea eax, [esp + 0x90]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40148c
jmp 0x401439
mov esi, dword [esp + 0x98]
jmp 0x401490
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
xor edx, edx
push esi
mov dword [esp + 0x40], edx
xor esi, esi
mov dword [esp + 0x44], edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x48], edx
push esi
rep stosd dword es:[edi], eax
push 0x2000000
mov ebp, 0x30
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x60], str.winsta0default
mov dword [esp + 0x54], edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 0x201eb
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
lea ecx, [esp + 0x24]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
push ecx
push 1
push 1
push esi
push 0x2000000
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [esp + 0x10]
push 4
push ebx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov edx, dword [esp + 0x10]
push esi
push esi
lea ecx, [esp + 0x34]
push 0x10
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40158e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4015af
mov ebp, 0x430
jmp 0x4015b3
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1bc]
push 0xff
push esi
call fcn.004019a0
mov ecx, dword [esp + 0x1c]
add esp, 8
lea edx, [esp + 0x3c]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push ebp
push 0
push 0
push 0
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push eax
push str.CreateProcessAsUser_result_
call fcn.004019a0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1a8
ret