Function at 0x1400077f0
Capabilities:
Create process on windows
Set environment variable

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rcx]
mov rbx, rdx
mov r14, rcx
cmp byte [rax + 0xd1], 0
je 0x140007827
xor sil, sil
jmp 0x140007863
movzx eax, byte [rcx + 0x20]
cmp byte [rcx + 0x21], al
sete dl
call fcn.140007c70
test al, al
je 0x140007b0b
movzx ecx, byte [r14 + 0x20]
xor sil, sil
test cl, cl
je 0x140007863
mov rdx, qword [r14 + 8]
nop
movzx eax, sil
cmp qword [rdx + rax*8], 0
je 0x140007863
inc sil
cmp sil, cl
jne 0x140007850
mov rax, qword [r14]
mov qword [rsp + 0x148], r12
xor r12d, r12d
cmp byte [rax + 0xd2], r12b
je 0x1400078e3
mov ecx, 2
call fcn.140010e64
mov rcx, rax
lea rdx, str._ls_...
mov r8, rbx
call fcn.1400038b0
mov rcx, qword [r14 + 0x38]
lea r9, [rbp - 0x20]
mov r8d, 0xa
mov dword [rbp - 0x20], r12d
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x140007b03
cmp dword [rbp - 0x20], r12d
je 0x140007b03
movzx eax, word [rsp + 0x50]
mov ecx, 0xffdf
sub ax, 0x59
test cx, ax
jne 0x140007b03
jmp 0x140007908
cmp byte [rax + 0xd5], r12b
je 0x140007908
mov ecx, 2
call fcn.140010e64
mov rcx, rax
lea rdx, str._ls_n
mov r8, rbx
call fcn.1400038b0
movzx r8d, sil
lea rdx, [0x14002f1c8]
lea rcx, [rbp - 0x1c]
mov qword [rsp + 0x140], rdi
call fcn.140007f50
mov rcx, qword [r14]
cmp qword [rcx + 0x88], r12
je 0x1400079a3
add rcx, 0x78
cmp qword [rcx + 0x18], 7
jbe 0x14000793e
mov rcx, qword [rcx]
lea rdx, [rbp - 0x1c]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1400079a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [r14]
mov edi, eax
add rbx, 0x78
cmp qword [rbx + 0x18], 7
jbe 0x140007965
mov rbx, qword [rbx]
mov ecx, 2
call fcn.140010e64
mov r9, rbx
mov dword [rsp + 0x20], edi
lea r8, str.wargs
mov rcx, rax
lea rdx, str._hs:_error_:_SetEnvironmentVariableW__ls__error__u._n
call fcn.1400038b0
cmp dword [r14 + 0x24], r12d
jne 0x140007afb
mov dword [r14 + 0x24], 1
jmp 0x140007afb
mov rax, qword [r14 + 0x40]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov ecx, 0xfffffff5
mov dword [rbp - 0x54], 0x100
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x100], r15
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r15, qword [r14]
test eax, eax
jne 0x140007a9c
cmp qword [r15 + 0x18], 7
jbe 0x140007a58
mov r15, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140010e64
mov r9d, ebx
mov qword [rsp + 0x20], r15
lea r8, str.wargs
mov rcx, rax
lea rdx, str._hs:_error_:_CreateProcessW_error__u_starting__ls_n
call fcn.1400038b0
mov eax, dword [r14 + 0x24]
test eax, eax
je 0x140007a92
jle 0x140007af3
mov dword [r14 + 0x24], 0xffffff81
jmp 0x140007af3
mov rdx, qword [rsp + 0x50]
mov rbx, rdx
mov rdi, qword [rsp + 0x58]
cmp byte [r15 + 0xd1], r12b
jne 0x140007ad7
mov rax, qword [r14 + 8]
mov rbx, r12
movzx ecx, sil
mov r8, qword [rax + rcx*8]
mov qword [rax + rcx*8], rdx
test r8, r8
je 0x140007ad3
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc byte [r14 + 0x21]
test rdi, rdi
je 0x140007ae5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140007af3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000b310
add rsp, 0x108
pop r14
pop rsi
pop rbx
pop rbp
ret