Function at 0x42efdd
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x48ec38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x230], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x23c], eax
xor eax, eax
push 0x44
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x234], edx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x24c]
stosd dword es:[edi], eax
add esp, 0xc
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x220], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x214], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
push eax
push 1
push 2
push ecx
push 0x2000000
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x42f09a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov edi, eax
push edi
call fcn.004321e3
mov ebx, dword [ebp - 0x214]
jmp 0x42f261
push 5
pop eax
mov word [ebp - 0x268], ax
xor eax, eax
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x298], 0x44
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x42f07b
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42f07b
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x42f0f5
xor eax, eax
cmp ax, word [ecx]
jne 0x42f101
lea eax, [ebp - 0x210]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x42f112
xor ecx, ecx
cmp cx, word [eax]
jne 0x42f15c
push 0x40cd60
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push 0x40cd70
push eax
call fcn.0041a772
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x42f149
push edi
call fcn.004321e3
mov esi, dword [ebp - 0x220]
jmp 0x42f08f
mov esi, dword [ebp - 0x220]
xor ebx, ebx
mov eax, esi
inc ebx
mov dword [ebp - 0x228], eax
jmp 0x42f15e
mov ebx, ecx
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x42f18f
xor edx, edx
cmp word [ecx], dx
je 0x42f18f
push ecx
push eax
lea eax, [ebp - 0x214]
push 0x408d04
push eax
call fcn.0041a772
mov edi, eax
add esp, 0x10
test edi, edi
js 0x42f089
push 4
lea eax, [ebp - 0x234]
push eax
push 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x42f07b
push 4
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 1
push eax
push 0x1a
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x42f07b
lea eax, [ebp - 0x24c]
shl ebx, 4
push eax
lea eax, [ebp - 0x298]
or ebx, 0x400
push eax
mov eax, dword [ebp - 0x224]
push eax
push dword [ebp - 0x21c]
xor eax, eax
push ebx
mov ebx, dword [ebp - 0x214]
push eax
push eax
push eax
mov eax, dword [ebp - 0x228]
push ebx
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x42f235
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov edi, eax
push edi
call fcn.004321e3
jmp 0x42f261
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x42f249
mov eax, dword [ebp - 0x24c]
mov dword [ecx], eax
jmp 0x42f255
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00432150
test ebx, ebx
je 0x42f271
push ebx
call fcn.0043220c
cmp dword [ebp - 0x21c], 0
je 0x42f290
push dword [ebp - 0x21c]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
jmp 0x42f292
xor ebx, ebx
cmp dword [ebp - 0x218], 0
je 0x42f2ad
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x218], ebx
test esi, esi
je 0x42f2b7
push esi
call fcn.0043220c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d650
leave
ret 0x20