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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0xc0
mov rdi, rcx
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
lea r15, [0x14000d0d8]
cmp rcx, r12
je 0x1400d7721
test byte [rcx + 0x1c], 4
je 0x1400d7721
cmp byte [rcx + 0x19], 4
jb 0x1400d7721
mov rcx, qword [rcx + 0x10]
mov edx, 0x81
mov r8, r15
call fcn.14001dd24
lea rcx, [rsp + 0x40]
xor ebx, ebx
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0xe8], ebx
call sub.msvcrt.dll_memset
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
jne 0x1400d77a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a8a
test byte [rcx + 0x1c], 4
je 0x1400d7a68
cmp byte [rcx + 0x19], 2
jb 0x1400d7a68
mov rcx, qword [rcx + 0x10]
mov edx, 0x82
mov r9d, eax
mov r8, r15
call fcn.14001de24
jmp 0x1400d7a61
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0xc0000000
lea r8d, [r9 + 7]
mov rcx, rdi
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d7836
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a58
test byte [rcx + 0x1c], 4
je 0x1400d7a58
cmp byte [rcx + 0x19], 2
jb 0x1400d7a58
mov rcx, qword [rcx + 0x10]
mov edx, 0x83
mov r9, rdi
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x1400d7a58
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0xe8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90020
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400d78b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a4f
test byte [rcx + 0x1c], 4
je 0x1400d7a4f
cmp byte [rcx + 0x19], 2
jb 0x1400d7a4f
mov edx, 0x84
jmp 0x1400d7a3c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x1400d790e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a4f
test byte [rcx + 0x1c], 4
je 0x1400d7a4f
cmp byte [rcx + 0x19], 2
jb 0x1400d7a4f
mov edx, 0x85
jmp 0x1400d7a3c
lea r9, [rsp + 0xe8]
mov r8d, 0x10000
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400d7979
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a4f
test byte [rcx + 0x1c], 4
je 0x1400d7a4f
cmp byte [rcx + 0x19], 2
jb 0x1400d7a4f
mov edx, 0x86
jmp 0x1400d7a3c
lea rcx, [rbp + 0x1e00]
lea rdx, [rsp + 0x40]
mov r8d, 0x80
call sub.msvcrt.dll_memcpy
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x1400d79e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a4f
test byte [rcx + 0x1c], 4
je 0x1400d7a4f
cmp byte [rcx + 0x19], 2
jb 0x1400d7a4f
mov edx, 0x87
jmp 0x1400d7a3c
lea r9, [rsp + 0xe8]
mov r8d, 0x10000
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400d7a4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a4f
test byte [rcx + 0x1c], 4
je 0x1400d7a4f
cmp byte [rcx + 0x19], 2
jb 0x1400d7a4f
mov edx, 0x88
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400d7a8a
test byte [rcx + 0x1c], 4
je 0x1400d7a8a
cmp byte [rcx + 0x19], 4
jb 0x1400d7a8a
mov rcx, qword [rcx + 0x10]
mov edx, 0x89
mov r8, r15
call fcn.14001dd24
lea r11, [rsp + 0xc0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rdi
ret