Function at 0x1400617c0
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:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_26
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140061840
lea rdx, str.Failed_to_get_handle_for_user32.dll
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140050ac0
mov qword [rsp + 0x78], rax
lea rdx, [0x1400538b0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
jmp 0x140061a88
mov r9d, Ordinal_26
lea r8, [rsp + 0xa8]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_K32GetModuleInformation
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x60], 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
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
xor eax, eax
mov word [rsp + 0x44], ax
jmp 0x140061945
movzx eax, word [rsp + 0x44]
inc ax
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140061a88
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
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]
mov rax, qword [rsp + 0x50]
lea rcx, str..text
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400619a6
inc rax
test dl, dl
jne 0x140061993
xor eax, eax
jmp 0x1400619ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140061a83
mov dword [rsp + 0x58], 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 + 0x60]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x58]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400619f4
mov byte [rsp + 0x40], 1
jmp 0x1400619f9
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x48], 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 + 0xa0]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x60]
add rdi, rdx
mov rdx, rdi
mov rdi, rdx
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x58]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140061a75
mov byte [rsp + 0x41], 1
jmp 0x140061a7a
mov byte [rsp + 0x41], 0
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x48], al
jmp 0x140061938
add rsp, 0xc8
pop rdi
pop rsi
ret