Function at 0x140001cf0
Capabilities:
Create process on windows
Self delete

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
lea r8, str..bat
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140006eb0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rbx, qword [rsp + 0x40]
lea rax, [0x14000b998]
mov qword [rsp + 0x60], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x60], r14
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + 0x68], rax
mov byte [rbp - 0x1c], sil
mov byte [rbp - 0x26], sil
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
mov qword [rbp - 0x18], rsi
mov rax, qword [0x140010b08]
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x30], rsi
mov r8d, 2
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140006ba0
test rax, rax
jne 0x140001e2c
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r14
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
cmp qword [rbp - 0x18], 0
jne 0x140001e7c
lea rdx, str.Failed_to_create_batch_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140006c90
lea rdx, [0x140006e70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140001f74
lea rdx, str._echo_off_n
lea rcx, [rsp + 0x60]
call fcn.140006c90
mov rcx, rax
lea rdx, str.:Repeat_n
call fcn.140006c90
mov rcx, rax
lea rdx, str.del__
call fcn.140006c90
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140001eb8
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140007b70
lea rdx, [0x14000ac38]
mov rcx, rax
call fcn.140006c90
mov rcx, rax
lea rdx, str.if_exist__
call fcn.140006c90
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x140001ef0
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140007b70
lea rdx, str.__goto_Repeat_n
mov rcx, rax
call fcn.140006c90
mov rcx, rax
lea rdx, str.del___f0__n
call fcn.140006c90
lea rcx, [rsp + 0x68]
call fcn.140006a60
test rax, rax
jne 0x140001f47
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r8, qword [rsp + 0x40]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0x60]
call fcn.140001ff0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001fc4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400089e4
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140008740
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret