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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41443d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x41b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd0], esi
push 0x40
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xd0], esi
push 0
push eax
mov dword [ebp - 0xc8], 0x44
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
add esp, 0xc
cmp eax, 3
jb 0x40a72b
cmp dword [edi + 0x14], 0xf
jbe 0x40a3ff
mov edi, dword [edi]
push ecx
push edi
push 3
push 0x415b0c
push ecx
push dword [ebp - 0xd0]
lea ecx, [ebp - 0x3c]
call fcn.00403360
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x6c], 0xc
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x68], 0
push eax
mov dword [ebp - 0x64], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
test eax, eax
jne 0x40a46a
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0x415b10
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.004030b0
jmp 0x40a6d5
push 1
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40a4a0
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x415b10
mov dword [esi + 0x14], 0
call fcn.004030b0
jmp 0x40a6d5
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov edi, eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xcc], eax
call esi
push 2
push 1
push 0
lea ecx, [ebp - 0x60]
push ecx
push edi
push dword [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40a4d9
mov esi, dword [ebp - 0xd4]
jmp 0x40a479
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x28], 0xf
push ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x60]
push ecx
push 0
push 0
push 0x8000000
push 1
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x3c]
cmova eax, dword [ebp - 0x3c]
push 0
push 0
push eax
push str.C:WindowsSystem32cmd.exe
mov dword [ebp - 0x9c], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
test eax, eax
jne 0x40a545
call esi
push dword [ebp - 0x60]
call esi
mov esi, dword [ebp - 0xd4]
jmp 0x40a479
call esi
push dword [ebp - 0x60]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
push 0x1023
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0041211b
add esp, 4
test eax, eax
je 0x40a725
lea edi, [eax + 0x23]
and edi, 0xffffffe0
push 0x1000
push 0
push edi
lea esi, [edi + 0x1000]
mov dword [ebp - 0xcc], edi
mov dword [edi - 4], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0xf
xor esi, esi
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x54], 0
push esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1000
push edi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a66c
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x40a666
mov ecx, dword [ebp - 0x40]
mov eax, ecx
sub eax, esi
push edi
push dword [ebp - 0xcc]
cmp edi, eax
ja 0x40a62b
lea eax, [edi + esi]
cmp ecx, 0xf
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
cmova eax, dword [ebp - 0x54]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40a641
mov byte [ebp - 0xd0], 0
lea ecx, [ebp - 0x54]
push dword [ebp - 0xd0]
push edi
call fcn.00403190
mov edi, dword [ebp - 0xcc]
lea eax, [ebp - 0x24]
push 0
push eax
mov eax, dword [ebp - 0x18]
sub eax, edi
push eax
push edi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a66c
mov esi, dword [ebp - 0x44]
jmp 0x40a5f1
mov edi, dword [ebp - 0xcc]
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x78]
call esi
mov esi, dword [ebp - 0xd4]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x18]
sub ecx, edi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [esi + 0x10], xmm0
cmp ecx, 0x1000
jb 0x40a6cb
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x40a725
mov edi, edx
push ecx
push edi
call fcn.00412260
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xf
jbe 0x40a705
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a6fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a725
push ecx
push edx
call fcn.00412260
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041210d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.004012b0
int3