Function at 0x4387f3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call fcn.0042673b
test al, al
je 0x43882e
pop eax
pop ebp
pop edi
push ebx
push esi
pop edx
pop esp
push edx
pop esi
pop edx
push esp
pop edx
push ebx
pop edi
push esp
push ebp
push edx
pop esp
push edx
push edi
push esp
pop esp
pop ecx
pop ecx
pop ebx
push edi
push ebp
push edi
xor ebx, ebx
lea eax, [ebp - 0xc]
mov esi, 0xf01ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x438951
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x438951
push str.Kernel32.dll
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4388b1
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4388aa
call eax
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x438954
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00426513
test al, al
je 0x4388d5
pop esi
pop eax
push edx
push edx
push esi
pop esp
pop eax
pop edi
pop esi
pop esp
push esi
pop eax
push esp
push eax
push ebp
push ebx
pop ebp
push edx
push esp
pop edx
push edx
pop edx
push edx
push eax
pop eax
pop ecx
push esp
call fcn.00426a77
test al, al
je 0x4388fd
push edx
pop ebp
pop ebx
pop ecx
pop ebx
push ebx
pop ebx
push edi
pop esi
push edx
push ebx
pop ebp
push ecx
push ecx
pop esp
pop edi
pop edx
push eax
pop ebp
pop esi
pop edi
push edx
pop ebp
push ebp
pop eax
push ebx
push edx
push eax
pop eax
xor ebx, ebx
push str.Wtsapi32.dll
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x438a93
push 0x5a4f50
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4389d3
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ecx
push dword [ebp - 0x18]
call eax
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
push dword [ebp - 0x10]
test eax, eax
jne 0x4389cd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
call fcn.00426b46
test al, al
je 0x43897d
push edi
pop edi
push esp
push edi
push edx
pop eax
push eax
pop edx
pop ebx
pop ecx
pop ebx
push edx
push ecx
pop eax
push esp
pop edi
push esp
pop esi
push edi
push ebx
pop ebp
pop edi
push eax
pop esi
pop esp
pop esp
push edx
push ebp
pop esp
push ebp
push edx
pop esi
call fcn.0042659d
test al, al
je 0x43899d
push ebx
pop esi
push edx
pop edx
pop esi
pop ecx
push eax
pop esp
pop ecx
pop edi
push eax
push esi
push edi
push edx
push ebx
push esp
push eax
pop esp
push ecx
push eax
pop ebp
pop ebx
pop esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4389b0
cmp eax, 0xffffffff
je 0x4389b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4389c3
cmp ecx, 0xffffffff
je 0x4389c3
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004269ed
test al, al
je 0x4389f7
pop esp
push eax
push esp
push ebx
pop edx
pop ebp
pop ebp
pop edx
pop ebp
pop esi
push edx
pop ebp
pop edx
push ebx
pop ebx
push ebx
push ecx
pop ecx
pop eax
pop edx
pop esp
pop ebp
pop eax
push ebx
push esp
xor ebx, ebx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00442fd0
push 0x10
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00442fd0
add esp, 0x18
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], str.WinSta0Default
mov dword [ebp - 0x40], 1
push 5
pop eax
mov word [ebp - 0x3c], ax
call fcn.0042673b
test al, al
je 0x438a53
pop eax
pop ebp
pop edi
push ebx
push esi
pop edx
pop esp
push edx
pop esi
pop edx
push esp
pop edx
push ebx
pop edi
push esp
push ebp
push edx
pop esp
push edx
push edi
push esp
pop esp
pop ecx
pop ecx
pop ebx
push edi
push ebp
push edi
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push dword [ebp - 8]
push 0x430
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x438951
cmp dword [ebp - 8], 0
je 0x438a8a
push dword [ebp - 8]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov byte [ebp - 4], 1
jmp 0x438954
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x4389d3
push dword [ebp - 0xc]
jmp 0x43894b