Function at 0x140031480
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp + 0x60], rax
movzx r13d, r8b
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rdx
mov r15, qword [rbp + 0xd0]
mov r12, qword [rbp + 0xd8]
xor edi, edi
mov dword [rsp + 0x50], edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400314ea
mov rbx, qword [rcx]
call fcn.140032720
mov rcx, rax
mov rdx, rbx
call fcn.1400325d0
test al, al
jne 0x14003159d
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x14003153d
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140031538
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003158f
mov rcx, r8
call fcn.140025dd4
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140031588
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140031583
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031596
mov rcx, r8
call fcn.140025dd4
xor al, al
jmp 0x140031c79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
lea r8d, [rdx + 0x68]
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 dword [rbp - 0x44], 0x80
cmp qword [rsi + 0x10], rax
je 0x14003173e
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400315e2
mov rax, qword [rsi]
cmp word [rax], 0x20
je 0x14003173e
movdqa xmm0, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], di
mov dword [rsp + 0x50], 1
lea rcx, [0x14003e354]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rdx, qword [rsi + 0x10]
add rdx, rax
lea rcx, [rbp]
call fcn.140004090
lea rcx, [0x14003e354]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r9, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r8
sub rcx, r9
cmp rax, rcx
ja 0x140031674
lea rdi, [r9 + rax]
mov qword [rbp + 0x10], rdi
lea rbx, [rbp]
cmp r8, 8
cmovae rbx, qword [rbp]
lea r8, [rax + rax]
lea rcx, [rbx + r9*2]
lea rdx, [0x14003e354]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x14003168c
mov qword [rsp + 0x20], rax
lea r9, [0x14003e354]
mov rdx, rax
lea rcx, [rbp]
call fcn.140003410
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x140031699
mov r9, qword [rsi]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1400316de
lea rdi, [rcx + rdx]
mov qword [rbp + 0x10], rdi
lea rbx, [rbp]
cmp r8, 8
cmovae rbx, qword [rbp]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x1400316ec
mov qword [rsp + 0x20], rdx
lea rcx, [rbp]
call fcn.140003410
lea rdx, [rbp]
mov rcx, rsi
call fcn.140002bd4
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14003173c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031737
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031737
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
xor edi, edi
movdqa xmm0, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], di
mov dword [rsp + 0x50], 2
lea rcx, [0x14003d0ac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rdx, qword [r14 + 0x10]
add rdx, rax
lea rcx, [rbp]
call fcn.140004090
lea rcx, [0x14003d0ac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r8
sub rcx, rdx
cmp rax, rcx
ja 0x1400317c6
lea rdi, [rdx + rax]
mov qword [rbp + 0x10], rdi
lea rbx, [rbp]
cmp r8, 8
cmovae rbx, qword [rbp]
lea r8, [rax + rax]
lea rcx, [rbx + rdx*2]
lea rdx, [0x14003d0ac]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x1400317de
mov qword [rsp + 0x20], rax
lea r9, [0x14003d0ac]
mov rdx, rax
lea rcx, [rbp]
call fcn.140003410
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x1400317eb
mov r9, qword [r14]
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140031830
lea rdi, [rcx + rdx]
mov qword [rbp + 0x10], rdi
lea rbx, [rbp]
cmp r8, 8
cmovae rbx, qword [rbp]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x14003183e
mov qword [rsp + 0x20], rdx
lea rcx, [rbp]
call fcn.140003410
lea rcx, [0x14003d0ac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r9, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r8
sub rcx, r9
cmp rax, rcx
ja 0x140031894
lea rdi, [r9 + rax]
mov qword [rbp + 0x10], rdi
lea rbx, [rbp]
cmp r8, 8
cmovae rbx, qword [rbp]
lea r8, [rax + rax]
lea rcx, [rbx + r9*2]
lea rdx, [0x14003d0ac]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rbx + rdi*2], ax
lea rbx, [rbp]
jmp 0x1400318af
mov qword [rsp + 0x20], rax
lea r9, [0x14003d0ac]
mov rdx, rax
lea rcx, [rbp]
call fcn.140003410
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rbp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xor edi, edi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14003191e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031919
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031919
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
movdqa xmm0, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], di
mov r8, rsi
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140004ca0
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x4000020
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140031acc
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1400319cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400319ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400319ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
movdqa xmm0, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], di
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140031a23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031a1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031a1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
movdqa xmm0, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x140031a6f
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140031a6a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031ac5
mov rcx, r8
call fcn.140025dd4
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140031588
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140031583
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140031580
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test r15, r15
je 0x140031ad8
mov eax, dword [rsp + 0x68]
mov dword [r15], eax
mov rcx, qword [rsp + 0x58]
test r13b, r13b
je 0x140031b18
test rcx, rcx
je 0x140031b18
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test r12, r12
je 0x140031b05
mov rdx, r12
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140031b35
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rdi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140031b45
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], rdi
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140031b88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031b83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031b83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
movdqa xmm0, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], di
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140031bdc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031bd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031bd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
movdqa xmm0, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x140031c2c
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140031c27
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031caf
mov rcx, r8
call fcn.140025dd4
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140031c77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140031c72
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031cb6
mov rcx, r8
call fcn.140025dd4
mov al, 1
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140025ac0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3