Function at 0x140004e90
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x1060
call fcn.140189b00
sub rsp, rax
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rsi, rdx
mov r12, r8
mov rbx, rcx
lea r13, str.CCspHelper::CryptoHashStream
lea rdx, str..ce_CspEncrypter.cpp
lea r9, [0x1401cdac8]
mov r8d, 0x291
mov ecx, 0x44
mov qword [rsp + 0x20], r13
call fcn.140038200
mov rcx, qword [rbx + 8]
lea rbp, [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rbp
mov edi, 0xffff4a5b
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140004f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___::CryptCreateHash_failed_with_Windows_error_code:__d_.
lea rdx, str..ce_CspEncrypter.cpp
mov dword [rsp + 0x28], eax
mov r8d, 0x298
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov edi, 0xffff4a51
jmp 0x1400051a2
xor ebx, ebx
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
mov rsi, rax
je 0x140005175
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0xffc
mov byte [rsp + 0x50], bl
call fcn.140041940
mov dword [rsp + 0x40], ebx
nop
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0xffd
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
cmp al, 1
jne 0x140004fe6
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rbp]
lea rdx, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140004ff2
mov edi, ebx
jmp 0x140004fea
test al, al
je 0x140005024
cmp dword [rsp + 0x40], ebx
ja 0x140004fa0
jmp 0x140005024
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___::CryptHashData_failed_with_Windows_error_code:__d_.
lea rdx, str..ce_CspEncrypter.cpp
mov dword [rsp + 0x28], eax
mov r8d, 0x2b7
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov edi, 0xffff4a50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140005175
mov rcx, qword [rbp]
lea r9, [rsp + 0x40]
lea edx, [rdi + 2]
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14000508b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___CryptGetHashParam_failed_with_Windows_error_code:__d_.
lea rdx, str..ce_CspEncrypter.cpp
mov dword [rsp + 0x28], eax
lea ecx, [rdi + 0x45]
mov r8d, 0x2d6
mov qword [rsp + 0x20], r13
call fcn.140038200
mov edi, 0xffff4a4f
jmp 0x140005198
mov ecx, dword [rsp + 0x40]
lea rdx, [0x14023df20]
call fcn.140042d10
test rax, rax
mov rsi, rax
jne 0x1400050ce
lea r9, str._s___Allocate_hash_memory_failed.
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [rax + 0x45]
mov r8d, 0x2de
mov qword [rsp + 0x20], r13
call fcn.140038200
mov edi, 0xffff4a59
jmp 0x140005198
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.140041940
mov rcx, qword [rbp]
lea r9, [rsp + 0x40]
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140005138
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._s___CryptGetHashParam_failed_with_Windows_error_code:__d_.
lea rdx, str..ce_CspEncrypter.cpp
mov dword [rsp + 0x28], eax
mov r8d, 0x2ec
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov rcx, rsi
mov edi, 0xffff4a4f
call fcn.140042990
jmp 0x140005198
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
mov eax, 4
add rcx, r12
cmp qword [rcx + 0x48], rbx
cmove ebx, eax
xor r8d, r8d
mov edx, ebx
call fcn.1400033c0
mov r8d, dword [rsp + 0x40]
lea rcx, [r12 + 0x10]
mov rdx, rsi
call fcn.140009550
mov rcx, rsi
call fcn.140042990
jmp 0x140005198
lea r9, str._s___Hash_stream_process_failed.
lea rdx, str..ce_CspEncrypter.cpp
mov r8d, 0x2c9
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea r9, str._s______
lea rdx, str..ce_CspEncrypter.cpp
mov r8d, 0x2fc
mov ecx, 0x44
mov qword [rsp + 0x20], r13
call fcn.140038200
mov eax, edi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1060
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret