Function at 0x180008460
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Overwrite dll .text section to remove hooks
Read file via mapping

Disassembly:
jmp 0x180008460
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x180147005]
call fcn.1800041f1
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x38], rax
mov r9d, 0x18
lea r8, [rbp + 8]
mov rdx, qword [rbp + 0x38]
mov rcx, 0xffffffffffffffff
call sub.KERNEL32.dll_K32GetModuleInformation
mov rax, qword [rbp + 8]
mov qword [rbp + 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 [rbp + 0x78], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbp + 0x98], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xf8], rax
xor eax, eax
mov word [rbp + 0x114], ax
jmp 0x18000859f
movzx eax, word [rbp + 0x114]
inc ax
mov word [rbp + 0x114], ax
movzx eax, word [rbp + 0x114]
mov rcx, qword [rbp + 0xf8]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x18000870c
mov rax, qword [rbp + 0xf8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0xf8]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rbp + 0x114]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
lea rdx, str..text
mov rcx, rax
call fcn.180004700
test eax, eax
jne 0x180008707
mov dword [rbp + 0x154], 0
mov rax, qword [rbp + 0x138]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x138]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x58]
add rdx, rcx
mov rcx, rdx
lea r9, [rbp + 0x154]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000864d
mov byte [rbp + 0x244], 1
jmp 0x180008654
mov byte [rbp + 0x244], 0
movzx eax, byte [rbp + 0x244]
mov byte [rbp + 0x174], al
mov rax, qword [rbp + 0x138]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x138]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0xb8]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x138]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rbp + 0x58]
add rdi, rdx
mov rdx, rdi
mov qword [rbp + 0x248], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x248]
mov rcx, rax
call fcn.180002860
mov rax, qword [rbp + 0x138]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x138]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x58]
add rdx, rcx
mov rcx, rdx
lea r9, [rbp + 0x154]
mov r8d, dword [rbp + 0x154]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800086f3
mov byte [rbp + 0x244], 1
jmp 0x1800086fa
mov byte [rbp + 0x244], 0
movzx eax, byte [rbp + 0x244]
mov byte [rbp + 0x174], al
jmp 0x18000858e
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x180088d30]
call fcn.1800038eb
mov eax, edi
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret