Function at 0x140012990
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r12, r9
mov rbx, r8
mov r15, rdx
mov r13, rcx
mov rdi, qword [rbp + 0x140]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x50], 0x68
xor eax, eax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
xor r14d, r14d
mov dword [rsp + 0x50], r14d
cmp qword [r15 + 0x18], 8
jb 0x140012a10
mov rcx, qword [r15]
jmp 0x140012a13
mov rcx, r15
lea rdx, [rsp + 0x50]
call fcn.140003310
test eax, eax
je 0x140012cde
cmp dword [rsp + 0x50], r14d
je 0x140012cde
mov r8, r15
lea rcx, [rbp - 8]
call fcn.14001b130
nop
lea r8, [0x14002bccc]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140010540
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14001b2a0
nop
lea rcx, [rbp - 0x28]
call fcn.140005a30
nop
lea rcx, [rbp - 8]
call fcn.140005a30
mov esi, dword [rbp + 0x148]
test esi, esi
jne 0x140012ac9
mov dword [rbp + 0x8c], 1
mov word [rbp + 0x90], r14w
mov ebx, dword [r13 + 0x5c]
call fcn.140012200
lea r9, [rbp + 0x50]
mov r8, rdi
lea rdx, [rbp + 0x30]
test al, al
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
je 0x140012abe
mov ecx, ebx
call fcn.140012860
movzx r14d, al
jmp 0x140012b23
call fcn.1400126c0
movzx r14d, al
jmp 0x140012b23
cmp qword [rdi + 0x18], 8
jb 0x140012ad5
mov rax, qword [rdi]
jmp 0x140012ad8
mov rax, rdi
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne r14b
test r14b, r14b
je 0x140012ccf
mov rax, qword [r13 + 0x40]
lea rcx, [rbp + 0x18]
cmp rcx, rax
jae 0x140012b7c
mov rcx, qword [r13 + 0x38]
lea rdx, [rbp + 0x18]
cmp rcx, rdx
ja 0x140012b7c
lea rsi, [rbp + 0x18]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [r13 + 0x48]
jne 0x140012b60
lea rcx, [r13 + 0x38]
call fcn.140016aa0
mov rcx, qword [r13 + 0x40]
mov rax, qword [r13 + 0x38]
test rcx, rcx
je 0x140012b74
mov rax, qword [rax + rsi*8]
mov qword [rcx], rax
mov esi, dword [rbp + 0x148]
jmp 0x140012b9b
cmp rax, qword [r13 + 0x48]
jne 0x140012b8b
lea rcx, [r13 + 0x38]
call fcn.140016aa0
mov rcx, qword [r13 + 0x40]
test rcx, rcx
je 0x140012b9b
mov rax, qword [rbp + 0x18]
mov qword [rcx], rax
add qword [r13 + 0x40], 8
cmp qword [r12 + 0x10], 0
je 0x140012ccf
mov qword [rsp + 0x78], 7
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.14000ca10
nop
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.14000ca10
nop
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.14000ca10
mov eax, dword [r13 + 0x5c]
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x3c], esi
mov r8, qword [r13 + 0x28]
lea rax, [rsp + 0x60]
cmp rax, r8
jae 0x140012c8b
mov rax, qword [r13 + 0x20]
lea rcx, [rsp + 0x60]
cmp rax, rcx
ja 0x140012c8b
lea rcx, [rsp + 0x60]
sub rcx, rax
movabs rax, 0x4ec4ec4ec4ec4ec5
imul rcx
mov rdi, rdx
sar rdi, 5
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp r8, qword [r13 + 0x30]
jne 0x140012c78
lea rcx, [r13 + 0x20]
call fcn.140016bb0
imul rdx, rdi, 0x68
add rdx, qword [r13 + 0x20]
mov rcx, qword [r13 + 0x28]
test rcx, rcx
je 0x140012cad
jmp 0x140012ca8
cmp r8, qword [r13 + 0x30]
jne 0x140012c9a
lea rcx, [r13 + 0x20]
call fcn.140016bb0
mov rcx, qword [r13 + 0x28]
test rcx, rcx
je 0x140012cad
lea rdx, [rsp + 0x60]
call fcn.140021ca0
add qword [r13 + 0x28], 0x68
lea rcx, [rbp - 0x60]
call fcn.140005a30
lea rcx, [rbp - 0x80]
call fcn.140005a30
lea rcx, [rsp + 0x60]
call fcn.140005a30
nop
lea rcx, [rbp + 0x30]
call fcn.140005a30
movzx eax, r14b
jmp 0x140012ce0
xor al, al
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140024b60
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret