Function at 0x1400673e0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.14007e550
sub rsp, rax
mov rax, qword [0x1400b6018]
xor rax, rsp
mov qword [rbp + 0xf50], rax
mov r15, qword [rbp + 0xfc8]
xor esi, esi
and qword [rsp + 0x40], rsi
mov r12d, r8d
and qword [rsp + 0x38], rsi
mov edi, edx
and dword [rsp + 0x30], esi
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
mov r13, r9
call fcn.1400547d0
mov r9d, edi
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400674a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edi, 0xe2
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilcryputil.cpp
test eax, eax
mov edx, edi
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_acquire_crypto_context.
jmp 0x14006758d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140067530
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edi, 0xe8
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilcryputil.cpp
test eax, eax
mov edx, edi
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_initiate_hash.
jmp 0x14006758d
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x140067634
xor r9d, r9d
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400675f4
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140067507
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edi, 0xf0
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilcryputil.cpp
test eax, eax
mov edx, edi
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_read_data_block.
mov r9d, 0xb
mov qword [rsp + 0x28], rax
mov edx, edi
mov dword [rsp + 0x20], esi
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilcryputil.cpp
lea r8d, [r9 - 6]
call fcn.1400012b4
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400675be
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400675d0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.140053b50
add rsp, 0x1060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edi, 0xfb
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilcryputil.cpp
test eax, eax
mov edx, edi
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_hash_data_block.
jmp 0x14006758d
and dword [rsp + 0x20], esi
lea r9, [rbp + 0xfc0]
mov r8, r13
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140067691
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edi, 0x102
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilcryputil.cpp
test eax, eax
mov edx, edi
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_get_hash_value.
jmp 0x14006758d
test r15, r15
je 0x1400675ae
mov r9d, 1
mov r8, r15
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400675ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edi, 0x109
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilcryputil.cpp
test eax, eax
mov edx, edi
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_get_file_pointer.
jmp 0x14006758d