Function at 0x1801651b0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r14, r9
mov r15, rdx
mov rsi, rcx
xor r12d, r12d
test r9, r9
je 0x180165201
mov qword [r9], r12
cmp qword [rcx + 0x10], r12
jne 0x18016520e
xor al, al
jmp 0x1801658c5
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
lea rdx, [rbp]
call fcn.180158700
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.180156f20
nop
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rcx, qword [rbp + 0x60]
lea rdx, [0x1803ccb58]
call fcn.180154520
mov r13d, 1
test al, al
je 0x1801655d5
xor edx, edx
lea r8d, [r13 + 0x67]
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rbp + 0x80], 0x68
mov word [rbp + 0xc0], r13w
mov dword [rbp + 0xbc], 0x81
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
mov rbx, qword [rbp - 0x10]
mov edx, 0x104
sub rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.18000ba50
mov qword [rbp - 0x10], rbx
mov r8d, r13d
lea rdx, [0x1803cc3bc]
lea rcx, [rbp - 0x20]
call fcn.180004ea0
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x1801652f6
mov r9, qword [rsi]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rbp - 0x10]
mov r8, qword [rbp - 8]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180165339
lea rdi, [rcx + rdx]
mov qword [rbp - 0x10], rdi
lea rbx, [rbp - 0x20]
cmp r8, 8
cmovae rbx, qword [rbp - 0x20]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x18016534a
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.180009e30
mov rcx, qword [rbp - 0x10]
mov r8, qword [rbp - 8]
mov rax, r8
sub rax, rcx
cmp rax, 1
jb 0x180165390
lea rdi, [rcx + 1]
mov qword [rbp - 0x10], rdi
lea rbx, [rbp - 0x20]
cmp r8, 8
cmovae rbx, qword [rbp - 0x20]
lea rcx, [rbx + rcx*2]
mov r8d, 2
lea rdx, [0x1803cc3bc]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x1801653ab
mov qword [rsp + 0x20], r13
lea r9, [0x1803cc3bc]
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.180009e30
cmp qword [r15 + 0x10], 0
je 0x180165478
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1801653fc
lea rdi, [rcx + 1]
mov qword [rbp - 0x10], rdi
lea rbx, [rbp - 0x20]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x20]
lea rcx, [rbx + rcx*2]
mov r8d, 2
lea rdx, [0x1803c3bd8]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180165417
mov qword [rsp + 0x20], r13
lea r9, [0x1803c3bd8]
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.180009e30
mov r9, r15
cmp qword [r15 + 0x18], 8
jb 0x180165424
mov r9, qword [r15]
mov rdx, qword [r15 + 0x10]
mov rcx, qword [rbp - 0x10]
mov r8, qword [rbp - 8]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180165467
lea rdi, [rcx + rdx]
mov qword [rbp - 0x10], rdi
lea rbx, [rbp - 0x20]
cmp r8, 8
cmovae rbx, qword [rbp - 0x20]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180165478
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.180009e30
cmp qword [rbp + 0x10], 0
jne 0x180165484
mov rax, r12
jmp 0x180165492
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1801654ad
mov rcx, qword [rsi]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x48], r8
lea r8, [rbp + 0x80]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x30
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180165581
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180165503
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r12
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x180165511
xor bl, bl
jmp 0x180165528
test r14, r14
je 0x18016551b
mov qword [r14], rcx
jmp 0x180165526
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r12
mov bl, 1
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x18016556b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180165566
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180165566
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
jmp 0x18016581a
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1801655c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801655bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801655bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
mov r8d, 4
lea rdx, str.open
lea rcx, [rbp + 0x20]
call fcn.180004ea0
nop
mov rdx, r15
lea rcx, [rbp + 0x40]
call fcn.180004ad0
nop
xor eax, eax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], eax
mov dword [rsp + 0x70], 0x70
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x74], 0x100540
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rax, qword [rbp + 0x20]
mov qword [rbp - 0x80], rax
cmp qword [rsi + 0x18], 8
jb 0x180165664
mov rsi, qword [rsi]
mov qword [rbp - 0x78], rsi
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rax, qword [rbp + 0x40]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x60], r13d
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
mov r8d, 0xb
lea rdx, [0x1803c5c38]
lea rcx, [rbp - 0x20]
call fcn.180004ea0
nop
call fcn.180178b40
mov rcx, rax
lea rdx, [rbp - 0x20]
call fcn.180178c20
mov rbx, rax
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x180165717
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180165712
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180165712
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
test rbx, rbx
je 0x180165770
lea rdx, [0x1803cca68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180165770
lea rcx, [rsp + 0x70]
call rax
test eax, eax
je 0x180165770
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180165770
test r14, r14
je 0x180165762
mov qword [r14], rcx
mov bl, 1
jmp 0x180165772
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x28], r12
mov bl, 1
jmp 0x180165772
xor bl, bl
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x1801657b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801657b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801657b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x180165809
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180165804
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180165804
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x18016585d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180165858
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180165858
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r12w
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1801658b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801658ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801658ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
movzx eax, bl
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret