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

Disassembly:
push 0x2b8
mov eax, 0x4cc444
call fcn.004b1859
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], 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.004ac220
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 0x42c69a
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], eax
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00423aca
lea eax, [ebp - 0x220]
push eax
call fcn.00466af0
mov eax, dword [eax]
push 0x4df00c
push eax
call fcn.004ab635
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 0x42c759
call fcn.0049d1fb
push eax
lea ecx, [ebp - 0x220]
call fcn.0042149e
mov byte [ebp - 4], 3
call fcn.0049d1fb
push eax
lea ecx, [ebp - 0x230]
call fcn.0042149e
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push ecx
mov dword [ebp - 0x228], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.00423aca
call fcn.0048f0f0
mov ecx, dword [ebp - 0x230]
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 - 0x228], esp
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.ExecInject__s__s__
push eax
call fcn.00466a00
add esp, 0x10
call fcn.0042c5e1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c4], 0x44
pop ecx
mov ecx, 0x4df03c
cmp dword [eax - 0xc], esi
jne 0x42c798
mov ecx, 0x4d9c38
push eax
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4df040
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 - 0x22c]
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 0x42c81f
test byte [ebp + 0x18], 1
je 0x42c7f1
push 0xffffffffffffffff
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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 0x42c9ea
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x228], 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.00466a00
add esp, 0x14
call fcn.0042c5e1
pop ecx
call edi
mov ebx, dword [ebp - 0x224]
mov dword [ebx], eax
cmp eax, 0xc1
jne 0x42c8f8
push 0x38
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.004ac220
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 0x42c89c
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 0x42c7f7
test byte [ebp + 0x18], bl
je 0x42c8f1
push 0xffffffffffffffff
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, ebx
jmp 0x42c7f7
cmp eax, 0x2e4
je 0x42c90f
cmp eax, 0x4c7
je 0x42c90f
call edi
mov dword [ebx], eax
jmp 0x42c7f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00465540
test eax, eax
je 0x42c930
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.004ac220
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.004ae389
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x25c], eax
call fcn.004ae389
pop ecx
push dword [ebp - 0x22c]
mov dword [ebp - 0x258], eax
call fcn.004ae389
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 0x42c9c3
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.004b18dc
ret