Function at 0x1400996f0
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 1
lea rdx, str.Remapping_image_at_0x_IX_n
lea rcx, [rsp + 0xc8]
call fcn.140085fa0
mov rcx, rax
call fcn.140085f30
mov rdx, qword [rsp + 0x1a0]
mov rcx, rax
call fcn.140099660
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400997a4
lea rdx, [0x1400fa978]
lea rcx, [rsp + 0x160]
call fcn.1400999c0
mov rcx, rax
call fcn.14009fd50
mov rdx, qword [rsp + 0x1a0]
mov rcx, rax
call fcn.140099660
mov dword [rsp + 0x20], 0
jmp 0x140099959
mov rcx, qword [rsp + 0x30]
call fcn.14009bc90
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400997e7
lea rdx, str.RmppVerifyPeSectionAlignment_failed._n
lea rcx, [rsp + 0x108]
call fcn.14009a1d0
mov rcx, rax
call fcn.14009fce0
mov rcx, rax
call fcn.140099660
jmp 0x140099959
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14009985d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, str.VirtualAlloc_failed:__u_n
lea rcx, [rsp + 0xa8]
call fcn.14009a810
mov rcx, rax
call fcn.14009fc70
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call fcn.140099660
mov dword [rsp + 0x20], 0
jmp 0x140099959
lea rdx, str.RemapRegion:____0x_IX_n
lea rcx, [rsp + 0x60]
call fcn.14009ac30
mov rcx, rax
call fcn.14009fc00
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140099660
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14009cd30
lea rax, [0x14009cee0]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
lea rdx, str.RemapRoutine:___0x_IX_n
lea rcx, [rsp + 0x78]
call fcn.14009ac30
mov rcx, rax
call fcn.14009fc00
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.140099660
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x50]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14009991d
lea rdx, str.RmppRemapImageRoutine_failed._n
lea rcx, [rsp + 0xe8]
call fcn.14009b000
mov rcx, rax
call fcn.14009fb90
mov rcx, rax
call fcn.140099660
jmp 0x140099959
mov rcx, qword [rsp + 0x1a0]
call fcn.14009ed60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140099959
lea rdx, str.RmppValidateRemappedImageProtection_failed._n
lea rcx, [rsp + 0x130]
call fcn.14009b520
mov rcx, rax
call fcn.14009fb20
mov rcx, rax
call fcn.140099660
cmp qword [rsp + 0x28], 0
je 0x1400999b1
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x1400999b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
lea rdx, str.VirtualFree_failed:__u_n
lea rcx, [rsp + 0x90]
call fcn.1400884b0
mov rcx, rax
call fcn.140088440
mov qword [rsp + 0x58], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
call fcn.140099660
mov eax, dword [rsp + 0x20]
add rsp, 0x198
ret