Function at 0x4067ee
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes
Read file on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x41b1bc
call fcn.0040f3e4
sub esp, 0x9c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x64]
xor ebx, ebx
mov dword [ebp - 0x5c], 1
push ebx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x60], ebx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x64], 0xc
push eax
call esi
push ebx
test eax, eax
jne 0x40684d
mov ecx, 0x451c90
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
push str.create_pipe1_failed.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
jmp 0x406c6d
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call esi
test eax, eax
jne 0x406873
push ebx
mov ecx, 0x451c90
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
push str.create_pipe2_failed.
jmp 0x40683e
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push edi
push ebx
push 1
push dword [ebp - 0x18]
call esi
push ebx
push 1
push dword [ebp - 0x30]
call esi
push 0x10
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0xa8], 0x44
mov word [ebp - 0x78], ax
mov ecx, 0x451c64
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x7c], 0x101
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
mov ecx, dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
push esi
push ebx
push 0x20
push 1
push ebx
push ebx
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
call ebx
mov edi, dword [ebp + 8]
test eax, eax
jne 0x406967
push edi
call fcn.00407953
pop ecx
test eax, eax
je 0x406944
mov ecx, 0x451c64
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
mov ecx, dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
push esi
xor ecx, ecx
push ecx
push 0x20
push 1
push ecx
push ecx
push eax
push ecx
call ebx
test eax, eax
jne 0x406967
push 0
mov ecx, 0x451c90
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
push str.can_not_create_downloading.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
jmp 0x406c6c
push dword [ebp - 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push str.e.dat
lea eax, [ebp - 0x40]
push 0x451b40
push eax
call fcn.00401b32
add esp, 0xc
xor esi, esi
lea ecx, [ebp - 0x40]
push 0x41ea50
mov dword [ebp - 4], esi
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
imul ecx, dword [edi + 4], 0x1070
push 4
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], esi
add ecx, 0x42dba8
push ecx
mov dword [ebp - 0x2c], ecx
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x48]
imul esi, dword [edi + 4], 0x1070
push str.OurUdl_
push 0x42db94
push eax
add esi, 0x42eba8
call fcn.00401b32
push str.youtube_dl.exe___get_title
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
call fcn.00401b32
push esi
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call fcn.00401ab6
add esp, 0x38
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405ae9
pop ecx
pop ecx
imul ecx, dword [edi + 4], 0x1070
mov esi, 0x42ebac
push eax
mov byte [ebp - 4], 6
add ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
imul ecx, dword [edi + 4], 0x1070
add ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
xor esi, esi
mov byte [ebp - 4], 7
push esi
push str.error
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
cmp eax, 0xffffffff
je 0x406aa7
imul ecx, dword [edi + 4], 0x1070
lea eax, [ecx + 0x42eba8]
push eax
lea ecx, [ecx + 0x42ebac]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
imul ecx, dword [edi + 4], 0x1070
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0x42dba4], eax
push dword [edi + 4]
push esi
push 0x4a3
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
push 0xfff
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c19
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x406afe
push eax
push 1
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x406bc1
imul eax, dword [edi + 4], 0x1070
cmp dword [eax + 0x42db9c], 0
jne 0x406be5
push str.has_already_been_downloaded
push esi
mov byte [ecx + esi], 0
call fcn.00408131
pop ecx
pop ecx
test eax, eax
jne 0x406bdd
push str.__of
push esi
call fcn.00408131
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x406ba4
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov esi, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [ebp - 0x10], eax
sub ecx, esi
cmp ecx, 0x258
jbe 0x406b82
push dword [edi + 4]
lea ecx, [ebx - 5]
push ecx
push 0x4a2
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x10]
lea eax, [ebx + 5]
push str.__of
push eax
call fcn.00408131
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x406b56
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x2c]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xfff
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ae7
mov esi, dword [ebp - 0x14]
cmp esi, 1
jne 0x406c14
push dword [edi + 4]
push 0
push 0x4a2
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x406c19
xor esi, esi
inc esi
mov dword [ebp - 0x14], esi
jmp 0x406bc9
push dword [ebp - 0x20]
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push 0
mov ecx, 0x451c90
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
push str.canceled_by_user.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or esi, 0xffffffff
jmp 0x406c21
cmp esi, 0xffffffff
je 0x406c21
push dword [ebp - 0x20]
call ebx
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x30]
call ebx
push dword [ebp - 0x18]
call ebx
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x58]
call ebx
push dword [ebp - 0x54]
call ebx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x406c4f
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret