Function at 0x140004aa0
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov qword [rsp + 0x60], rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
lea rdx, str.FileManager::runPowerShellScript
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x14000a8c8]
call fcn.1400011f0
lea edx, [r15 + 0x37]
mov rcx, rax
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___int____ptr64]
lea rdx, [0x140001b40]
mov rcx, rax
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 rax, [0x14000a600]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x118]
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 + 0x38], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
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 [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x78]
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 [rsp + 0x78], rax
mov byte [rsp + 0xf4], r15b
mov byte [rsp + 0xe9], r15b
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0xf8], r15
mov rax, qword [0x14000e370]
mov qword [rsp + 0xec], rax
mov qword [rsp + 0xe0], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x1e0], xmm0
movdqa xmm1, xmmword [0x14000aa50]
movdqu xmmword [rsp + 0x1f0], xmm1
mov word [rsp + 0x1e0], r15w
movups xmmword [rsp + 0x1c0], xmm0
mov r13d, r15d
mov qword [rsp + 0x1d0], r15
mov edi, 0xf
mov ebx, edi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x1d8], rbx
mov byte [rsp + 0x1c0], r13b
lea rdx, [rsp + 0x220]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140004d30
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x1e0]
call fcn.1400020c0
lea rdx, [rsp + 0x1e0]
cmp qword [rsp + 0x1f8], 8
cmovae rdx, qword [rsp + 0x1e0]
mov rax, qword [rsp + 0x1f0]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x1e0]
cmovae rdx, qword [rsp + 0x1e0]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x200]
call fcn.140001100
lea rcx, [rsp + 0x1c0]
cmp rcx, rax
je 0x140004cea
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rdi
mov byte [rax], r15b
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rbx, xmm0
mov qword [rsp + 0x48], rbx
movq r13, xmm1
mov rdx, qword [rsp + 0x218]
cmp rdx, 0x10
jb 0x140004d30
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008660
mov r14, 0xffffffffffffffff
mov dword [rsp + 0x40], r14d
movabs r12, 0x7fffffffffffffff
mov rax, r12
sub rax, r13
mov qword [rsp + 0x58], rax
cmp rax, 0xd
jb 0x14000568c
lea rdx, [rsp + 0x1c0]
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x50], rax
cmp rbx, 0x10
cmovae rdx, rax
mov qword [rsp + 0x38], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x190], xmm1
lea rax, [r13 + 0xd]
mov rbx, rdi
lea rsi, [rsp + 0x180]
cmp rax, rbx
jbe 0x140004e3c
mov rbx, rax
or rbx, 0xf
cmp rbx, r12
jbe 0x140004df1
mov rbx, r12
movabs rsi, 0x8000000000000000
add rsi, 0x27
mov rcx, rsi
call fcn.140008624
test rax, rax
je 0x140004ed9
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
lea rax, [r13 + 0xd]
mov rdx, qword [rsp + 0x38]
jmp 0x140004e34
mov ecx, 0x16
cmp rbx, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140004e19
lea rsi, [rcx + 0x27]
cmp rsi, rcx
jbe 0x140005692
jmp 0x140004dc9
test rcx, rcx
je 0x140004e31
call fcn.140008624
mov rsi, rax
lea rax, [r13 + 0xd]
mov rdx, qword [rsp + 0x38]
jmp 0x140004e34
mov rsi, r15
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x198], rbx
mov r8, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.handler1.ps1]
movsd qword [rsi + r13], xmm0
mov eax, dword [0x14000a900]
mov dword [rsi + r13 + 8], eax
movzx eax, byte [0x14000a904]
mov byte [rsi + r13 + 0xc], al
mov byte [rsi + r13 + 0xd], 0
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x70]
call fcn.140003e80
nop
mov rdx, qword [rsp + 0x198]
cmp rdx, 0x10
jb 0x140004ee5
inc rdx
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ee0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ee0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008660
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140004ef8
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400014f0
cmp qword [rsp + 0xf8], 0
je 0x140004fbd
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0xe8]
cmp qword [rax], rcx
jne 0x140004f53
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
mov qword [rax], rcx
mov rax, qword [rsp + 0xb0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0xc8]
mov dword [rax], edx
lea rbx, [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.140002340
test al, al
cmove rbx, r15
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r15
mov byte [rsp + 0xf4], 0
mov byte [rsp + 0xe9], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0xf8], r15
mov rax, qword [0x14000e370]
mov qword [rsp + 0xec], rax
mov qword [rsp + 0xe0], r15
test rbx, rbx
jne 0x140005015
jmp 0x140004ff7
mov byte [rsp + 0xf4], 0
mov byte [rsp + 0xe9], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0xf8], r15
mov rax, qword [0x14000e370]
mov qword [rsp + 0xec], rax
mov qword [rsp + 0xe0], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
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]
cmp qword [rsp + 0x58], 0x3f
jb 0x140005698
lea rdx, [rsp + 0x1c0]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x1a0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1b0], xmm1
lea rax, [r13 + 0x3f]
mov rbx, rdi
lea rsi, [rsp + 0x1a0]
cmp rax, rbx
jbe 0x1400050fd
mov rbx, rax
or rbx, 0xf
cmp rbx, r12
jbe 0x1400050aa
mov rbx, r12
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140008624
test rax, rax
je 0x1400050d3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
lea rax, [r13 + 0x3f]
mov rdx, qword [rsp + 0x38]
jmp 0x1400050f5
cmp rbx, 0x16
mov ecx, 0x16
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400050da
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000569e
jmp 0x140005086
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400050f2
call fcn.140008624
mov rsi, rax
lea rax, [r13 + 0x3f]
mov rdx, qword [rsp + 0x38]
jmp 0x1400050f5
mov rsi, r15
mov qword [rsp + 0x1a0], rsi
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x1b8], rbx
movaps xmm0, xmmword [str.powershell__ExecutionPolicy_Bypass___WindowStyle_Hidden__File__]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [0x14000a930]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [0x14000a940]
movups xmmword [rsi + 0x20], xmm0
movsd xmm1, qword [0x14000a950]
movsd qword [rsi + 0x30], xmm1
mov eax, dword [0x14000a958]
mov dword [rsi + 0x38], eax
movzx eax, word [0x14000a95c]
mov word [rsi + 0x3c], ax
movzx eax, byte [0x14000a95e]
mov byte [rsi + 0x3e], al
lea rcx, [rsi + 0x3f]
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r13 + 0x3f], 0
mov rcx, qword [rsp + 0x1b0]
mov rdx, qword [rsp + 0x1b8]
mov rax, rdx
sub rax, rcx
cmp rax, 0xe
jb 0x1400051cd
lea rax, [rcx + 0xe]
mov qword [rsp + 0x1b0], rax
lea rbx, [rsp + 0x1a0]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x1a0]
add rbx, rcx
mov r8d, 0xe
lea rdx, str.handler1.ps1_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xe], 0
lea rax, [rsp + 0x1a0]
jmp 0x1400051f5
mov qword [rsp + 0x20], 0xe
lea r9, str.handler1.ps1_
movzx r8d, byte [rsp + 0x30]
mov edx, 0xe
lea rcx, [rsp + 0x1a0]
call fcn.1400016b0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x200], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x210], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rdi
mov byte [rax], 0
mov rdx, qword [rsp + 0x1b8]
cmp rdx, 0x10
jb 0x14000525d
inc rdx
mov rcx, qword [rsp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005258
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005258
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008660
movdqa xmm0, xmmword [0x14000aa60]
movdqu xmmword [rsp + 0x1b0], xmm0
mov byte [rsp + 0x1a0], 0
lea rdx, [rsp + 0x200]
cmp qword [rsp + 0x218], 0x10
cmovae rdx, qword [rsp + 0x200]
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x190], xmm1
nop word [rax + rax]
inc r14
cmp byte [rdx + r14], 0
jne 0x1400052b0
mov r8, r14
lea rcx, [rsp + 0x180]
call fcn.140001430
nop
lea rcx, [rsp + 0x180]
call fcn.1400042a0
mov ebx, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x198]
cmp rdx, 0x10
jb 0x140005328
inc rdx
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005323
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008660
lea rdx, str.ret:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011f0
mov edx, ebx
mov rcx, rax
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___int____ptr64]
lea rdx, [0x140001b40]
mov rcx, rax
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]
nop
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
jmp 0x140005399
mov edx, 0x16
movabs rcx, 0x8000000000000000
mov rax, r12
sub rax, r13
cmp rax, 0xd
jb 0x1400056a4
lea rax, [rsp + 0x1c0]
cmp r8, 0x10
cmovae rax, rsi
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x180], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x190], xmm1
lea r14, [r13 + 0xd]
lea rbx, [rsp + 0x180]
cmp r14, 0xf
jbe 0x140005470
mov rdi, r14
or rdi, 0xf
cmp rdi, r12
jbe 0x14000542d
mov rdi, r12
lea rax, [rcx + 0x27]
mov rcx, rax
call fcn.140008624
test rax, rax
je 0x140005512
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov rax, qword [rsp + 0x50]
jmp 0x140005468
cmp rdi, 0x16
cmovb rdi, rdx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140005451
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400056aa
jmp 0x140005409
test rcx, rcx
je 0x140005465
call fcn.140008624
mov rbx, rax
mov rax, qword [rsp + 0x50]
jmp 0x140005468
mov rbx, r15
mov qword [rsp + 0x180], rbx
mov qword [rsp + 0x190], r14
mov qword [rsp + 0x198], rdi
mov r8, r13
mov rdx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.handler1.ps1]
movsd qword [rbx + r13], xmm0
mov eax, dword [0x14000a900]
mov dword [rbx + r13 + 8], eax
movzx eax, byte [0x14000a904]
mov byte [rbx + r13 + 0xc], al
mov byte [rbx + r14], 0
lea rcx, [rsp + 0x180]
cmp qword [rsp + 0x198], 0x10
cmovae rcx, qword [rsp + 0x180]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rsp + 0x198]
cmp rdx, 0x10
jb 0x14000551f
inc rdx
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005519
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005519
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008660
nop
mov rdx, qword [rsp + 0x218]
cmp rdx, 0x10
jb 0x140005566
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005560
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008660
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x1400055a6
lea rdx, [rax + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000559d
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000559d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140008660
nop
mov rdx, qword [rsp + 0x1f8]
cmp rdx, 8
jb 0x1400055f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400055ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008660
movdqa xmm0, xmmword [0x14000aa50]
movdqu xmmword [rsp + 0x1f0], xmm0
mov word [rsp + 0x1e0], r15w
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rsp + rdx + 0x6c], r8d
lea rcx, [rsp + 0x78]
call fcn.140001f00
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x118]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140008780
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140002550
nop
call fcn.140002480
int3
call fcn.140002550
int3
call fcn.140002480
nop
call fcn.140002550
int3
call fcn.140002480
int3