Function at 0x4a0be2
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0x68
mov eax, 0x519f99
call fcn.004db273
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4a0c28
mov edi, str.Unable_to_find_file
push edi
call fcn.004e07a4
pop ecx
push eax
push edi
lea ecx, [esi + 4]
call fcn.0040d7d9
mov ecx, esi
mov eax, dword [ecx]
lea ecx, [esi + 4]
push dword [eax - 0xc]
push eax
call fcn.00410e44
xor al, al
jmp 0x4a0df0
lea ecx, [ebp - 0x10]
call fcn.0040cd94
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push 0x543de4
call fcn.0040d859
push 0x543ec4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004a0df8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
mov bl, al
call fcn.0040d05a
test bl, bl
jne 0x4a0c93
mov edi, str.Unable_to_get_a_temp_file_for_script_output__temp_path:
push edi
call fcn.004e07a4
pop ecx
push eax
push edi
lea ecx, [esi + 4]
call fcn.0040d7d9
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 4]
push dword [eax - 0xc]
push eax
call fcn.00410e44
jmp 0x4a0de2
lea ecx, [ebp - 0x14]
call fcn.0040cd94
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push dword [ebx]
push str.powershell.exe__NonInteractive__NoLogo__ExecutionPolicy_Unrestricted__WindowStyle_Hidden__Command___host.UI.RawUI.BufferSize__new_object_System.Management.Automation.Host.Size_1024_50______s__2____s_
push eax
call fcn.00411637
push 0x44
pop edi
push edi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004de4e0
mov dword [ebp - 0x74], edi
xor eax, eax
mov word [ebp - 0x44], ax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
xor ecx, ecx
inc ecx
add esp, 0x1c
mov dword [ebp - 0x48], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ecx
jle 0x4a0cf3
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d588
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x74]
push ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
mov ecx, esi
call fcn.00411620
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4a0d42
mov edi, str.Unable_to_create_process:
push edi
call fcn.004e07a4
pop ecx
push eax
push edi
lea ecx, [esi + 4]
call fcn.0040d7d9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
lea ecx, [esi + 4]
push dword [eax - 0xc]
push eax
call fcn.00410e44
jmp 0x4a0dd4
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004a0fe8
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebx]
call esi
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4a0dbb
mov eax, dword [ebp - 0x20]
test eax, eax
sete bl
test eax, eax
je 0x4a0dd6
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], 0
jne 0x4a0dd6
mov edi, str.Unable_to_retrieve_PowerShell_output_from_file:
push edi
call fcn.004e07a4
pop ecx
push eax
push edi
lea ecx, [esi + 4]
call fcn.0040d7d9
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 4]
push dword [eax - 0xc]
push eax
call fcn.00410e44
jmp 0x4a0dd6
mov esi, dword [ebp - 0x18]
mov edi, str.Unable_to_retrieve_exit_code_from_process.
push edi
call fcn.004e07a4
pop ecx
push eax
push edi
lea ecx, [esi + 4]
call fcn.0040d7d9
xor bl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d05a
mov al, bl
call fcn.004db23c
ret 4