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

Disassembly:
push 0x2b8
mov eax, 0x4bf3c8
call fcn.004a9ca4
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x228], 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.004a5560
xor eax, eax
mov dword [ebp - 0x278], esi
lea edi, [ebp - 0x274]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
cmp ebx, esi
jne 0x42a1c6
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.00423a92
lea eax, [ebp - 0x220]
push eax
call fcn.00462140
mov eax, dword [eax]
push 0x4ceb88
push eax
call fcn.004a4b43
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 0x42a281
call fcn.0049673f
push eax
lea ecx, [ebp - 0x220]
call fcn.004249c2
mov byte [ebp - 4], 3
call fcn.0049673f
push eax
lea ecx, [ebp - 0x22c]
call fcn.004249c2
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 - 0x27c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.00423a92
call fcn.0048b320
mov ecx, dword [ebp - 0x22c]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c4], 0x44
mov ecx, 0x4ceb90
cmp dword [eax - 0xc], esi
jne 0x42a29d
mov ecx, 0x4cd12c
push eax
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4ceb94
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 0x228]
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 0x42a323
cmp dword [ebp + 0x18], esi
je 0x42a2f5
push 0xffffffffffffffff
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x270]
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 0x42a4b8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [ebp - 0x224]
mov dword [ebx], eax
cmp eax, 0xc1
jne 0x42a3c6
push 0x38
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004a5560
mov eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x268]
inc edi
push eax
mov dword [ebp - 0x25c], str.open
mov dword [ebp - 0x268], 0x3c
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42a2fb
cmp dword [ebp + 0x18], esi
je 0x42a3bf
push 0xffffffffffffffff
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, edi
jmp 0x42a2fb
cmp eax, 0x2e4
je 0x42a3dd
cmp eax, 0x4c7
je 0x42a3dd
call edi
mov dword [ebx], eax
jmp 0x42a2fb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00460c10
test eax, eax
je 0x42a3fe
push str.RunAsAdmin
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x38
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004a5560
add esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0x25c], str.runas
mov dword [ebp - 0x268], 0x3c
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
call fcn.004a5d6d
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x258], eax
call fcn.004a5d6d
pop ecx
push dword [ebp - 0x228]
mov dword [ebp - 0x254], eax
call fcn.004a5d6d
pop ecx
push 6
push esi
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x248], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42a491
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.004a9d27
ret