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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
push r12
push r13
push r14
push r15
sub rsp, 0x80
xor eax, eax
mov r12, r9
mov ebx, r8d
mov r13, rdx
mov rdi, rcx
mov dword [rsp + 0x38], eax
mov qword [r11 - 0x68], rax
mov esi, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x78], rax
cmp qword [rcx], rax
jne 0x140081849
mov ebx, 0xc004f100
jmp 0x140081aa8
cmp qword [rcx + 8], rax
je 0x14008183f
lea r14d, [rbx + 1]
cmp r14d, ebx
ja 0x140081862
mov ebx, 0x80070216
jmp 0x140081aa8
mov edx, r14d
xor ecx, ecx
shl rdx, 4
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
jne 0x140081883
mov ebx, 0x8007000e
jmp 0x140081a7a
mov dword [rsp + 0x4c], 0x10000
mov ecx, r14d
mov dword [rax], 4
sub ecx, ebx
lea rax, [rsp + 0x4c]
mov r8, rbx
shl rcx, 4
shl r8, 4
mov rdx, r12
add rcx, r15
mov qword [r15 + 8], rax
call sub.MSVCR100.dll_memcpy
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
mov rdx, r15
mov ecx, r14d
call fcn.140081acc
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140081a71
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140081923
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140081910
mov ebx, 0x80004005
jmp 0x140081a71
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140081a71
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x28]
call sub.MSVCR100.dll_memset
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x58]
lea edx, [r9 + 5]
mov dword [rsp + 0x58], 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x1400818fc
mov r8d, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400818fc
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x20], 0
xor r8d, r8d
lea r14d, [r8 + 2]
lea r9, [rbp + 0x10]
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400818fc
mov edx, dword [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1400819b3
mov ebx, 0x8007000e
jmp 0x140081a71
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov r8, rax
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400819f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400819e5
mov ebx, 0x80004005
jmp 0x140081a68
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140081a68
mov rax, qword [0x14017cdb8]
test rax, rax
jne 0x140081a08
mov ebx, 0x800701e7
jmp 0x140081a68
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, r13
call rax
mov ebx, eax
test eax, eax
js 0x140081a68
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x140081a2c
mov ebx, 0xc004f101
jmp 0x140081a68
cmp eax, 0x10
jbe 0x140081a48
mov rcx, qword [rsp + 0x40]
cmp dword [rcx], eax
jne 0x140081a48
cmp dword [rcx + 4], r14d
jne 0x140081a48
mov eax, dword [rbp + 0x10]
cmp dword [rcx + 8], eax
je 0x140081a4f
mov ebx, 0x8007000d
jmp 0x140081a68
mov r8, rax
add rcx, 0xc
mov rdx, rdi
call sub.MSVCR100.dll_memcmp
mov ecx, 0xc004f027
test eax, eax
cmovne ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140081a8a
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x140081a98
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140081aa8
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret