Function at 0x404ba0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406881
mov eax, dword fs:[0]
push eax
mov eax, 0x110c
call fcn.004063b0
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x10d9], 0
lea esi, [ebp - 0x12]
test ecx, ecx
jns 0x404c10
neg ecx
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x404be1
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x404c30
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x404c10
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0x1100]
call fcn.00404220
lea eax, [ebp - 0x1100]
mov dword [ebp - 4], 0
push eax
mov edx, str.powershell.exe__Command__Get_Process__Id
lea ecx, [ebp - 0x1118]
call fcn.00403870
add esp, 4
push str.__Select_Object__ExpandProperty_Responding_
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00403260
mov dword [ebp - 0x1060], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1070], xmm0
mov dword [ebp - 0x105c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1070], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1060], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1104]
cmp ecx, 7
jbe 0x404cfa
mov edx, dword [ebp - 0x1118]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404cf0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d4d
push ecx
push edx
call fcn.00405491
add esp, 8
xor eax, eax
mov dword [ebp - 0x1108], 0
mov dword [ebp - 0x1104], 7
mov word [ebp - 0x1118], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10ec]
cmp ecx, 7
jbe 0x404d5d
mov edx, dword [ebp - 0x1100]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404d53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404d53
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405491
add esp, 8
xor eax, eax
mov dword [ebp - 0x10f0], 0
push eax
mov word [ebp - 0x1100], ax
mov dword [ebp - 0x1080], eax
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0x1078]
mov dword [ebp - 0x10ec], 7
push eax
lea eax, [ebp - 0x1074]
mov dword [ebp - 0x1084], 0xc
push eax
mov dword [ebp - 0x107c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov eax, dword [ebp - 0x1078]
lea ecx, [ebp - 0x1094]
push ecx
lea ecx, [ebp - 0x10d8]
mov dword [ebp - 0x109c], eax
push ecx
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1098], 0
push 0
push 0
push 1
movlpd qword [ebp - 0x10ac], xmm0
lea eax, [ebp - 0x1070]
or dword [ebp - 0x10ac], 0x100
cmp dword [ebp - 0x105c], 7
push 0
cmova eax, dword [ebp - 0x1070]
push 0
push eax
push 0
movlpd qword [ebp - 0x10d4], xmm0
movlpd qword [ebp - 0x10cc], xmm0
movlpd qword [ebp - 0x10c4], xmm0
movlpd qword [ebp - 0x10bc], xmm0
movlpd qword [ebp - 0x10b4], xmm0
movlpd qword [ebp - 0x10a4], xmm0
mov dword [ebp - 0x10d8], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405089
push dword [ebp - 0x1078]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
xor esi, esi
mov edi, 0xf
mov dword [ebp - 0x1048], esi
movups xmmword [ebp - 0x1058], xmm0
mov dword [ebp - 0x1044], edi
mov byte [ebp - 0x1058], 0
push esi
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 5
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push dword [ebp - 0x1074]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404f53
mov edi, dword [ebp - 0x1040]
test edi, edi
je 0x404f4d
mov ecx, dword [ebp - 0x1044]
mov eax, ecx
sub eax, esi
push edi
cmp edi, eax
ja 0x404efe
lea eax, [esi + edi]
cmp ecx, 0xf
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x1058]
cmova eax, dword [ebp - 0x1058]
add esi, eax
lea eax, [ebp - 0x103c]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x404f1e
lea eax, [ebp - 0x103c]
mov byte [ebp - 0x10e0], 0
push eax
push dword [ebp - 0x10e0]
lea ecx, [ebp - 0x1058]
push edi
call fcn.00405270
push 0
lea eax, [ebp - 0x1040]
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push dword [ebp - 0x1074]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x1048]
test eax, eax
jne 0x404eb0
mov edi, dword [ebp - 0x1044]
push dword [ebp - 0x1074]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x1094]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, 0xf
lea ecx, [ebp - 0x1058]
cmova ecx, dword [ebp - 0x1058]
mov dword [ebp - 0x10e4], ecx
cmp esi, 5
jb 0x405026
lea eax, [ecx - 4]
add eax, esi
mov dword [ebp - 0x10e8], eax
sub eax, ecx
push eax
push 0x46
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x405026
nop dword [eax + eax]
mov edx, ecx
mov dword [ebp - 0x10e0], 1
mov esi, str.False
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x404fd7
add edx, 4
mov dword [ebp - 0x10e0], 0xfffffffd
add esi, 4
mov al, byte [edx]
cmp al, byte [esi]
jne 0x405002
cmp dword [ebp - 0x10e0], 0xfffffffd
je 0x404ffe
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x405002
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x405002
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x405002
xor eax, eax
jmp 0x405007
sbb eax, eax
or eax, 1
test eax, eax
je 0x405075
mov eax, dword [ebp - 0x10e8]
inc ecx
sub eax, ecx
push eax
push 0x46
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x404fb0
or ecx, 0xffffffff
push dword [ebp - 0x1094]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ecx, 0xffffffff
setne byte [ebp - 0x10d9]
call esi
push dword [ebp - 0x1090]
call esi
cmp edi, 0xf
jbe 0x4050b5
mov ecx, dword [ebp - 0x1058]
inc edi
mov eax, ecx
cmp edi, 0x1000
jb 0x40507d
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40507d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, dword [ebp - 0x10e4]
jmp 0x405029
push edi
push ecx
call fcn.00405491
add esp, 8
jmp 0x4050b5
push 0x403bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_create_process._Error_code:
push eax
call fcn.00403990
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x105c]
cmp ecx, 7
jbe 0x4050f7
mov edx, dword [ebp - 0x1070]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4050ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4050ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405491
add esp, 8
mov al, byte [ebp - 0x10d9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret