Function at 0x1400010e0
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create process on windows
Create thread
Read file on windows
Resume thread
Set console window title
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x540]
sub rsp, 0x640
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov r14, qword [rdx]
xor eax, eax
mov edi, ecx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], eax
mov rbx, rdx
mov dword [rsp + 0x64], eax
mov r13d, eax
mov dword [rsp + 0x54], 0xffffffff
mov r12d, eax
mov dword [rsp + 0x5c], eax
mov r15d, eax
mov esi, eax
sub edi, 1
je 0x140001258
nop
mov rcx, qword [rbx + 8]
add rbx, 8
movzx eax, byte [rcx]
sub al, 0x2d
test al, 0xfd
jne 0x1400012e3
movsx ecx, byte [rcx + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add eax, 0xffffffc1
cmp eax, 0x38
ja case.0x140001196.64
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x1960]
mov ecx, dword [rdx + rax*4 + 0x1924]
add rcx, rdx
jmp rcx
or r12d, 2
jmp 0x14000124f
or r13d, 2
jmp 0x14000124f
or r12d, 4
jmp 0x14000124f
or r13d, 4
jmp 0x14000124f
or r12d, 1
jmp 0x14000124f
or r13d, 1
jmp 0x14000124f
or esi, 2
mov dword [rsp + 0x64], esi
jmp 0x14000124f
or r15d, 2
mov dword [rsp + 0x60], r15d
jmp 0x14000124f
or esi, 1
mov dword [rsp + 0x64], esi
jmp 0x14000124f
or r15d, 1
mov dword [rsp + 0x60], r15d
jmp 0x14000124f
mov rax, qword [rbx + 8]
test rax, rax
je 0x14000122a
cmp byte [rax], 0x2d
je 0x14000122a
mov rcx, rax
add rbx, 8
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x54], edx
jmp 0x14000124d
mov dword [rsp + 0x54], 0
jmp 0x14000124f
mov dword [0x140005050], 1
jmp 0x14000124f
mov rax, qword [rbx + 8]
add rbx, 8
mov qword [rsp + 0x70], rax
dec edi
sub edi, 1
jne 0x140001150
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001330
lea rcx, [rsp + 0x58]
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x20]
mov rcx, rax
mov edx, 2
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
jne 0x1400012fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetUserObjectInfoformation_hWinSta__failed___d__n
jmp 0x14000133d
mov rcx, qword [section..data]
mov rdx, r14
call fcn.140001a10
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rbx]
lea rcx, str.wintty_option__s_not_recognized__use____for_help._n_n
call fcn.140001a10
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, rcx
lea rcx, str.wintty_argument__s_not_understood__use____for_help._n_n
call fcn.140001a10
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8d, 8
lea rdx, str.Service_
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
jne 0x140001344
lea rdx, [rbp + 0x20]
lea rcx, str.WindowStation_Name__s_is_a_service_n
call fcn.1400019a0
mov edi, 1
jmp 0x140001348
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetProcessWindowStation___failed___d__n
mov edx, eax
call fcn.1400019a0
mov edi, dword [rsp + 0x5c]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400013be
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x68]
mov dword [rsp + 0x28], edi
mov r8, rbx
mov rdx, rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400013a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
jmp 0x1400013d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
lea rcx, str.DupHandle_stdin___x___failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x1400013d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetStdHandle_STD_INPUT_HANDLE__failed___d__n
call fcn.1400019a0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r15, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001440
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x68]
mov dword [rsp + 0x28], edi
mov r8, rbx
mov rdx, rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140001426
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x68]
jmp 0x140001454
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r15
lea rcx, str.DupHandle_stdout___x___failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x140001454
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetStdHandle_STD_OUTPUT_HANDLE__failed___d__n
call fcn.1400019a0
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400014c2
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x68]
mov dword [rsp + 0x28], edi
mov r8, rbx
mov rdx, rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400014a8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x68]
jmp 0x1400014d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
lea rcx, str.DupHandle_stderr___x___failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x1400014d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetStdHandle_STD_ERROR_HANDLE__failed___d__n
call fcn.1400019a0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test eax, eax
jne 0x1400014f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FreeConsole___failed___d__n
call fcn.1400019a0
test edi, edi
je 0x140001619
mov r13d, 1
mov dword [rsp + 0x54], r13d
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r8d, 0x104
lea rdx, [rbp + 0x420]
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rbx, [rbp + 0x420]
mov r12d, 0
test eax, eax
lea r8d, [r13 + 0x67]
lea rcx, [rbp - 0x50]
cmovne rbx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, str.WinSta0Default
mov dword [rbp - 0x50], 0x68
mov qword [rbp - 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov dword [rbp - 0x14], 0x101
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x50]
mov word [rbp - 0x10], r13w
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov qword [rsp + 0x38], r12
mov rcx, rbx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], r13d
mov qword [rbp], rsi
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r14
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001611
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x80]
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x54]
jmp 0x1400018f1
mov eax, r13d
jmp 0x1400018f1
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x140001637
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AllocConsole_Default__failed___d__n
call fcn.1400019a0
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140001662
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
test eax, eax
jne 0x140001662
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetConsoleTitle___failed___d__n
call fcn.1400019a0
xor r14d, r14d
lea rcx, str.CONOUT_
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400016fa
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x1400016be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetConsoleMode_CONOUT__failed___d__n
jmp 0x140001707
mov edx, dword [rsp + 0x50]
mov rcx, rbx
mov eax, dword [rsp + 0x64]
or edx, dword [rsp + 0x60]
not eax
and edx, eax
mov dword [rsp + 0x50], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x14000170e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x50]
lea rcx, str.SetConsoleMode_CONOUT__0x_x__failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x14000170e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFile_CONOUT___failed___d__n
mov edx, eax
call fcn.1400019a0
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, str.CONIN_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400017a0
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x140001767
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetConsoleMode_CONIN__failed___d__n
jmp 0x1400017ad
mov edx, dword [rsp + 0x50]
not r12d
or edx, r13d
mov rcx, rdi
and edx, r12d
mov dword [rsp + 0x50], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x1400017b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x50]
lea rcx, str.SetConsoleMode_CONIN__0x_x__failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x1400017b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFile_CONIN___failed___d__n
mov edx, eax
call fcn.1400019a0
lea rax, [rsp + 0x78]
mov qword [rbp - 0x68], rdi
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x68]
lea r8, [0x140001010]
mov dword [rsp + 0x20], r14d
xor edx, edx
mov qword [rbp - 0x60], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r14
mov r8d, 0x400
lea rdx, [rbp + 0x20]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000184a
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x14000184a
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r14
lea rdx, [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000184a
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r14
mov r8d, 0x400
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._EOF__from_stdin___d__n
call fcn.1400019a0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x400
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
test eax, eax
je 0x1400018c8
lea rcx, [rbp + 0x20]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x140001890
mov eax, dword [0x140003900]
movsd xmm0, qword [str.____Finished_]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, word [0x140003904]
mov word [rcx + 0xc], ax
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
test eax, eax
jne 0x1400018dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetConsoleTitle___failed___d__n
call fcn.1400019a0
mov edx, dword [rsp + 0x54]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor eax, eax
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.140001b70
lea r11, [rsp + 0x640]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret