Function at 0x1400bf954
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push r13
push r14
push r15
sub rsp, 0x200
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov rbx, rcx
mov qword [rsp + 0x128], rcx
lea rdi, [0x140023590]
mov qword [rsp + 0x58], rdi
lea rsi, [0x140023bd0]
mov qword [rsp + 0x60], rsi
lea rax, [0x140023578]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x1f2
mov dword [rsp + 0x74], 1
mov r15d, 0xff
mov dword [rsp + 0x78], r15d
xor r14d, r14d
mov dword [rsp + 0xf8], 0x1000000
lea r13d, [r14 + 0x78]
mov r8d, r13d
xor edx, edx
lea rcx, [r11 - 0x198]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.140052e50
nop
mov rcx, rbx
call fcn.1400c04d0
lea rcx, [0x140001b60]
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
lea r8d, [r14 + 0xc]
lea rdx, [rsp + 0x1e8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x1400bfacb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400bfa61
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x138], eax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
lea rbx, [0x140023578]
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x1fe
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [0x140023c20]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.14006dcc8
jmp 0x1400bfad2
lea rbx, [0x140023578]
cmp dword [rsp + 0x1e8], 0x9d4feff5
jne 0x1400bff59
cmp dword [rsp + 0x1ec], 1
jne 0x1400bff59
mov eax, dword [rsp + 0x1f0]
mov dword [rsp + 0x40], eax
jmp 0x1400bfb0a
mov r15d, 0xff
mov r13d, 0x78
mov eax, dword [rsp + 0x40]
dec dword [rsp + 0x40]
test eax, eax
je 0x1400bff39
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov r8d, 0x14
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x1400bfbb7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400bfb56
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x138], eax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x21a
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [0x140023c20]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.14006dcc8
mov ecx, dword [rsp + 0x1d0]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x1401544ec]
mov rcx, rax
call fcn.14005debc
mov r13, rax
mov qword [rsp + 0x100], rax
test rax, rax
jne 0x1400bfc52
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x226
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rax + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r9, [0x140023cb8]
mov r8d, 0x8007000e
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.140101d5c
nop
lea rdx, [0x1401544ec]
mov ecx, 0x20
call fcn.14005de74
mov r15, rax
test rax, rax
je 0x1400bfc71
mov qword [rax + 0x18], r14
jmp 0x1400bfc74
mov r15, r14
mov qword [rsp + 0x48], r15
test r15, r15
jne 0x1400bfce2
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x22d
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [r15 + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r9, [0x140023cf0]
mov r8d, 0x8007000e
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.140101d5c
mov r8d, dword [rsp + 0x1d0]
add r8d, r8d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov rdx, r13
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x1400bfd83
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400bfd1e
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x138], eax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x233
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [0x140023c20]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.14006dcc8
movups xmm0, xmmword [0x140001940]
movdqu xmmword [rsp + 0x1b0], xmm0
lea rdx, [r15 + 0x18]
lea r8, [rsp + 0x1b0]
mov rcx, r13
call qword [sym.imp.VSSAPI.DLL_long_int___cdecl_LoadVssSnapshotSetDescription_unsigned_short_int_const____ptr64__class_IVssSnapshotSetDescription____ptr64____ptr64__struct__GUID_]
mov dword [rsp + 0x138], eax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x23a
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [0x1400125a0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.140073c8c
mov rsi, qword [r15 + 0x18]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x28]
mov rcx, rdi
call qword [fcn.14005e6a0]
lea rdx, [r15 + 8]
mov rcx, rsi
call rdi
mov dword [rsp + 0x138], eax
lea rdi, [0x140023590]
mov qword [rsp + 0x58], rdi
lea rsi, [0x140023bd0]
mov qword [rsp + 0x60], rsi
lea rbx, [0x140023578]
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x23e
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0xff
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [0x14001fda0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.140073c8c
mov rcx, qword [rsp + 0x128]
mov rax, qword [rcx + 0xb0]
mov qword [r15], rax
mov qword [rcx + 0xb0], r15
mov rcx, r13
call fcn.14005d7b4
nop
jmp 0x1400bfef3
cmp dword [rsp + 0x138], r14d
jge 0x1400bfafe
mov rcx, r13
call fcn.14005d7b4
test r15, r15
je 0x1400bff16
mov rcx, r15
call fcn.1400aa178
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x108], eax
lea rdx, [0x140153178]
lea rcx, [rsp + 0x108]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rsp + 0x110]
call fcn.140070dec
nop
lea rcx, [rsp + 0x130]
call fcn.140050f50
jmp 0x1400c0018
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x207
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov r9d, 1
lea r8, [rsp + 0x58]
mov edx, 0x3012
lea rcx, [rsp + 0x130]
call fcn.14004a830
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], 0x20a
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r9, [0x140023c40]
mov r8d, 0x80042302
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call fcn.140101d5c
nop
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret