Function at 0x42d141
Capabilities:
Create process on windows
Set environment variable
Terminate process

Disassembly:
push 0x2b8
mov eax, 0x4cf044
call fcn.004b44ab
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x228], ebx
xor esi, esi
push 0x40
lea eax, [ebp - 0x2c0]
push esi
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x2c4], esi
call fcn.004aefb0
xor eax, eax
mov dword [ebp - 0x27c], esi
lea edi, [ebp - 0x278]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
cmp ebx, esi
jne 0x42d1a3
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], eax
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00423cb9
lea eax, [ebp - 0x220]
push eax
call fcn.004687f0
mov eax, dword [eax]
push 0x4e337c
push eax
call fcn.004ae3c3
mov ecx, dword [ebp - 0x220]
add esp, 0x10
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0042101a
test bl, bl
je 0x42d262
call fcn.0049ff8a
push eax
lea ecx, [ebp - 0x220]
call fcn.00425004
mov byte [ebp - 4], 3
call fcn.0049ff8a
push eax
lea ecx, [ebp - 0x22c]
call fcn.00425004
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push ecx
mov dword [ebp - 0x224], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.00423cb9
call fcn.00491dc0
mov ecx, dword [ebp - 0x22c]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.0042101a
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0042101a
push ecx
mov eax, esp
mov dword [ebp - 0x224], esp
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.ExecInject__s__s__
push eax
call fcn.00468700
add esp, 0x10
call fcn.0042d0ea
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c4], 0x44
pop ecx
mov ecx, 0x4e33ac
cmp dword [eax - 0xc], esi
jne 0x42d2a1
mov ecx, 0x4df5f8
push eax
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4e33b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42d35c
test byte [ebp + 0x18], 1
je 0x42d32e
push 0xffffffffffffffff
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x50c83c
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ecx
mov eax, esp
mov dword [ebp - 0x224], esp
push dword [0x50c83c]
push str.ExecInject:_ExecWait__CreateProcess_:_g_LoaderExitCode_d
push eax
call fcn.00468700
add esp, 0xc
call fcn.0042d0ea
pop ecx
mov esi, dword [ebp - 0x274]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, esi
jmp 0x42d55b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.ExecInject__s__s__:_CreateProcess_failed__LE_d._Checking_for_ShellExec___Elevation_requirements
push ecx
call fcn.00468700
add esp, 0x14
call fcn.0042d0ea
pop ecx
call edi
mov ebx, dword [ebp - 0x228]
mov dword [ebx], eax
cmp eax, 0xc1
jne 0x42d469
push 0x38
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.004aefb0
add esp, 0xc
test byte [ebp + 0x18], 2
mov dword [ebp - 0x260], str.open
mov dword [ebp - 0x26c], 0x3c
mov dword [ebp - 0x268], esi
je 0x42d3d9
mov dword [ebp - 0x268], 0x400
mov eax, dword [ebp + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x258], eax
xor ebx, ebx
lea eax, [ebp - 0x26c]
inc ebx
push eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42d334
test byte [ebp + 0x18], bl
je 0x42d462
push 0xffffffffffffffff
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x50c83c
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ecx
mov eax, esp
mov dword [ebp - 0x224], esp
push dword [0x50c83c]
push str.ExecInject:_ExecWait__ShellExecInfo_:_g_LoaderExitCode_d
push eax
call fcn.00468700
add esp, 0xc
call fcn.0042d0ea
pop ecx
mov esi, ebx
jmp 0x42d334
cmp eax, 0x2e4
je 0x42d480
cmp eax, 0x4c7
je 0x42d480
call edi
mov dword [ebx], eax
jmp 0x42d334
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00466e50
test eax, eax
je 0x42d4a1
push str.RunAsAdmin
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x38
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.004aefb0
add esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0x260], str.runas
mov dword [ebp - 0x26c], 0x3c
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
call fcn.004b1119
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x25c], eax
call fcn.004b1119
pop ecx
push dword [ebp - 0x230]
mov dword [ebp - 0x258], eax
call fcn.004b1119
pop ecx
push 6
push esi
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x24c], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42d534
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov dword [ebx], eax
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
xor eax, eax
call fcn.004b452e
ret