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

Disassembly:
push 0x64
mov eax, 0x50bdc6
call fcn.004cea03
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x49401c
mov ebx, str.Unable_to_find_file
push ebx
call fcn.004d3ded
pop ecx
push eax
push ebx
lea ecx, [edi + 4]
call fcn.00409e0a
mov eax, dword [edi]
lea ecx, [edi + 4]
push dword [eax - 0xc]
push eax
call fcn.004070e2
xor al, al
jmp 0x4941e6
lea ecx, [ebp - 0x10]
call fcn.00406bd2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push 0x534db0
call fcn.00409ea5
push 0x534e94
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004941ee
mov bl, al
mov byte [ebp - 4], 0
neg bl
lea ecx, [ebp - 0x18]
sbb bl, bl
call fcn.004068c3
add bl, 1
je 0x49408f
lea esi, [edi + 4]
mov edi, str.Unable_to_get_a_temp_file_for_script_output__temp_path:
push edi
call fcn.004d3ded
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409e0a
mov eax, dword [ebp - 0x10]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.004070e2
xor bl, bl
jmp 0x4941d8
lea ecx, [ebp - 0x14]
call fcn.00406bd2
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.00407aa5
push 0x40
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.004cfc80
xor eax, eax
mov dword [ebp - 0x70], 0x44
mov word [ebp - 0x40], ax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
inc ecx
xorps xmm0, xmm0
mov dword [ebp - 0x44], ecx
add esp, 0x1c
movups xmmword [ebp - 0x2c], xmm0
cmp dword [eax - 4], ecx
jle 0x4940f1
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406708
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
mov ecx, edi
call fcn.00407a8e
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49413d
mov ebx, str.Unable_to_create_process:
push ebx
call fcn.004d3ded
pop ecx
push eax
push ebx
lea ecx, [edi + 4]
call fcn.00409e0a
mov eax, dword [edi]
lea ecx, [edi + 4]
push dword [eax - 0xc]
push eax
call fcn.004070e2
jmp 0x4941ca
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0049434e
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebx]
call esi
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4941b2
cmp dword [ebp - 0x1c], 0
sete bl
test bl, bl
jne 0x4941cc
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
jne 0x4941cc
mov esi, str.Unable_to_retrieve_PowerShell_output_from_file:
push esi
call fcn.004d3ded
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.00409e0a
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 4]
push dword [eax - 0xc]
push eax
call fcn.004070e2
jmp 0x4941cc
lea esi, [edi + 4]
mov edi, str.Unable_to_retrieve_exit_code_from_process.
push edi
call fcn.004d3ded
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409e0a
xor bl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
mov al, bl
call fcn.004ce9cc
ret 4