Function at 0x140163260
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 [0x1402b5020]
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.14015f820
test eax, eax
jns 0x1401632a5
lfence
jmp 0x14016360b
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 0x14016331d
cmp qword [rbp - 0x49], r13
je 0x140163316
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 0x140163603
mov rcx, qword [0x1402bfe50]
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.1401dff50
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.1401e3aa0
cmp qword [rbp - 0x49], r13
je 0x1401633b6
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 0x1401635cd
mov ebx, 5
lea r8, [rbp - 1]
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x20], ebx
mov rcx, rsi
lea r9d, [rbx + 0x13]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test eax, eax
js 0x1401635cd
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 0x1401635cd
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rbp - 0x19]
mov qword [rbp - 0x19], 0x2000
lea rdx, [rbp - 0x41]
mov qword [rbp - 0x41], r13
mov dword [rsp + 0x20], 0x1000
lea rcx, [r8 - 1]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1401635c8
mov rdi, qword ds:[rbp - 0x41]
test rdi, rdi
je 0x1401635c8
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 0x140163599
lfence
nop dword [rax + rax]
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x140163599
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 0x14016359d
cmp qword [rbp - 0x29], r13
je 0x14016359d
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 0x140163510
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 0x1401635bd
mov rcx, rsi
call fcn.140159ee0
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1401635cd
mov edi, 0xc0000017
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x1402bfe50]
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.1401dd6a0
add rsp, 0xe8
pop r14
pop r12
pop rbx
pop rbp
ret