Function at 0x140035a20
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r13d, r9d
mov r15, r8
mov r12, rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov r14, qword [rdx]
cmp dword [r14 - 0x10], 0
jle 0x140035edb
mov rax, qword [r8]
cmp dword [rax - 0x10], 0
jle 0x140035edb
call fcn.140015220
mov rdi, rax
test rax, rax
je 0x140035f62
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000dba0]
mov rcx, rdi
call rbx
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbx - 0x18]
mov rdi, qword [rcx]
xor r14d, r14d
cmp dword [rcx + 8], r14d
je 0x140035b01
cmp dword [rcx + 0x10], r14d
jge 0x140035ade
cmp dword [rbx - 0xc], r14d
jl 0x140035f6d
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140035b01
call fcn.14001a8a0
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000dba0]
mov rcx, rdi
call rbx
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov esi, 0xffffffff
test r13d, r13d
je 0x140035ba0
lea r8, str._Encoding
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.1400262f0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140035b6c
cmp dword [rdi + 0x10], 0
jl 0x140035b5d
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140035b5d
call fcn.14001e050
mov rbx, rax
mov rcx, rdi
call fcn.14001a8a0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140035b6c
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14001b050
nop
mov r14, qword [rsp + 0x58]
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140035b9b
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
xor r14d, r14d
jmp 0x140035be7
mov rdx, qword [r15]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140035bec
cmp dword [rdi + 0x10], 0
jl 0x140035bd9
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140035bd9
call fcn.14001e050
mov rbx, rax
mov rcx, rdi
call fcn.14001a8a0
add rbx, 0x18
mov qword [rsp + 0x50], rbx
jmp 0x140035bec
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14001b050
mov rbx, qword [rsp + 0x50]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.140054000
mov dword [rbp - 0x60], 0x68
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov edx, dword [rbx - 0x10]
test edx, edx
js 0x140035f78
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140035c3c
lea rcx, [rsp + 0x50]
call fcn.1400184a0
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140035d19
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea r14, [rbx - 0x18]
mov eax, esi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x140035cb5
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
mov rdx, r14
mov rcx, rdi
call rbx
nop
mov r14, qword [r12]
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140035ce4
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x140035d0f
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, 1
jmp 0x140035f3b
mov eax, dword [rbx - 0x10]
cmp eax, 3
jle 0x140035e2a
test eax, eax
js 0x140035f83
cmp word [rbx], 0x20
jne 0x140035e2a
cmp eax, 2
jl 0x140035f8e
cmp word [rbx + 4], 0x72
jne 0x140035e2a
cmp eax, 3
jl 0x140035f99
cmp word [rbx + 6], 0x75
jne 0x140035e2a
mov dword [rbp - 0x70], r14d
mov edx, 0x7a120
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13d, dword [rbp - 0x70]
lea r14, [rbx - 0x18]
mov eax, esi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x140035dc8
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
mov rdx, r14
mov rcx, rdi
call rbx
nop
mov r14, qword [r12]
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140035df7
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x140035e22
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, r13d
jmp 0x140035f3b
mov edx, 0x7a120
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea r14, [rbx - 0x18]
mov eax, esi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x140035e7d
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
mov rdx, r14
mov rcx, rdi
call rbx
nop
mov r14, qword [r12]
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140035eac
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x140035ed7
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
xor eax, eax
jmp 0x140035f3b
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140035f0b
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
nop
mov r14, qword [r15]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x140035f36
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000dba0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov eax, 0xb
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140012af0
nop
mov ecx, 0x80070057
call fcn.140012af0
nop
mov ecx, 0x80070057
call fcn.140012af0
int3
mov ecx, 0x80070057
call fcn.140012af0
int3
mov ecx, 0x80070057
call fcn.140012af0
int3
mov ecx, 0x80070057
call fcn.140012af0
int3