Function at 0x140002180
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x74]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, 0x1000
call fcn.1400107b0
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140002298
xor al, al
jmp 0x140002553
mov dword [rsp + 0xc0], 0x30
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd8], 0x240
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xf0], 0x30
mov qword [rsp + 0xf8], 0
mov dword [rsp + 0x108], 0x240
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x860
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xc0]
mov edx, 0x120089
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x14000239e
jmp 0x14000250a
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x860
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xf0]
mov edx, 0x120116
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140002410
jmp 0x14000250a
mov dword [rsp + 0x68], 0x1000
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140002484
cmp dword [rsp + 0x64], 0xc0000011
jne 0x14000247a
mov byte [rsp + 0x60], 1
jmp 0x14000250a
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x1400024e6
jmp 0x14000250a
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
xor eax, eax
cmp eax, 1
jne 0x140002410
mov byte [rsp + 0x60], 1
cmp qword [rsp + 0x80], 0
je 0x140002523
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x88], 0
je 0x14000253c
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x78], 0
je 0x14000254e
mov rcx, qword [rsp + 0x78]
call fcn.1400107f0
movzx eax, byte [rsp + 0x60]
add rsp, 0x120
pop rdi
ret