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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r8
mov rdi, rdx
mov qword [rbp - 0x69], rdx
xor r14d, r14d
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x59], r14
mov rax, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400d8058
mov rax, qword [r8]
lea rbx, [r8 + 0x10]
mov qword [rbx], r14
mov word [rax], r14w
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400d8219
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400d80bb
xor edx, edx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1400d8219
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400d80c8
mov rdx, qword [rdi]
mov r8d, dword [rdi + 0x10]
add r8d, r8d
xor r9d, r9d
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400d8202
mov dword [rbp - 0x51], 0x14
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x51]
lea r8, [rbp + 0x17]
mov edx, 2
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400d8202
mov r10d, dword [rbp - 0x51]
cmp r10d, 0x14
ja 0x1400d8202
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov word [rbp + 7], ax
mov r9d, r14d
test r10d, r10d
je 0x1400d8186
lea r11, [rbp + 0x17]
lea r15, str.0123456789abcdef
nop dword [rax]
movzx r8d, byte [r11]
lea edx, [r9 + r9]
mov eax, r8d
shr rax, 4
movzx eax, word [r15 + rax*2]
mov word [rbp + rdx*2 - 0x49], ax
and r8d, 0xf
lea ecx, [rdx + 1]
movzx eax, word [r15 + r8*2]
mov word [rbp + rcx*2 - 0x49], ax
inc r9d
lea r11, [r11 + 1]
cmp r9d, r10d
jb 0x1400d8150
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rax, [rbp - 0x49]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], r14w
jne 0x1400d81b0
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x1400d81e9
cmp rax, 7
jbe 0x1400d81cc
mov rsi, qword [rsi]
mov qword [rbx], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x49]
mov rcx, rsi
call fcn.1403ebbf0
mov word [rbx + rsi], r14w
jmp 0x1400d81f6
lea r9, [rbp - 0x49]
mov rcx, rsi
call fcn.140023ce0
nop
mov rcx, rdi
call fcn.140021d30
mov al, 1
jmp 0x1400d8223
xor edx, edx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
mov rcx, rdi
call fcn.140021d30
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14014f4f0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret