Function at 0x180003020
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:
jmp 0x180003020
push rdi
sub rsp, 0x160
lea rdi, [rsp + 0x40]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800320b8]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdx, str.ntdll.dll
lea rcx, [rsp + 0x70]
call fcn.1800014e7
mov rcx, rax
call fcn.1800016c7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x68], rax
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
call sub.KERNEL32.dll_K32GetModuleInformation
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
lea rdx, str.C:windows_system32_ntdll.dll
lea rcx, [rsp + 0x88]
call fcn.1800011f9
mov rcx, rax
call fcn.180001230
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.180001221
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.180001221
nop
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf8], rax
xor eax, eax
mov word [rsp + 0x100], ax
jmp 0x1800031c0
movzx eax, word [rsp + 0x100]
inc ax
mov word [rsp + 0x100], ax
mov rax, qword [rsp + 0xf8]
movzx eax, word [rax + 6]
movzx ecx, word [rsp + 0x100]
cmp ecx, eax
jge 0x18000332e
movzx eax, word [rsp + 0x100]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0xf8]
movzx ecx, word [rcx + 0x14]
mov rdx, qword [rsp + 0xf8]
lea rcx, [rdx + rcx + 0x18]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
lea rdx, str..text
lea rcx, [rsp + 0x110]
call fcn.180001500
mov rcx, rax
call fcn.1800013d9
mov rcx, qword [rsp + 0x108]
mov rdx, rax
call sub.ucrtbased.dll_strcmp
test eax, eax
jne 0x180003329
mov dword [rsp + 0x124], 0
mov rax, qword [rsp + 0x108]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x108]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x80]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x124]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x134], eax
mov rax, qword [rsp + 0x108]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x108]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0xe8]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x108]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x80]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x148], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x148]
mov rcx, rax
call fcn.1800010ff
nop
jmp 0x1800032ed
mov rax, qword [rsp + 0x108]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x108]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x80]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x124]
mov r8d, dword [rsp + 0x124]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1800031ad
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [rsp + 0x140], 0
lea rcx, [rsp + 0xd8]
call fcn.180001415
nop
lea rcx, [rsp + 0xb8]
call fcn.180001415
mov eax, dword [rsp + 0x140]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180018e18]
call fcn.180001618
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18000139d
add rsp, 0x160
pop rdi
ret