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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rbx, rdx
mov rsi, rcx
mov edi, 1
mov dword [rbp - 0x38], edi
xor r15d, r15d
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x48], 0x18
xor r9d, r9d
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r9d, r9d
test eax, eax
jne 0x1401ce8a4
lea rdx, str.create_pipe1_failed.
xor ecx, ecx
mov r8, qword [0x1402ab660]
call qword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x1401cedea
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1401ce8c8
xor r9d, r9d
lea rdx, str.create_pipe2_failed.
jmp 0x1401ce88d
xor r8d, r8d
mov edx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor r8d, r8d
mov edx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 0x101
mov word [rbp + 0x10], r15w
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1402ab620]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov r14d, 0x20
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1401ce9da
mov rcx, rsi
call fcn.1401cf040
xor ecx, ecx
test eax, eax
jne 0x1401ce98c
xor r9d, r9d
lea rdx, str.can_not_create_downloading.
jmp 0x1401ce88f
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1402ab620]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1401ce9da
xor r9d, r9d
lea rdx, str.can_not_create_downloading.
jmp 0x1401ce88d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.e.dat
lea rdx, [0x1402ab448]
lea rcx, [rsp + 0x78]
call fcn.140002d2c
nop
lea rdx, [0x14023cd14]
mov rcx, qword [rsp + 0x78]
call fcn.1401ac480
mov r13, rax
mov r14d, r15d
movsxd rcx, dword [rsi + 8]
imul r12, rcx, 0x10b0
lea rax, [0x140286c44]
add r12, rax
xor eax, eax
mov qword [r12], rax
mov dword [rbp + 0x98], r15d
lea r8, str.OurUdl_
lea rdx, [0x1402ab440]
lea rcx, [rbp - 0x60]
call fcn.140002d2c
nop
lea r8, str.youtube_dl.exe___get_title
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140002d2c
nop
movsxd rcx, dword [rsi + 8]
imul r8, rcx, 0x10b0
lea rcx, [0x140287c48]
add r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000287c
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401ceaa8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401ceac6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.1401cee0c
nop
movsxd rcx, dword [rsi + 8]
imul rcx, rcx, 0x10b0
lea rbx, [0x140287c50]
add rcx, rbx
mov rdx, rax
call fcn.140003834
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401ceb11
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movsxd rax, dword [rsi + 8]
imul rcx, rax, 0x10b0
add rcx, rbx
call fcn.140004188
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.140003958
lea rbx, [rax + 0x18]
mov qword [rbp - 0x50], rbx
cmp dword [rbx - 0x10], r15d
jl 0x1401ceb82
lea rdx, str.error
mov rcx, rbx
call fcn.1401af518
test rax, rax
je 0x1401ceb82
sub eax, ebx
cmp eax, edi
je 0x1401ceb82
movsxd rax, dword [rsi + 8]
imul rcx, rax, 0x10b0
lea rax, [0x140286c30]
lea rdx, [rax + 0x1018]
add rdx, rcx
add rax, 0x1020
add rcx, rax
call fcn.140003834
movsxd rax, dword [rsi + 8]
imul rcx, rax, 0x10b0
mov eax, dword [rbp - 0x70]
lea rdx, [0x140286c30]
mov dword [rcx + rdx + 0x10], eax
movsxd r9, dword [rsi + 8]
xor r8d, r8d
mov edx, 0x4a3
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_PostMessageA]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x90]
mov r8d, 0xfff
mov rdx, r12
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401ced3c
test r13, r13
je 0x1401cebf4
mov edx, dword [rbp + 0x90]
mov r9, r13
mov r8d, 1
mov rcx, r12
call fcn.1401ae254
mov edx, dword [rbp + 0x90]
test edx, edx
je 0x1401cecdf
movsxd rax, dword [rsi + 8]
imul rcx, rax, 0x10b0
lea rax, [0x140286c30]
cmp dword [rcx + rax + 8], r15d
jne 0x1401ced04
mov byte [rdx + r12], r15b
lea rdx, str.has_already_been_downloaded
mov rcx, r12
call fcn.1401a5194
test rax, rax
jne 0x1401cecfc
lea rdx, str.__of
mov rcx, r12
call fcn.1401a5194
mov r15, rax
test rax, rax
je 0x1401cecb4
mov r14d, 1
mov ebx, dword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 0x98], eax
mov ecx, eax
sub ecx, ebx
cmp ecx, 0x258
jbe 0x1401cec92
movsxd r9, dword [rsi + 8]
lea r8, [r15 - 5]
mov edx, 0x4a2
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [rbp + 0x98]
lea rcx, [r15 + 5]
lea rdx, str.__of
call fcn.1401a5194
mov r15, rax
test rax, rax
jne 0x1401cec5e
mov dword [rbp + 0x98], ebx
mov rbx, qword [rbp - 0x50]
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x90]
mov r8d, 0xfff
mov rdx, r12
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401cebd8
cmp r14d, 1
jne 0x1401ced37
movsxd r9, dword [rsi + 8]
xor r8d, r8d
mov edx, 0x4a2
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1401ced3c
mov r14d, 1
jmp 0x1401cece5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
xor r9d, r9d
mov r8, qword [0x1402ab660]
lea rdx, str.canceled_by_user.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r14d, edi
jmp 0x1401ced47
cmp r14d, edi
je 0x1401ced47
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x1401ced8c
mov rcx, r13
call fcn.1401ad040
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401ceda7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401cedc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x1401cede7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret