Function at 0x140041d80
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1400dd0c0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov dword [rbp - 0x50], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
mov dword [rbp - 0x14], 1
xor r14d, r14d
mov word [rbp - 0x10], r14w
mov r8, rcx
lea rdx, str.cmd.exe__c
lea rcx, [rbp - 0x78]
call fcn.140046cc0
nop
xorps xmm0, xmm0
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x68]
add rbx, rdx
lea rsi, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rsi, qword [rbp - 0x78]
movdqu xmmword [rsp + 0x70], xmm0
mov eax, r14d
mov qword [rbp - 0x80], rax
sub rbx, rsi
je 0x140041ea0
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140042025
cmp rbx, 0x1000
jb 0x140041e6d
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14004201f
call fcn.1400b1a88
mov rcx, rax
test rax, rax
je 0x140041fa1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140041e75
mov rcx, rbx
call fcn.1400b1a88
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rdi, [rax + rbx]
mov qword [rbp - 0x80], rdi
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x78], rdi
mov rax, qword [rbp - 0x80]
jmp 0x140041ea5
mov rdi, qword [rsp + 0x78]
mov byte [rsp + 0x50], 0
cmp rdi, rax
je 0x140041eb9
mov byte [rdi], 0
inc qword [rsp + 0x78]
jmp 0x140041ecb
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140048410
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
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, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140041f36
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x140041f6f
lea rdx, str.Error_creating_process:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400463f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1400465c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor bl, bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140041fba
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041fa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041fa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b1774
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140041ff8
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041ff3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041ff3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b1774
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400b1360
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140037c10
nop
call fcn.140048100
int3