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

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rbx, r9
mov r15, rdx
mov rdi, rcx
and dword [rbp - 0x29], 0
and qword [rbp - 0x19], 0
xor esi, esi
mov qword [rbp - 0x11], rsi
and qword [rbp - 0x31], rsi
mov r12, qword [rbp + 0x7f]
cmp qword [r12], rsi
jne 0x1400908be
mov ebx, 0x80070057
jmp 0x140090af7
cmp qword [rcx], rsi
jne 0x1400908cd
mov ebx, 0xc004f100
jmp 0x140090af7
cmp qword [rcx + 8], rsi
je 0x1400908c3
mov edx, 0x40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x1400908f2
mov ebx, 0x8007000e
jmp 0x140090aca
mov dword [rbp - 0x25], 0x10000
mov dword [rax], 4
lea rax, [rbp - 0x25]
mov qword [r14 + 8], rax
movups xmm0, xmmword [rbx]
movups xmmword [r14 + 0x10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r14 + 0x20], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [r14 + 0x30], xmm0
lea r9, [rbp - 0x11]
lea r8, [rbp - 0x21]
mov rdx, r14
call fcn.140090dc4
mov ebx, eax
mov rsi, qword [rbp - 0x11]
test eax, eax
js 0x140090ac1
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rdi + 8]
mov edx, 0x8009
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140090988
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140090975
mov ebx, 0x80004005
jmp 0x140090ac1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140090ac1
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rbp - 1]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 1], 0x8004
xor r9d, r9d
lea r8, [rbp - 1]
lea edx, [r9 + 5]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x140090961
xor r9d, r9d
mov r8d, dword [rbp - 0x21]
mov rdx, rsi
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140090961
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x6f]
xor r8d, r8d
lea ebx, [r8 + 2]
mov edx, ebx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140090961
mov edx, dword [rbp + 0x6f]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140090a10
mov ebx, 0x8007000e
jmp 0x140090ac1
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x6f]
mov r8, rdi
mov edx, ebx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140090a4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140090a3d
mov ebx, 0x80004005
jmp 0x140090ab8
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140090ab8
mov rax, qword [r12]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x29]
mov rcx, r15
mov rax, qword [rax + 0xb0]
call qword [case.0x140089b1f.8]
mov ebx, eax
test eax, eax
js 0x140090ab8
mov eax, dword [rbp - 0x29]
test eax, eax
jne 0x140090a7d
mov ebx, 0xc004f101
jmp 0x140090ab8
cmp eax, 0x10
ja 0x140090a89
mov ebx, 0x8007000d
jmp 0x140090ab8
mov rcx, qword [rbp - 0x19]
cmp dword [rcx], eax
jne 0x140090a82
cmp dword [rcx + 4], 2
jne 0x140090a82
mov eax, dword [rbp + 0x6f]
cmp dword [rcx + 8], eax
jne 0x140090a82
mov r8d, eax
add rcx, 0xc
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcmp
mov ecx, 0xc004f027
test eax, eax
cmovne ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140090ad9
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x140090ae7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140090af7
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
mov rdi, qword [r12 + 8]
test rdi, rdi
je 0x140090b3a
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x140090b3a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140089b1f.8]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
add eax, esi
jne 0x140090b3a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140089b1f.8]
nop
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret