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

Disassembly:
push 0x2b8
mov eax, 0x4d0489
call fcn.004b57ab
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.004b02b0
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 0x42d20c
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.00423d24
lea eax, [ebp - 0x220]
push eax
call fcn.00468d70
mov eax, dword [eax]
push 0x4e43ac
push eax
call fcn.004af6c3
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 0x42d2cb
call fcn.004a1286
push eax
lea ecx, [ebp - 0x220]
call fcn.0042149e
mov byte [ebp - 4], 3
call fcn.004a1286
push eax
lea ecx, [ebp - 0x22c]
call fcn.0042149e
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.00423d24
call fcn.00493080
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.00468c80
add esp, 0x10
call fcn.0042d153
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c4], 0x44
pop ecx
mov ecx, 0x4e43dc
cmp dword [eax - 0xc], esi
jne 0x42d30a
mov ecx, 0x4e0608
push eax
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4e43e0
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 0x42d3c5
test byte [ebp + 0x18], 1
je 0x42d397
push 0xffffffffffffffff
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x50e83c
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ecx
mov eax, esp
mov dword [ebp - 0x224], esp
push dword [0x50e83c]
push str.ExecInject:_ExecWait__CreateProcess_:_g_LoaderExitCode_d
push eax
call fcn.00468c80
add esp, 0xc
call fcn.0042d153
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 0x42d5c4
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.00468c80
add esp, 0x14
call fcn.0042d153
pop ecx
call edi
mov ebx, dword [ebp - 0x228]
mov dword [ebx], eax
cmp eax, 0xc1
jne 0x42d4d2
push 0x38
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.004b02b0
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 0x42d442
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 0x42d39d
test byte [ebp + 0x18], bl
je 0x42d4cb
push 0xffffffffffffffff
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x50e83c
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ecx
mov eax, esp
mov dword [ebp - 0x224], esp
push dword [0x50e83c]
push str.ExecInject:_ExecWait__ShellExecInfo_:_g_LoaderExitCode_d
push eax
call fcn.00468c80
add esp, 0xc
call fcn.0042d153
pop ecx
mov esi, ebx
jmp 0x42d39d
cmp eax, 0x2e4
je 0x42d4e9
cmp eax, 0x4c7
je 0x42d4e9
call edi
mov dword [ebx], eax
jmp 0x42d39d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.004673d0
test eax, eax
je 0x42d50a
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.004b02b0
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.004b2419
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x25c], eax
call fcn.004b2419
pop ecx
push dword [ebp - 0x230]
mov dword [ebp - 0x258], eax
call fcn.004b2419
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 0x42d59d
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.004b582e
ret