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

Disassembly:
jmp 0x140404160
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x50]
mov ecx, 0x38
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x140]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x148]
call fcn.14020c733
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1404041bf
mov eax, dword [rsp + 0x50]
jmp 0x14040450f
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 7
mov r9d, 0x80
mov r8d, 0x110081
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x68]
call sym.SystemInformer.exe_PhCreateFileWin32
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140404217
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [rsp + 0x50]
jmp 0x14040450f
movzx eax, word [rsp + 0xb8]
add rax, 0x1a
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xa4]
mov ecx, eax
call fcn.1402146cc
mov qword [rsp + 0xd8], rax
movzx eax, byte [rsp + 0x150]
test eax, eax
je 0x140404259
mov dword [rsp + 0x120], 0
jmp 0x140404264
mov dword [rsp + 0x120], 1
mov rax, qword [rsp + 0xd8]
movzx ecx, byte [rsp + 0x120]
mov byte [rax], cl
mov rax, qword [rsp + 0xd8]
mov qword [rax + 8], 0
movzx eax, word [rsp + 0xb8]
mov rcx, qword [rsp + 0xd8]
mov dword [rcx + 0x10], eax
movzx eax, word [rsp + 0xb8]
mov rcx, qword [rsp + 0xd8]
add rcx, 0x14
mov r8d, eax
mov rdx, qword [rsp + 0xc0]
call fcn.14020eed9
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov dword [rsp + 0x20], 0xa
mov r9d, dword [rsp + 0xa4]
mov r8, qword [rsp + 0xd8]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc00000d4
jne 0x1404044f3
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x68]
call sym.SystemInformer.exe_PhGetFileSize
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x14040432a
jmp 0x1404044f3
movzx eax, byte [rsp + 0x150]
test eax, eax
je 0x140404343
mov dword [rsp + 0x124], 2
jmp 0x14040434e
mov dword [rsp + 0x124], 5
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x64
mov eax, dword [rsp + 0x124]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x80
lea r9, [rsp + 0x108]
mov r8d, 0x120116
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0xe8]
call sym.SystemInformer.exe_PhCreateFileWin32Ex
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x1404044f3
xor edx, edx
mov ecx, 0x2000
call sym.SystemInformer.exe_PhAllocatePage
mov qword [rsp + 0x118], rax
cmp qword [rsp + 0x118], 0
jne 0x1404043d8
mov dword [rsp + 0x50], 0xc0000017
jmp 0x1404044f3
xor eax, eax
cmp eax, 1
je 0x1404044b0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x2000
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtReadFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140404437
jmp 0x1404044b0
cmp qword [rsp + 0x90], 0
jne 0x140404444
jmp 0x1404044b0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x14040449e
jmp 0x1404044b0
cmp qword [rsp + 0x90], 0
jne 0x1404044ab
jmp 0x1404044b0
jmp 0x1404043d8
mov rcx, qword [rsp + 0x118]
call sym.SystemInformer.exe_PhFreePage
cmp dword [rsp + 0x50], 0xc0000011
jne 0x1404044cf
mov dword [rsp + 0x50], 0
cmp dword [rsp + 0x50], 0
je 0x1404044e4
mov rcx, qword [rsp + 0xe8]
call fcn.140213aa6
nop
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0xd8]
call sym.SystemInformer.exe_PhFree
mov eax, dword [rsp + 0x50]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407a6040]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x130
pop rdi
ret