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

Disassembly:
push 0x70
mov eax, 0x456d41
call fcn.0043cc79
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x410c92
mov ebx, str.Unable_to_find_file
push ebx
call fcn.00441e1e
pop ecx
push eax
push ebx
lea ecx, [edi + 4]
call fcn.00402e18
mov eax, dword [edi]
lea ecx, [edi + 4]
push dword [eax - 0xc]
push eax
call fcn.004019fa
xor al, al
jmp 0x410e7d
call fcn.00402af7
push eax
lea ecx, [ebp - 0x18]
call fcn.00402918
xor eax, eax
lea ecx, [ebp - 0x14]
push 0x468dc8
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
call fcn.00402eb5
push 0x468e68
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00410e85
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401b8a
test bl, bl
jne 0x410d0a
mov esi, str.Unable_to_get_a_temp_file_for_script_output__temp_path:
push esi
call fcn.00441e1e
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.00402e18
mov esi, dword [ebp - 0x18]
lea ecx, [edi + 4]
push dword [esi - 0xc]
push esi
call fcn.004019fa
jmp 0x410e72
call fcn.00402af7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402918
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
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.0040450a
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0043dd90
mov dword [ebp - 0x7c], edi
xor eax, eax
mov word [ebp - 0x4c], ax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
xor ecx, ecx
inc ecx
add esp, 0x1c
mov dword [ebp - 0x50], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
cmp dword [edi - 4], ecx
jle 0x410d72
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004018a9
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
push edi
call fcn.004044f3
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x410dc4
push str.Unable_to_create_process:
call fcn.00441e1e
pop ecx
push eax
push str.Unable_to_create_process:
lea ecx, [ebx + 4]
call fcn.00402e18
mov ecx, ebx
mov eax, dword [ecx]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.004019fa
jmp 0x410e65
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00410fc8
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
mov eax, dword [ebp + 8]
push dword [eax]
call ebx
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x410e49
mov eax, dword [ebp - 0x24]
test eax, eax
sete dl
mov byte [ebp + 0xb], dl
test eax, eax
je 0x410e44
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jne 0x410e44
mov ebx, str.Unable_to_retrieve_PowerShell_output_from_file:
push ebx
call fcn.00441e1e
pop ecx
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
call fcn.00402e18
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.004019fa
mov dl, byte [ebp + 0xb]
mov byte [ebp - 0x20], dl
jmp 0x410e6a
mov ebx, dword [ebp - 0x1c]
push str.Unable_to_retrieve_exit_code_from_process.
call fcn.00441e1e
pop ecx
push eax
push str.Unable_to_retrieve_exit_code_from_process.
lea ecx, [ebx + 4]
call fcn.00402e18
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea ecx, [edi - 0x10]
call fcn.00401b8a
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov al, byte [ebp - 0x20]
call fcn.0043cc42
ret 4