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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rbp + 0x350], rax
lea rdx, [rbp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [0x140168486]
mov edx, 0x5fe52c28
mov r8d, 0xa
call fcn.140001558
lea rcx, [rbp + 0x130]
dec rcx
xor edi, edi
mov r8, rax
inc rcx
cmp byte [rcx], dil
jne 0x14001a193
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x14001a19d
mov qword [rsp + 0x30], rdi
lea rcx, [rbp + 0x130]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a369
lea rdx, [rbp + 0x240]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [0x140168492]
mov edx, 0xa9f0de6
mov r8d, 0xa
call fcn.140001558
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9240
lea r9, [rsp + 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x14016849e]
mov edx, 0xcbea18cb
mov r8d, 0xb
call fcn.140001558
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9240
lea r9, [rsp + 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x1401684ac]
mov edx, 0x3e250aea
mov r8d, 0x1c
call fcn.140001558
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9240
lea r9, [rsp + 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rbp + 0x240]
mov edx, 0x5c
call fcn.1400e92e0
test rax, rax
je 0x14001a2d8
mov byte [rax], dil
lea rcx, [0x1401684ca]
mov edx, 0xc6207a1b
mov r8d, InitCommonControls
call fcn.140001558
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9240
lea r9, [rsp + 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x1401684da]
mov edx, 0x15716194
mov r8d, 0xb
call fcn.140001558
lea r8, [rbp + 0x130]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9240
lea r9, [rsp + 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.1400ea570
lea rax, [rsp + 0x58]
lea rdx, [rbp + 0x130]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000040
mov dword [rsp + 0x70], 0x68
mov dword [rbp - 0x54], 1
mov word [rbp - 0x50], di
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14001a3e5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400e7da0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret