Function at 0x14016b9c0
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push rbp
push rbx
push r12
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xe8
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rdx
mov rbx, rcx
mov rcx, r14
lea rdx, [rbp - 0x51]
movzx r12d, r8b
call fcn.140167a20
test eax, eax
jns 0x14016ba05
lfence
jmp 0x14016bd6b
mov qword [rsp + 0xd8], r13
lea rcx, [rbp - 0x59]
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x40], r13
mov r8d, 0x110081
mov dword [rsp + 0x38], 0x64
mov rdx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_PhCreateFileWin32Ex
mov ebx, eax
lfence
test eax, eax
jns 0x14016ba7d
cmp qword [rbp - 0x49], r13
je 0x14016ba76
mov rcx, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbp - 0x49]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14016bd63
mov rcx, qword [0x1402caaf0]
mov edx, 4
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0xe0], rdi
movzx edi, word [rbp - 0x51]
add edi, 0x1a
mov qword [rsp + 0xd0], r15
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.14020ab40
mov qword [r15 + 8], r13
test r12b, r12b
sete cl
mov byte [r15], cl
movzx ecx, word [rbp - 0x51]
mov dword [r15 + 0x10], ecx
lea rcx, [r15 + 0x14]
movzx r8d, word [rbp - 0x51]
mov rdx, qword [rbp - 0x49]
call fcn.14020af00
cmp qword [rbp - 0x49], r13
je 0x14016bb16
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbp - 0x49]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov rsi, qword [rbp - 0x59]
lea rdx, [rbp - 0x31]
mov rcx, rsi
mov dword [rsp + 0x20], 0xa
mov r9d, edi
mov r8, r15
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
cmp eax, 0xc00000d4
jne 0x14016bd2d
mov ebx, 5
lea r8, [rbp - 1]
mov r9d, 0x18
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x19]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test eax, eax
js 0x14016bd2d
movups xmm0, xmmword [rbp - 1]
movsd xmm1, qword [rbp + 0xf]
movups xmmword [rbp - 0x19], xmm0
mov rax, qword [rbp - 0x11]
mov qword [rbp - 0x21], rax
movsd qword [rbp - 9], xmm1
lfence
mov qword [rsp + 0x40], r13
lea r9, [rbp - 0x21]
mov dword [rsp + 0x38], 0x64
lea rcx, [rbp - 0x39]
mov eax, 2
test r12b, r12b
mov r8d, 0x120116
mov rdx, r14
cmovne ebx, eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_PhCreateFileWin32Ex
mov edi, eax
test eax, eax
js 0x14016bd2d
mov dword [rsp + 0x28], 4
lea r9, [rbp - 0x19]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x41]
mov qword [rbp - 0x19], 0x2000
mov rcx, 0xffffffffffffffff
mov qword [rbp - 0x41], r13
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x14016bd28
mov rdi, qword ds:[rbp - 0x41]
test rdi, rdi
je 0x14016bd28
mov rcx, qword [rbp - 0x59]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x40], r13
xor r9d, r9d
mov qword [rsp + 0x38], r13
xor r8d, r8d
mov dword [rsp + 0x30], 0x2000
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov ebx, eax
test eax, eax
js 0x14016bcf5
lfence
nop dword [rax + rax]
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x14016bcf5
mov rsi, qword [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x40], r13
xor r8d, r8d
mov qword [rsp + 0x38], r13
xor edx, edx
mov dword [rsp + 0x30], eax
mov rcx, rsi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov ebx, eax
test eax, eax
js 0x14016bcf9
cmp qword [rbp - 0x29], r13
je 0x14016bcf9
lfence
mov rcx, qword [rbp - 0x59]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x40], r13
xor r9d, r9d
mov qword [rsp + 0x38], r13
xor r8d, r8d
mov dword [rsp + 0x30], 0x2000
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov ebx, eax
test eax, eax
jns 0x14016bc70
mov rsi, qword [rbp - 0x39]
mov rcx, rdi
call sym.SystemInformer.exe_PhFreePage
cmp ebx, 0xc0000011
mov edi, r13d
cmovne edi, ebx
test edi, edi
je 0x14016bd1d
mov rcx, rsi
call fcn.140161aa0
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14016bd2d
mov edi, 0xc0000017
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x1402caaf0]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15, qword [rsp + 0xd0]
mov eax, edi
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x120]
mov r13, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0xe8
pop r14
pop r12
pop rbx
pop rbp
ret