Function at 0x1400128b0
Capabilities:
Read file on windows
Set file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x54], r8d
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x90], rcx
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x78], rbx
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rax, rax
je 0x140012911
call rax
jmp 0x140012918
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rax, vtable.XFileIO.0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
mov edx, pe_nt_image_headers64
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r15 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400129cf
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400129cf
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x1400129be
call rax
jmp 0x1400129c5
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010004
jmp 0x140012de4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1e]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 0x12
lea rdx, [rsp + 0xd8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140012a38
cmp rdi, 0xffffffffffffffff
je 0x140012a1c
mov rcx, rdi
call qword [0x1400472c0]
nop
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x140012a2c
call rax
jmp 0x140012a33
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140012ddf
mov r8d, dword [rsp + 0xdc]
xor edx, edx
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140012a8d
cmp rdi, 0xffffffffffffffff
je 0x140012a6c
mov rcx, rdi
call qword [0x1400472c0]
nop
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x140012a7c
call rax
jmp 0x140012a83
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010003
jmp 0x140012de4
mov r8d, dword [rsp + 0xdc]
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140012db8
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0xdc]
cmp rcx, rax
je 0x140012af4
cmp rdi, 0xffffffffffffffff
je 0x140012ad8
mov rcx, rdi
call qword [0x1400472c0]
nop
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x140012ae8
call rax
jmp 0x140012aef
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140012ddf
mov r8d, dword [rsp + 0xe0]
mov qword [rsp + 0x60], r8
xor edx, edx
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x140012b4e
cmp rdi, 0xffffffffffffffff
je 0x140012b2d
mov rcx, rdi
call qword [0x1400472c0]
nop
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x140012b3d
call rax
jmp 0x140012b44
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010003
jmp 0x140012de4
mov eax, dword [rsp + 0xdc]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xe5]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8, r13
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140004d50
mov esi, eax
test eax, eax
jne 0x140012d87
movzx ecx, byte [rsp + 0xe4]
shl ecx, 3
mov r9d, ecx
lea rdx, [rcx + r12]
mov r8d, dword [rsp + 0xe0]
sub r8d, ecx
mov qword [rsp + 0x20], r9
mov r9, r12
lea rcx, [rsp + 0x98]
call fcn.140012470
nop
mov rcx, qword [rsp + 0xa0]
mov rdx, rcx
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0xa8]
add rax, rcx
mov qword [rsp + 0x60], rax
cmp rdx, rax
jae 0x140012ccd
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.140013ec0
mov rsi, rax
test rax, rax
je 0x140012cc5
cmp dword [rsp + 0x54], 0
je 0x140012c46
mov ecx, r15d
movzx eax, word [rax]
test ax, ax
je 0x140012c34
mov rdx, rsi
nop word [rax + rax]
rol ecx, 0x10
movzx eax, ax
add ecx, eax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
test ax, ax
jne 0x140012c20
mov dword [rsp + 0x50], ecx
lea rcx, [r14 + 0x48]
lea rdx, [rsp + 0x50]
call fcn.140015070
mov rdx, rsi
mov ecx, r15d
movzx eax, word [rsi]
test ax, ax
je 0x140012c74
nop dword [rax]
nop dword [rax + rax]
rol ecx, 0x10
movzx eax, ax
add ecx, eax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
test ax, ax
jne 0x140012c60
mov dword [rsp + 0xb0], ecx
mov qword [rsp + 0xb8], rsi
lea rdx, [rsp + 0xb0]
lea rcx, [r14 + 0x48]
call fcn.140015e70
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xc8]
lea rcx, [r14 + 0x48]
call fcn.140015ea0
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
jmp 0x140012be3
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140012cd7
call fcn.140033b48
mov rsi, qword [rsp + 0x98]
test rsi, rsi
je 0x140012d09
mov eax, 0xfe129987
xor rsi, rax
je 0x140012d09
cmp dword [rsi], eax
jne 0x140012d09
lea rcx, [rsi + 8]
call fcn.14002d060
mov edx, 0x158
mov rcx, rsi
call fcn.14002fb54
nop
jmp 0x140012d32
test r13, r13
je 0x140012d46
mov r8, r13
xor edx, edx
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x140012d5b
mov r8, r12
xor edx, edx
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp rdi, 0xffffffffffffffff
je 0x140012d6b
mov rcx, rdi
call qword [0x1400472c0]
nop
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x140012d7b
call rax
jmp 0x140012d82
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, r15d
jmp 0x140012de4
or esi, 0xe0020000
cmp rdi, 0xffffffffffffffff
je 0x140012d9d
mov rcx, rdi
call qword [0x1400472c0]
nop
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x140012dad
call rax
jmp 0x140012db4
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, esi
jmp 0x140012de4
cmp rdi, 0xffffffffffffffff
je 0x140012dc8
mov rcx, rdi
call qword [0x1400472c0]
nop
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rax, rax
je 0x140012dd8
call rax
jmp 0x140012ddf
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010001
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14002fb30
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret