Function at 0x14000c8c0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x580
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400537d8]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov rbx, r8
mov rdi, rdx
mov r14d, ecx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x40], r15d
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x7c], eax
cmp qword [rdi + 0x18], 8
jb 0x14000c943
mov rdi, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000cce6
mov dword [rbp - 0x80], r15d
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov esi, eax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000002
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
nop dword [rax + rax]
mov qword [rsp + 0x58], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp qword [rsp + 0x58], r15
je 0x14000cd36
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x40], r15d
mov qword [rbp - 0x78], r15
mov qword [rsp + 0x48], r15
mov ecx, r14d
call fcn.140027e9c
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000cd8c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000ca39
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000ca4f
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov ecx, 0xa00000
mov eax, dword [rsp + 0x50]
cmp eax, ecx
cmova eax, ecx
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov qword [rsp + 0x70], rax
mov r8d, dword [rsp + 0x50]
mov dword [rsp + 0x64], r8d
mov dword [rsp + 0x60], r15d
mov rcx, qword [rsp + 0x48]
mov qword [rbp + 0x250], rcx
mov qword [rbp + 0x258], r15
mov dword [rbp + 0x460], r15d
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov r9d, dword [rsp + 0x78]
mov rdx, rax
lea rcx, [rbp + 0x250]
call fcn.140028068
mov edi, eax
test eax, eax
jne 0x14000cc8b
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x14000caf7
mov qword [rbx + 8], rax
mov esi, dword [rsp + 0x40]
mov edx, esi
mov rcx, rbx
call fcn.14000d9e0
test rsi, rsi
je 0x14000cbef
mov r8, qword [rbx + 8]
mov rdi, qword [rbp - 0x78]
cmp rdi, r8
jae 0x14000cb22
cmp qword [rbx], rdi
mov al, 1
jbe 0x14000cb25
mov al, r15b
test al, al
je 0x14000cb98
mov r9, qword [rbx]
mov rcx, rdi
sub rcx, r9
movabs rax, 0x7878787878787879
imul rcx
mov r14, rdx
sar r14, 5
mov rax, r14
shr rax, 0x3f
add r14, rax
cmp r8, qword [rbx + 0x10]
jne 0x14000cb6a
mov edx, 1
mov rcx, rbx
call fcn.14000dca0
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
imul rax, r14, 0x44
add rax, r9
movups xmm0, xmmword [rax]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r8 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r8 + 0x30], xmm1
mov eax, dword [rax + 0x40]
jmp 0x14000cbd4
cmp r8, qword [rbx + 0x10]
jne 0x14000cbaf
mov edx, 1
mov rcx, rbx
call fcn.14000dca0
mov r8, qword [rbx + 8]
movups xmm0, xmmword [rdi]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [r8 + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [r8 + 0x30], xmm1
mov eax, dword [rdi + 0x40]
mov dword [r8 + 0x40], eax
add qword [rbx + 8], 0x44
mov r8, qword [rbx + 8]
add rdi, 0x44
sub rsi, 1
jne 0x14000cb16
mov rcx, qword gs:[0x60]
mov r8, qword [rbp - 0x78]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000cc38
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000cc4e
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000cc64
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140039fa0
mov rbx, qword [rsp + 0x5c8]
add rsp, 0x580
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
lea rdx, str.HashGeneratePageHashesEx_failed.
lea rcx, [rbp + 0x40]
call fcn.1400094c0
nop
lea rcx, [rbp + 0x228]
call fcn.140001a54
nop
mov r9, rax
mov r8d, edi
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x160]
call fcn.14000b2e0
lea rdx, [0x140050300]
lea rcx, [rbp + 0x160]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Error_opening_file_while_computing_page_hashes.
lea rcx, [rbp - 0x38]
call fcn.1400094c0
nop
lea rcx, [rbp + 0x1b0]
call fcn.140001a54
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
mov r9, rbx
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x70]
call fcn.14000b2e0
lea rdx, [0x140050300]
lea rcx, [rbp + 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Error_creating_file_mapping_while_computing_page_hashes.
lea rcx, [rbp - 0x10]
call fcn.1400094c0
nop
lea rcx, [rbp + 0x1d8]
call fcn.140001a54
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
mov r9, rbx
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0xc0]
call fcn.14000b2e0
lea rdx, [0x140050300]
lea rcx, [rbp + 0xc0]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.BCryptOpenAlgorithmProvider_failed.
lea rcx, [rbp + 0x18]
call fcn.1400094c0
nop
lea rcx, [rbp + 0x200]
call fcn.140001a54
nop
mov r9, rax
mov r8d, edi
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x110]
call fcn.14000b2e0
lea rdx, [0x140050300]
lea rcx, [rbp + 0x110]
call sub.msvcrt.dll__CxxThrowException
int3