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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009e018]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0x48], r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x78], rcx
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x60], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rax, vtable.XFileIO.0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0xffffffffffffffff
mov edx, pe_nt_image_headers64
mov rcx, rdi
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, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
mov qword [rsp + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x140032493
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010004
jmp 0x14003281d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1e]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 0x12
lea rdx, [rsp + 0xd0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400324e9
mov rcx, r14
call qword [0x1400692d0]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140032818
mov r8d, dword [rsp + 0xd4]
xor edx, edx
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140032528
mov rcx, r14
call qword [0x1400692d0]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010003
jmp 0x14003281d
mov r8d, dword [rsp + 0xd4]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140032804
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0xd4]
cmp rcx, rax
je 0x14003257c
mov rcx, r14
call qword [0x1400692d0]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140032818
mov r8d, dword [rsp + 0xd8]
mov qword [rsp + 0x40], r8
xor edx, edx
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1400325c0
mov rcx, r14
call qword [0x1400692d0]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010003
jmp 0x14003281d
mov eax, dword [rsp + 0xd4]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xdd]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8, r13
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.1400191b0
mov r15d, eax
test eax, eax
je 0x14003261a
or r15d, 0xe0020000
jge 0x14003261a
mov rcx, r14
call qword [0x1400692d0]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, r15d
jmp 0x14003281d
movzx ecx, byte [rsp + 0xdc]
shl ecx, 3
mov r9d, ecx
lea rdx, [rcx + r12]
mov r8d, dword [rsp + 0xd8]
sub r8d, ecx
mov qword [rsp + 0x20], r9
mov r9, r12
lea rcx, [rsp + 0x90]
call fcn.140031f80
nop
mov rcx, qword [rsp + 0x98]
mov rdx, rcx
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0xa0]
add rax, rcx
mov qword [rsp + 0x58], rax
nop dword [rax]
cmp rdx, rax
jae 0x14003275d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140033510
mov rdi, rax
test rax, rax
je 0x140032755
cmp dword [rsp + 0x48], 0
je 0x1400326d7
mov r8, rax
xor ecx, ecx
movzx edx, word [rax]
test dx, dx
je 0x1400326c5
nop word [rax + rax]
rol ecx, 0x10
movzx eax, dx
add ecx, eax
lea r8, [r8 + 2]
movzx edx, word [r8]
test dx, dx
jne 0x1400326b0
mov dword [rsp + 0x40], ecx
lea rcx, [rsi + 0x38]
lea rdx, [rsp + 0x40]
call fcn.140033f70
mov rdx, rdi
xor ecx, ecx
movzx eax, word [rdi]
test ax, ax
je 0x140032704
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 0x1400326f0
mov dword [rsp + 0xa8], ecx
mov qword [rsp + 0xb0], rdi
lea rdx, [rsp + 0xa8]
lea rcx, [rsi + 0x38]
call fcn.140034820
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsi + 0x38]
call fcn.140034850
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
jmp 0x140032670
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140032767
call fcn.140055a68
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x140032799
mov eax, 0xfe129987
xor rdi, rax
je 0x140032799
cmp dword [rdi], eax
jne 0x140032799
lea rcx, [rdi + 8]
call fcn.14004a6c0
mov edx, 0x158
mov rcx, rdi
call fcn.140051af0
nop
jmp 0x1400327bc
test r13, r13
je 0x1400327d0
mov r8, r13
xor edx, edx
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x1400327e5
mov r8, r12
xor edx, edx
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp r14, 0xffffffffffffffff
je 0x1400327f5
mov rcx, r14
call qword [0x1400692d0]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, r15d
jmp 0x14003281d
mov rcx, r14
call qword [0x1400692d0]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010001
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140051aa0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret