Function at 0x140001860
Capabilities:
Create process on windows

Disassembly:
push r12
mov eax, 0x100f0
push rbp
push rdi
push rsi
push rbx
call fcn.1400028d0
sub rsp, rax
xor eax, eax
mov ecx, 0xc
pxor xmm0, xmm0
lea rdi, [rsp + 0x88]
mov rbp, r8
mov qword [rsp + 0x84], 0
mov qword [rsp + 0xe0], 0
rep stosq qword [rdi], rax
mov rdi, qword [sym.imp.msvcrt.dll__wpgmptr]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0xbc], 1
mov rax, qword [rdi]
mov rcx, qword [rax]
movzx eax, word [rcx]
test ax, ax
je 0x140001780
xor edx, edx
xor ebx, ebx
lea rsi, [0x14000403a]
lea r8, [0x14000403c]
jmp 0x1400015ec
cmp ax, 0x5c
cmove ebx, edx
add rdx, 1
movzx eax, word [rcx + rdx*2]
test ax, ax
je 0x140001602
cmp ax, 0x20
jne 0x1400015d8
add rdx, 1
mov rsi, r8
movzx eax, word [rcx + rdx*2]
test ax, ax
jne 0x1400015ec
movsxd rdx, ebx
cmp rdx, 0x7ff4
ja 0x140001768
call fcn.140001450
mov qword [rsp + 0x30], rsi
mov rax, qword [rdi]
lea r12, [rsp + 0xf0]
mov r9, rsi
lea r8, [0x140004040]
mov edx, 0x8000
mov rcx, r12
mov rax, qword [rax]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rax
call sub.msvcrt.dll_swprintf_s
test eax, eax
js 0x140001768
cmp word [rbp], 0
jne 0x140001740
mov rbx, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff6
call rbx
mov ecx, 0xfffffff5
mov qword [rsp + 0xd0], rax
call rbx
mov ecx, 0xfffffff4
mov qword [rsp + 0xd8], rax
call rbx
mov rdx, r12
mov dword [rsp + 0x28], 0x8000410
xor r9d, r9d
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
mov eax, 0x81
test edx, edx
je 0x14000176d
mov rcx, qword [rsp + 0x60]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140001716
mov dword [rsp + 0x5c], 0x82
mov rcx, qword [rsp + 0x60]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x68]
call rbx
mov eax, dword [rsp + 0x5c]
add rsp, 0x100f0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cdqe
mov edx, 0x8000
mov r9, rbp
sub rdx, rax
lea rcx, [r12 + rax*2]
lea r8, str.__ls
call sub.msvcrt.dll_swprintf_s
test eax, eax
jns 0x14000165d
nop dword [rax]
mov eax, 0x7f
add rsp, 0x100f0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor ebx, ebx
lea rsi, [0x14000403a]
xor edx, edx
jmp 0x140001612
push rdi
push rbx
sub rsp, 0x98
call fcn.140002910
xor edx, edx
mov rbx, qword [rax]
test rbx, rbx
jne 0x140001893
jmp 0x140001910
test ax, ax
je 0x1400018b8
and edx, 1
je 0x1400018b8
mov edx, 1
add rbx, 2
movzx eax, word [rbx]
cmp ax, 0x20
jbe 0x140001880
mov ecx, edx
xor ecx, 1
cmp ax, 0x22
cmove edx, ecx
jmp 0x14000188f
movzx eax, word [rbx + 2]
add rbx, 2
sub eax, 1
cmp ax, 0x1f
jbe 0x1400018b0
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x1400018ef
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x140004400]
mov r8, rbx
xor edx, edx
add rsp, 0x98
pop rbx
pop rdi
jmp 0x140001540
lea rbx, [0x140004080]
jmp 0x1400018c1