Function at 0x1401f5aac
Capabilities:
Hash data via bcrypt
Read file on windows

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd40
mov qword [r11 - 0xb28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rsp + 0xd30], rax
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0xc0], rcx
mov dword [rsp + 0x40], 0x80004001
mov edx, 0x100000
mov eax, edx
cmp r12, rdx
cmovb rax, r12
mov qword [rsp + 0x70], rax
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov ecx, 0x290
add rcx, rdi
mov qword [r11 - 0xb20], rcx
lea rax, [rcx + 8]
mov qword [r11 - 0xb18], rax
mov rax, qword [rax]
sub rax, qword [rcx]
mov qword [r11 - 0xc60], rax
cmp rax, rdx
jae 0x1401f5b51
mov qword [r11 - 0xc58], rcx
call fcn.1400625d4
call fcn.1401e6658
mov rbx, rax
mov qword [rsp + 0x118], rax
mov edx, 0x2c0
mov eax, 0x2d8
xor r15d, r15d
cmp byte [rbx + 7], r15b
cmovne edx, eax
add rdx, rdi
lea rcx, [rsp + 0xd0]
call fcn.1401dd054
nop
mov al, byte [rbx + 7]
mov byte [rsp + 0x4c], al
test al, al
jne 0x1401f5bca
mov byte [rsp + 0x44], r15b
mov ecx, 0x60
add rcx, rdi
mov qword [rsp + 0x120], rcx
lea rdx, [rcx + 8]
mov qword [rsp + 0x128], rdx
mov rdx, qword [rdx]
sub rdx, qword [rcx]
mov qword [rsp + 0x130], rdx
lea r8, [rsp + 0x44]
call fcn.1401f69b0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x270]
call fcn.1401dd054
nop
mov qword [rsp + 0x288], r15
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x290], xmm0
mov qword [rsp + 0x2a0], r12
mov qword [rsp + 0x2a8], r15
mov dword [rsp + 0x2b0], r15d
xor edx, edx
mov r8d, 0x978
lea rcx, [rsp + 0x2b8]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov byte [rsp + 0xc30], r15b
lea r8, [rsp + 0x2b0]
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x258]
call fcn.1402332ec
mov rbx, rax
mov qword [rsp + 0x138], rax
lea rax, [rsp + 0x288]
cmp rax, rbx
je 0x1401f5d70
cmp qword [rsp + 0x288], r15
je 0x1401f5d1e
mov rax, qword [rsp + 0x298]
sub rax, qword [rsp + 0x288]
sar rax, 3
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x98], rcx
mov rdx, rcx
movabs r8, 0x1fffffffffffffff
cmp rax, r8
ja 0x1401f5ddf
shl rax, 3
cmp rax, 0x1000
jb 0x1401f5d00
test dl, 0x1f
jne 0x1401f5ddf
lea rax, [rcx - 8]
mov qword [rsp + 0x148], rax
mov rcx, qword [rax]
mov qword [rsp + 0x150], rcx
cmp rcx, rdx
jae 0x1401f5ddf
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
ja 0x1401f5ddf
mov qword [rsp + 0x98], rcx
call fcn.1402aed28
nop
mov qword [rsp + 0x288], r15
mov qword [rsp + 0x290], r15
mov qword [rsp + 0x298], r15
mov rax, qword [rbx]
mov qword [rsp + 0x288], rax
lea rdx, [rbx + 8]
mov qword [rsp + 0x158], rdx
mov rax, qword [rdx]
mov qword [rsp + 0x290], rax
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x160], rcx
mov rax, qword [rcx]
mov qword [rsp + 0x298], rax
mov qword [rbx], r15
mov qword [rsp + 0x168], rdx
mov qword [rdx], r15
mov qword [rsp + 0x170], rcx
mov qword [rcx], r15
lea rcx, [rsp + 0x258]
call fcn.140055fcc
nop
mov rsi, r15
mov qword [rsp + 0x80], r15
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0xe8]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdx, [rsp + 0x58]
lea rcx, [0x1404564f8]
call fcn.1401e5b30
nop
mov r13, qword [rsp + 0x58]
test r13, r13
je 0x1401f5de6
lea rcx, [r13 + 0x30]
mov qword [rsp + 0x178], rcx
mov edi, 1
mov eax, edi
lock xadd qword [rcx], rax
mov rsi, qword [rsp + 0x80]
mov r13, qword [rsp + 0x58]
jmp 0x1401f5deb
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
mov edi, 1
cmp r12, rsi
jbe 0x1401f649d
mov dword [rsp + 0x48], r15d
mov ebx, 0x290
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov qword [rsp + 0x180], rbx
mov rdx, qword [rbx]
mov qword [rsp + 0x188], rdx
mov rcx, qword [r14]
mov qword [rsp + 0x190], rcx
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401f620e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x88], eax
test eax, eax
je 0x1401f6006
cmp eax, 0x3e5
je 0x1401f6006
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x40], ecx
call fcn.14004acb4
mov qword [rsp + 0x198], rax
mov rcx, qword [rax + 8]
mov qword [rsp + 0x1a0], rcx
cmp dword [rcx], 4
jbe 0x1401f5f74
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa0], reloc.Cabinet.dll_SetCompressorInformation
lea rax, str.Failed_to_read_file_for_hashing
mov qword [rsp + 0xc60], rax
mov dword [rsp + 0xc68], 0x40
mov dword [rsp + 0xc6c], r15d
mov rax, qword [r14]
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xc70], rax
mov dword [rsp + 0xc78], 8
mov dword [rsp + 0xc7c], r15d
lea rax, [rsp + 0x70]
mov qword [rsp + 0xc80], rax
mov dword [rsp + 0xc88], 8
mov dword [rsp + 0xc8c], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0xc90], rax
mov dword [rsp + 0xc98], 4
mov dword [rsp + 0xc9c], r15d
lea rax, [rsp + 0xc40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039de61]
call fcn.140001158
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401f5fc6
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x1401f5fc6
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1401f5fc6
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.PM_]
nop
lea rcx, [rsp + 0x270]
call fcn.140233694
lea rcx, [rsp + 0x288]
call fcn.140055fcc
nop
lea rcx, [rsp + 0x270]
call fcn.1400584ac
nop
lea rcx, [rsp + 0xd0]
call fcn.1400584ac
nop
mov eax, dword [rsp + 0x6c]
jmp 0x1401f65d9
mov dword [rsp + 0x68], r15d
mov rcx, qword [r14]
mov qword [rsp + 0x1b0], rcx
mov dword [rsp + 0x20], r15d
or r9d, 0xffffffff
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResultEx]
test eax, eax
jne 0x1401f61e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x90], eax
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x40], ecx
call fcn.14004acb4
mov qword [rsp + 0x1b8], rax
mov rcx, qword [rax + 8]
mov qword [rsp + 0x1c0], rcx
cmp dword [rcx], 4
jbe 0x1401f614e
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb0], 0x2c
lea rax, str.Failed_to_wait_for_IO_completion_for_hashing
mov qword [rsp + 0xcc0], rax
mov dword [rsp + 0xcc8], 0x5a
mov dword [rsp + 0xccc], r15d
mov rax, qword [r14]
mov qword [rsp + 0x1c8], rax
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xcd0], rax
mov dword [rsp + 0xcd8], 8
mov dword [rsp + 0xcdc], r15d
lea rax, [rsp + 0x70]
mov qword [rsp + 0xce0], rax
mov dword [rsp + 0xce8], 8
mov dword [rsp + 0xcec], r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0xcf0], rax
mov dword [rsp + 0xcf8], 4
mov dword [rsp + 0xcfc], r15d
lea rax, [rsp + 0xca0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039de61]
call fcn.140001158
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401f61a0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x1401f61a0
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1401f61a0
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.PM_]
nop
lea rcx, [rsp + 0x270]
call fcn.140233694
lea rcx, [rsp + 0x288]
call fcn.140055fcc
nop
lea rcx, [rsp + 0x270]
call fcn.1400584ac
nop
lea rcx, [rsp + 0xd0]
call fcn.1400584ac
nop
mov eax, dword [rsp + 0x54]
jmp 0x1401f65d9
mov edx, dword [rsp + 0x68]
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x78], r15d
lea rax, [rsi + rdx]
mov qword [rsp + 0x78], rax
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0xf8], ecx
shr rax, 0x20
mov dword [rsp + 0xfc], eax
jmp 0x1401f6212
mov edx, dword [rsp + 0x48]
test edx, edx
jne 0x1401f6220
call fcn.140298678
jmp 0x1401f649d
mov eax, edx
add rsi, rax
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x1d0], rbx
mov r14, qword [rbx]
mov qword [rsp + 0x1d8], r14
mov ebx, dword [rsp + 0x48]
mov qword [rsp + 0x1e0], rbx
test r14, r14
je 0x1401f6396
test rbx, rbx
je 0x1401f6396
mov word [rsp + 0x50], r15w
mov rax, qword [rsp + 0x278]
sub rax, qword [rsp + 0x270]
sar rax, 4
mov qword [rsp + 0x1e8], rax
movzx r9d, r15w
cmp r9, rax
jae 0x1401f65b5
mov ecx, r9d
add rcx, rcx
mov rax, qword [rsp + 0x270]
mov edx, dword [rax + rcx*8]
test edx, edx
je 0x1401f6595
cmp edx, edi
je 0x1401f657c
cmp edx, 2
je 0x1401f6554
jle 0x1401f6393
cmp edx, 5
jle 0x1401f635c
cmp edx, 6
je 0x1401f62f0
cmp edx, 7
jne 0x1401f6393
mov r8, rbx
mov rdx, r14
mov rcx, qword [rsp + 0x288]
mov rcx, qword [rcx + r9*8]
call fcn.140297dbc
jmp 0x1401f65ac
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + r9*8]
mov qword [rsp + 0x1f0], rcx
mov rax, qword [rcx]
mov qword [rsp + 0x1f8], rax
mov r8, qword [rcx]
mov qword [rsp + 0x200], r8
mov rdx, qword [rcx]
mov qword [rsp + 0x208], rdx
add rax, 8
lea rcx, [r8 + 4]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x2a0]
mov r8, qword [rsp + 0x2a8]
mov rdx, rbx
mov rcx, r14
call fcn.14023ace8
jmp 0x1401f65ac
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + r9*8]
mov qword [rsp + 0x210], rcx
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x218], rcx
xor r9d, r9d
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x1401f65ac
xor r15d, r15d
call fcn.14004acb4
mov qword [rsp + 0x228], rax
mov rcx, qword [rax + 8]
mov qword [rsp + 0x230], rcx
cmp dword [rcx], 3
jbe 0x1401f6412
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xc8], reloc.Cabinet.dll_SetCompressorInformation
lea rax, str.Failed_to_calculate_hashes_data
mov qword [rsp + 0xd20], rax
mov dword [rsp + 0xd28], 0x40
mov dword [rsp + 0xd2c], r15d
lea rax, [rsp + 0xd00]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a26ff]
call fcn.140001158
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401f645c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x1401f645c
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1401f645c
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.PM_]
nop
lea rcx, [rsp + 0x270]
call fcn.140233694
lea rcx, [rsp + 0x288]
call fcn.140055fcc
nop
lea rcx, [rsp + 0x270]
call fcn.1400584ac
nop
lea rcx, [rsp + 0xd0]
call fcn.1400584ac
nop
mov eax, 0x25c
jmp 0x1401f65d9
lea rcx, [rsp + 0x270]
call fcn.140233694
cmp r12, rsi
jne 0x1401f64c5
test r13, r13
je 0x1401f64c5
lea rax, [r13 + 0x38]
mov qword [rsp + 0x238], rax
lock xadd qword [rax], rdi
mov dword [rsp + 0x40], r15d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401f6514
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x1401f6514
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1401f6514
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.PM_]
nop
lea rcx, [rsp + 0x270]
call fcn.140233694
lea rcx, [rsp + 0x288]
call fcn.140055fcc
nop
lea rcx, [rsp + 0x270]
call fcn.1400584ac
nop
lea rcx, [rsp + 0xd0]
call fcn.1400584ac
nop
mov eax, dword [rsp + 0x40]
jmp 0x1401f65d9
mov rax, qword [rsp + 0x288]
mov rdx, qword [rax + r9*8]
mov qword [rsp + 0x220], rdx
mov r9, rbx
mov r8, r14
lea rcx, [0x1402fdca0]
call fcn.1402a0438
jmp 0x1401f65ac
mov r8, rbx
mov rdx, r14
mov rcx, qword [rsp + 0x288]
mov rcx, qword [rcx + r9*8]
call fcn.14029cbb8
jmp 0x1401f65ac
mov r8, rbx
mov rdx, r14
mov rcx, qword [rsp + 0x288]
mov rcx, qword [rcx + r9*8]
call fcn.14029e520
add r15w, di
jmp 0x1401f625e
add qword [rsp + 0x2a8], rbx
mov byte [rsp + 0xc30], dil
mov r14, qword [rsp + 0xc0]
xor r15d, r15d
jmp 0x1401f5deb
mov rcx, qword [rsp + 0xd30]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0xd40]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret