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 [0x140005018]
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 + 0x58], eax
mov rbx, rdx
mov dword [rsp + 0x54], 0xffffffff
mov r12d, eax
mov dword [rsp + 0x60], eax
mov r15d, eax
mov r13d, eax
mov esi, eax
sub edi, 1
je 0x14000123e
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
add rbx, 8
movzx eax, byte [rdx]
sub al, 0x2d
test al, 0xfd
jne 0x1400012c9
movsx ecx, byte [rdx + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add eax, 0xffffffc1
cmp eax, 0x38
ja case.0x140001198.64
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0x1960]
mov ecx, dword [r8 + rax*4 + 0x1924]
add rcx, r8
jmp rcx
or r15d, 2
jmp 0x140001235
or r12d, 2
jmp 0x140001235
or r15d, 4
jmp 0x140001235
or r12d, 4
jmp 0x140001235
or r15d, 1
jmp 0x140001235
or r12d, 1
jmp 0x140001235
or r13d, 2
jmp 0x140001235
or dword [rsp + 0x58], 2
jmp 0x140001235
or r13d, 1
jmp 0x140001235
or dword [rsp + 0x58], 1
jmp 0x140001235
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001214
cmp byte [rcx], 0x2d
je 0x140001214
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
mov ecx, edx
sar ecx, 6
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov dword [rsp + 0x54], ecx
jmp 0x140001233
mov dword [rsp + 0x54], esi
jmp 0x140001235
mov dword [0x140005050], 1
jmp 0x140001235
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 0x140001317
lea rcx, [rsp + 0x5c]
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 0x1400012e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetUserObjectInfoformation_hWinSta__failed___d__n
jmp 0x140001324
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
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 0x14000132b
lea rdx, [rbp + 0x20]
lea rcx, str.WindowStation_Name__s_is_a_service_n
call fcn.1400019a0
mov esi, 1
mov dword [rsp + 0x60], esi
jmp 0x14000132b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetProcessWindowStation___failed___d__n
mov edx, eax
call fcn.1400019a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400013a1
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x68]
mov dword [rsp + 0x28], esi
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 0x140001387
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x68]
jmp 0x1400013b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, str.DupHandle_stdin___x___failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x1400013b5
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 r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001423
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x68]
mov dword [rsp + 0x28], esi
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 0x140001409
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x68]
jmp 0x140001437
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
lea rcx, str.DupHandle_stdout___x___failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x140001437
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 rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400014a9
mov eax, dword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x30], 2
mov r8, rbx
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000148f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
jmp 0x1400014bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
lea rcx, str.DupHandle_stderr___x___failed___d__n
mov r8d, eax
call fcn.1400019a0
jmp 0x1400014bd
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 0x1400014db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FreeConsole___failed___d__n
call fcn.1400019a0
cmp dword [rsp + 0x60], 0
je 0x14000160d
mov r15d, 1
mov dword [rsp + 0x54], r15d
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r8d, 0x104
lea rdx, [rbp + 0x420]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov qword [rbp + 0x10], rsi
test eax, eax
lea rcx, [rbp + 0x420]
mov edx, 0
lea rax, str.WinSta0Default
cmovne rcx, rdx
xor r9d, r9d
movups xmmword [rbp], xmm0
xor r8d, r8d
mov qword [rbp], rdi
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov rdx, rbx
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x28], 0x14
movups xmmword [rbp - 0x20], xmm0
mov dword [rsp + 0x20], r15d
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x50], 0x68
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x14], 0x101
mov word [rbp - 0x10], r15w
mov qword [rbp + 8], r14
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001605
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]
mov 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, r15d
jmp 0x1400018f1
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x14000162b
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 0x140001656
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
test eax, eax
jne 0x140001656
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetConsoleTitle___failed___d__n
call fcn.1400019a0
xor eax, eax
lea rcx, str.CONOUT_
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rax + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400016ea
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x1400016b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetConsoleMode_CONOUT__failed___d__n
jmp 0x1400016f7
mov edx, dword [rsp + 0x50]
not r13d
or edx, dword [rsp + 0x58]
mov rcx, rbx
and edx, r13d
mov dword [rsp + 0x50], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x1400016fe
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 0x1400016fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFile_CONOUT___failed___d__n
mov edx, eax
call fcn.1400019a0
xor r13d, r13d
lea rcx, str.CONIN_
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], r13d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r13 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140001793
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x14000175a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetConsoleMode_CONIN__failed___d__n
jmp 0x1400017a0
mov edx, dword [rsp + 0x50]
not r15d
or edx, r12d
mov rcx, rsi
and edx, r15d
mov dword [rsp + 0x50], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x1400017a7
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 0x1400017a7
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], rsi
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x68]
lea r8, [0x140001010]
mov dword [rsp + 0x20], r13d
xor edx, edx
mov qword [rbp - 0x60], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x20], r13
mov r8d, 0x400
lea rdx, [rbp + 0x20]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001846
nop word [rax + rax]
mov r8d, dword [rsp + 0x5c]
test r8d, r8d
je 0x140001846
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x20], r13
lea rdx, [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001846
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x20], r13
mov r8d, 0x400
lea rdx, [rbp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001800
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 + rax]
cmp byte [rcx + 1], r13b
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, rsi
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