Function at 0x41d7e0
Capabilities:
Create process on windows
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a578
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x41d849
push 0x14
push str.Unable_to_find_file
lea ecx, [edi + 4]
call fcn.00403ae0
mov eax, dword [edi]
lea ecx, [edi + 4]
push dword [eax - 0xc]
push eax
call fcn.00402280
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x41dbdb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x41dbe5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x4a62bc
call fcn.004038d0
test al, al
jne 0x41d8ac
push 3
push 0x4a62bc
lea ecx, [ebp - 0x18]
call fcn.00403ae0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push 0x4a635c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041dc00
test al, al
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d8e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x41d914
push 0x38
push str.Unable_to_get_a_temp_file_for_script_output__temp_path:
lea ecx, [edi + 4]
call fcn.00403ae0
mov esi, dword [ebp - 0x1c]
lea ecx, [edi + 4]
push dword [esi - 0xc]
push esi
call fcn.00402280
mov byte [ebp + 0xb], 0
jmp 0x41dba6
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x41dbef
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
push esi
push dword [eax]
lea eax, [ebp - 0x18]
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.00403590
mov edi, dword [ebp - 0x18]
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x88], xmm0
add esp, 0x10
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x5a], xmm0
movlpd qword [ebp - 0x52], xmm0
mov word [ebp - 0x4a], ax
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x60], 1
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x48], xmm0
cmp dword [edi - 4], 1
jle 0x41d9ad
push dword [edi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00402140
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x41d9c7
push dword [ecx - 0xc]
mov ecx, eax
call fcn.00402140
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41da12
mov ecx, dword [ebp - 0x14]
push 0x1a
add ecx, 4
push str.Unable_to_create_process:
call fcn.00403ae0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
lea ecx, [edx + 4]
push dword [eax - 0xc]
push eax
call fcn.00402280
jmp 0x41db86
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x4a4fc8
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xa
cmp eax, 0xffffffff
jne 0x41da5d
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], 0x4a4fc8
push eax
jmp 0x41db05
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41daf2
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
push eax
call fcn.00403020
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dadb
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.00406480
cmp eax, 4
jne 0x41dac4
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
shr eax, 1
push eax
lea eax, [edi + 2]
push eax
jmp 0x41dad0
cmp eax, 5
jne 0x41dadb
mov eax, dword [ebp - 0x20]
shr eax, 1
push eax
push edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + 4]
call fcn.00403ae0
mov byte [ebp - 4], 0xa
push edi
call fcn.0046ce46
mov edi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0x4a4fc8
test eax, eax
je 0x41db12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41db74
mov eax, dword [ebp - 0x30]
test eax, eax
sete byte [ebp + 0xb]
test eax, eax
je 0x41db8a
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x41db8a
push 0x30
push str.Unable_to_retrieve_PowerShell_output_from_file:
call fcn.00403ae0
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00402280
jmp 0x41db8a
mov ecx, dword [ebp - 0x14]
push 0x2a
push str.Unable_to_retrieve_exit_code_from_process.
lea ecx, [ecx + 4]
call fcn.00403ae0
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41dba6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41dbc5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004023a0
push 0x80004005
call fcn.004023a0
push 0x80004005
call fcn.004023a0
int3