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

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0xb8]
sub rsp, 0x1a8
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov qword [r11 - 0x18], rdi
mov r8d, 0x100
mov qword [r11 - 0x20], r14
mov sil, 1
mov qword [r11 - 0x28], r15
mov r14, rcx
mov r15, rdx
lea rcx, [rbp - 0x80]
xor edx, edx
call fcn.1402ae030
xor edi, edi
mov dword [rsp + 0x20], 0xf0000000
xorps xmm0, xmm0
mov qword [rsp + 0x40], rdi
xor eax, eax
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov word [rsp + 0x78], ax
lea r9d, [rdi + 1]
mov dword [rsp + 0x34], edi
xor edx, edx
mov word [rsp + 0x30], ax
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x32], al
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400d8a9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.L4UtilCryptSha1_CryptAcquireContext_failed___d_n
lea ecx, [rdi + 1]
call fcn.1400d3f90
xor sil, sil
jmp 0x1400d8bf9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400d8ae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.L4UtilCryptSha1_CryptCreateHash_failed___d_n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
xor sil, sil
jmp 0x1400d8bf9
mov qword [rsp + 0x1d0], rbx
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [r14 + r8], dil
jne 0x1400d8af4
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400d8b21
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.L4UtilCryptSha1_CryptHashData_failed___d_n
jmp 0x1400d8b6f
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov dword [rsp + 0x20], edi
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400d8b62
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x20], edi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400d8b81
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.L4UtilCryptSha1_CryptGetHashParam_failed___d_n
mov r8d, eax
mov ecx, 1
call fcn.1400d3f90
xor sil, sil
jmp 0x1400d8bf1
cmp dword [rsp + 0x34], edi
jbe 0x1400d8bd0
nop word [rax + rax]
mov eax, edi
lea rdx, str._2.2x
lea rcx, [rsp + 0x30]
mov word [rsp + 0x30], 0
mov byte [rsp + 0x32], 0
movzx r8d, byte [rsp + rax + 0x48]
call fcn.1400d8c50
lea r8, [rsp + 0x30]
mov edx, 0x100
lea rcx, [rbp - 0x80]
call fcn.1402c0298
inc edi
cmp edi, dword [rsp + 0x34]
jb 0x1400d8b90
lea rax, [rbp - 0x80]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400d8bd4
mov r9, rbx
lea r8, [rbp - 0x80]
mov edx, 0x29
mov rcx, r15
call fcn.1402c01a8
mov rbx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x190]
mov r14, qword [rsp + 0x198]
mov rdi, qword [rsp + 0x1a0]
test rcx, rcx
je 0x1400d8c21
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400d8c33
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, sil
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1402ab320
add rsp, 0x1a8
pop rsi
pop rbp
ret