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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
call sym.__main
lea rax, str.___Initializing_Pseudomnemonic_Nullification._n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 0x94], 1
lea rdx, [rbp - 0x94]
lea rax, [rbp - 0xa0]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0xa0]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
mov rax, qword [str.discord.exe]
mov rdx, rax
lea rax, str.___Resolving_PID_for_process:__s_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 0x84], 1
lea rdx, [rbp - 0x84]
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0x90]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
mov rax, qword [str.discord.exe]
mov rcx, rax
call sym.GetPIDByName_char_const_
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140001aba
lea rax, str.____Process_not_found._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x140001da9
mov eax, dword [rbp - 4]
mov edx, eax
lea rax, str.___Got_PID:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 0x74], 1
lea rdx, [rbp - 0x74]
lea rax, [rbp - 0x80]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0x80]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
mov eax, dword [rbp - 4]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001b39
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Failed_to_open_process._Error_code:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x140001da9
lea rax, str.___Trying_to_get_handle_on_process._n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 0x64], 1
lea rdx, [rbp - 0x64]
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0x70]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rax, str.___Got_handle_on_process_with_HID:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 0x54], 1
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0x60]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
mov rdx, qword [str.discord.exe]
mov eax, dword [rbp - 4]
mov ecx, eax
call sym.GetModuleBaseAddress_unsigned_long__char_const_
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001be7
lea rax, str.____Failed_to_get_base_address_of_the_main_module._n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001da9
mov eax, dword [rbp - 0x14]
mov rdx, rax
lea rax, str.___Got_base_address_of_the_main_module._Address:_0x_llX_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 0x44], 1
lea rdx, [rbp - 0x44]
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0x50]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
mov qword [rbp - 0x20], 5
lea rax, str.___Allocating_a_block_of_memory_with_RWX_permissions_in_the_remote_process_for_NOP_byte._n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 5
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x140001c9e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Failed_to_allocate_memory_in_the_remote_process._Error_code:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001da9
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rax, str.___Allocated_buffer_for_NOP_byte_in_the_remote_process._Address:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 0x34], 1
lea rdx, [rbp - 0x34]
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0x40]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
lea rax, str.___Creating_a_remote_thread_to_dereference_execution._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [rbp - 0x14]
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdx
lea r9, [sym.InjectNOP_void__void_]
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x140001d60
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Failed_to_create_remote_thread._Error_code:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001da9
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.___Null_pointer_dereferenced.__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
add rsp, 0xe0
pop rbp
ret