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

Disassembly:
push rbp
push rbx
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov rdx, rcx
mov dword [rsp + 0x38], 0x64
lea rcx, [rbp - 0x59]
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov dword [rsp + 0x28], 7
mov r8d, 0x100081
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_PhCreateFileWin32Ex
nop
test eax, eax
jns 0x140162fcc
lfence
jmp 0x140163231
mov qword [rsp + 0xe8], rdi
lea r8, [rbp - 1]
mov qword [rsp + 0xe0], r14
lea rdx, [rbp - 0x39]
mov r14, qword [rbp - 0x59]
mov r9d, 0x28
mov rcx, r14
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test eax, eax
js 0x140163216
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rbp - 0x19]
mov rcx, r14
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test eax, eax
js 0x140163216
movups xmm0, xmmword [rbp - 0x19]
lea r9, [rbp - 0x21]
mov qword [rsp + 0x40], r15
movsd xmm1, qword [rbp - 9]
lea rcx, [rbp - 0x19]
mov dword [rsp + 0x38], 0x64
mov r8d, 0x120116
movups xmmword [rbp - 0x39], xmm0
mov rax, qword [rbp - 0x31]
mov rdx, rbx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov qword [rbp - 0x21], rax
movsd qword [rbp - 0x29], xmm1
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_PhCreateFileWin32Ex
mov edi, eax
test eax, eax
js 0x140163216
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rbp - 0x39]
mov qword [rbp - 0x39], 0x2000
lea rdx, [rbp - 0x51]
mov qword [rbp - 0x51], r15
mov dword [rsp + 0x20], 0x1000
lea rcx, [r8 - 1]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x140163211
mov rdi, qword [rbp - 0x51]
test rdi, rdi
je 0x140163211
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov dword [rsp + 0x30], 0x2000
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x120], rsi
call qword [sym.imp.ntdll.dll_NtReadFile]
mov ebx, eax
test eax, eax
js 0x1401631bc
lfence
mov r14, qword [rbp - 0x59]
nop word [rax + rax]
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x1401631bc
mov rsi, qword [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], r15
xor edx, edx
mov dword [rsp + 0x30], eax
mov rcx, rsi
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov ebx, eax
test eax, eax
js 0x1401631c0
cmp qword [rbp - 0x41], r15
je 0x1401631c0
lfence
mov r14, qword [rbp - 0x59]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov dword [rsp + 0x30], 0x2000
xor edx, edx
mov qword [rsp + 0x28], rdi
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov ebx, eax
test eax, eax
jns 0x140163130
mov rsi, qword [rbp - 0x19]
mov rcx, rdi
call sym.SystemInformer.exe_PhFreePage
cmp ebx, 0xc0000011
mov edi, r15d
mov rcx, rsi
cmovne edi, ebx
test edi, edi
js 0x1401631f9
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea r8, [rbp - 1]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x1401631fe
call fcn.140159ee0
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0x120]
jmp 0x140163216
mov edi, 0xc0000017
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtClose]
mov r14, qword [rsp + 0xe0]
mov eax, edi
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0xf0
pop r15
pop rbx
pop rbp
ret