Function at 0x1400096a0
Capabilities:
Create process on windows
Get common file path
Print debug messages
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xe48]
sub rsp, 0xf30
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004e038]
xor rax, rsp
mov qword [rbp + 0xe20], rax
mov rbx, rdx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x220]
call fcn.140011520
test rbx, rbx
jne 0x1400096ff
xor eax, eax
jmp 0x140009a99
lea r8, str.HKEY_LOCAL_MACHINE_
mov edx, 0x200
lea rcx, [rbp + 0x220]
call fcn.140017e40
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov edx, 0x200
lea rcx, [rbp + 0x220]
call fcn.140017ea8
lea r8, [0x1400436ec]
mov edx, 0x200
lea rcx, [rbp + 0x220]
call fcn.140017ea8
mov r8, rbx
mov edx, 0x200
lea rcx, [rbp + 0x220]
call fcn.140017ea8
lea r8, str.FxProperties_n
mov edx, 0x200
lea rcx, [rbp + 0x220]
call fcn.140017ea8
lea r8, str._2B24BE42_A892_11DC_8314_0800200C9A66_2__REG_DWORD_0
mov edx, 0x200
lea rcx, [rbp + 0x220]
call fcn.140017ea8
mov ecx, 0x18
call fcn.14000c668
mov rbx, rax
mov qword [rsp + 0x68], rax
xor edi, edi
test rax, rax
je 0x1400097d3
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
mov dword [rbx + 0x10], 1
lea rcx, [rbp + 0x220]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140009ad0
jmp 0x1400097d6
mov rbx, rdi
mov qword [rbp - 0x58], rbx
test rbx, rbx
je 0x140009ac5
mov rsi, qword [rbx + 8]
test rsi, rsi
jne 0x1400097fb
mov rcx, qword [rbx]
call fcn.14000c360
mov rsi, rax
mov qword [rbx + 8], rax
mov dword [rbp - 0x74], edi
mov edx, 0x100
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea r9, [rbp + 0x20]
lea r8, str._sk2_restore.txt
mov edx, 0x200
lea rcx, [rbp + 0x20]
call fcn.140001140
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov r15, rax
mov r14, 0xffffffffffffffff
cmp rax, r14
je 0x140009888
mov r8, r14
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x140009860
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x74]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov edx, 0x200
lea rcx, [rbp + 0x620]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x620]
lea r8, str._s_regini.exe__s
mov edx, 0x400
lea rcx, [rbp + 0x620]
call fcn.140001140
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x4c]
call fcn.140011520
mov dword [rbp - 0x50], 0x68
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x70]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
test eax, eax
je 0x140009a58
mov qword [rsp + 0x68], rdi
mov dword [rbp - 0x78], 8
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x68]
lea edx, [r9 + 0xb]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x1400099e6
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
test eax, eax
je 0x140009a4d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0x620]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140009a4d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, str.GetTokenInformation_fail:__d_r_n
mov edx, 0x400
lea rcx, [rbp + 0xa20]
call fcn.140001140
lea rcx, [rbp + 0xa20]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x620]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lock xadd dword [rbx + 0x10], r14d
cmp r14d, 1
jne 0x140009a94
mov rcx, qword [rbx]
test rcx, rcx
je 0x140009a75
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140009a87
call fcn.14000c634
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14000c634
mov eax, 1
mov rcx, qword [rbp + 0xe20]
xor rcx, rsp
call fcn.14000c610
lea r11, [rsp + 0xf30]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x8007000e
call fcn.14000c350
nop
mov ecx, 0x8007000e
call fcn.14000c350
int3