Function at 0x140004b60
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x1050
call fcn.140189b00
sub rsp, rax
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdi, rdx
mov r12, r8
mov rbx, rcx
lea r13, str.CCspHelper::CryptoHashStream
lea rdx, str..ce_CspEncrypter.cpp
lea r9, [0x1401cdac8]
mov r8d, 0x231
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 esi, 0xffff4a5b
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140004c1c
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, 0x238
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov esi, 0xffff4a51
jmp 0x140004e38
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0xffc
mov byte [rsp + 0x40], 0
call fcn.140041940
mov r11, qword [rdi]
movsxd rax, dword [r11 + 4]
test byte [rax + rdi + 0x10], 1
jne 0x140004e0b
xor esi, esi
nop
nop
nop
lea rdx, [rsp + 0x40]
mov r9d, 0xffd
or r8, 0xffffffffffffffff
mov rcx, rdi
call fcn.14000a900
mov r8d, dword [rdi + 8]
mov rcx, qword [rbp]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140004dd9
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
test byte [rcx + rdi + 0x10], 1
je 0x140004c50
mov rcx, qword [rbp]
xor r8d, r8d
lea r9, [rsp + 0x30]
lea edx, [r8 + 2]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140004cec
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, 0x264
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov esi, 0xffff4a4f
jmp 0x140004e2e
mov ecx, dword [rsp + 0x30]
lea rdx, [0x14023df20]
call fcn.140042d10
test rax, rax
mov rbx, rax
jne 0x140004d2f
lea r9, str._s___Allocate_hash_memory_failed.
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [rax + 0x45]
mov r8d, 0x26c
mov qword [rsp + 0x20], r13
call fcn.140038200
mov esi, 0xffff4a59
jmp 0x140004e2e
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.140041940
mov rcx, qword [rbp]
lea r9, [rsp + 0x30]
mov r8, rbx
mov edx, 2
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140004d9c
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, 0x27a
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov rcx, rbx
mov esi, 0xffff4a4f
call fcn.140042990
jmp 0x140004e2e
mov rax, qword [r12]
mov edx, esi
movsxd rcx, dword [rax + 4]
mov eax, 4
add rcx, r12
cmp qword [rcx + 0x48], rdx
cmove edx, eax
xor r8d, r8d
call fcn.1400033c0
mov r8d, dword [rsp + 0x30]
lea rcx, [r12 + 0x10]
mov rdx, rbx
call fcn.140009550
mov rcx, rbx
call fcn.140042990
jmp 0x140004e2e
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, 0x24b
mov ecx, 0x45
mov qword [rsp + 0x20], r13
call fcn.140038200
mov esi, 0xffff4a50
lea r9, str._s___Hash_stream_process_failed.
lea rdx, str..ce_CspEncrypter.cpp
mov r8d, 0x257
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, 0x28a
mov ecx, 0x44
mov qword [rsp + 0x20], r13
call fcn.140038200
mov eax, esi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x1098]
add rsp, 0x1050
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret