Function at 0x1400605c0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Execute shellcode via indirect call
Hide graphical window
Overwrite dll .text section to remove hooks
Read file via mapping
Resolve function by parsing pe exports
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x170]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_26
rep stosb byte [rdi], al
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140060642
lea rdx, [0x140381460]
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 + 0x100], rax
lea rdx, [0x1400538b0]
mov rcx, qword [rsp + 0x100]
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 0x140060b8f
mov r9d, Ordinal_26
lea r8, [rsp + 0x170]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xb0]
call sub.KERNEL32.dll_K32GetModuleInformation
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x88], 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_system32user32.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0xb8], rax
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 qword [rsp + 0xc0], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
xor eax, eax
mov word [rsp + 0x64], ax
jmp 0x140060755
movzx eax, word [rsp + 0x64]
inc ax
mov word [rsp + 0x64], ax
movzx eax, word [rsp + 0x64]
mov rcx, qword [rsp + 0x90]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1400608aa
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rsp + 0x64]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
lea rcx, [0x1403814a8]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400607bf
inc rax
test dl, dl
jne 0x1400607ac
xor eax, eax
jmp 0x1400607c4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400608a5
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x88]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x7c]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140060810
mov byte [rsp + 0x60], 1
jmp 0x140060815
mov byte [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x68], al
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0xd0]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x70]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x88]
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 + 0x70]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x88]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x7c]
mov r8d, dword [rsp + 0x7c]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140060897
mov byte [rsp + 0x61], 1
jmp 0x14006089c
mov byte [rsp + 0x61], 0
movzx eax, byte [rsp + 0x61]
mov byte [rsp + 0x68], al
jmp 0x140060748
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x78]
call fcn.140056cc0
mov rcx, rax
call fcn.1400566e0
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call fcn.14005eb60
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x120], 0x50
mov dword [rsp + 0x124], 0
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x130], 0
mov dword [rsp + 0x134], 0
mov qword [rsp + 0x138], 0
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rsp + 0x140], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x79]
call fcn.140056d10
mov rcx, rax
call fcn.1400567c0
mov qword [rsp + 0x160], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rsp + 0x168], rax
lea rcx, [rsp + 0x120]
call qword [sym.imp.USER32.dll_RegisterClassExA]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
nop
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0x1b2]
lea rcx, [rsp + 0x7a]
call fcn.140056dd0
mov rcx, rax
call fcn.1400567c0
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1cc]
lea rcx, [rsp + 0x7b]
call fcn.140056d70
mov rcx, rax
call fcn.1400567c0
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, 0x80000000
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe8]
xor ecx, ecx
call qword [rsp + 0xf0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140060ad2
lea rdx, str.Failed_to_create_window
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 + 0xf8], rax
lea rdx, [0x1400538b0]
mov rcx, qword [rsp + 0xf8]
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 0x140060b8f
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov dword [rsp + 0x108], 0xffffffff
lea rax, [rsp + 0x10c]
mov rdi, rax
xor eax, eax
mov ecx, ntohl
rep stosb byte [rdi], al
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, 5
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [rsp + 0x80]
mov qword [0x1403fd0f0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140060410]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x1f8
pop rdi
pop rsi
ret