Function at 0x180006af4
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, qword [rbp + 0x68]
mov rbx, rcx
xor r12d, r12d
mov dword [rbp - 0x34], 0x20
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x40], r12
mov r14, r9
mov dword [rbp - 0x48], 0x18
mov esi, r8d
mov dword [rbp - 0x44], 0xf0000000
mov rdi, rdx
call fcn.1800068dc
test rax, rax
jne 0x180006b55
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180006d09
jmp 0x180006d01
mov rax, qword [rbp - 0x40]
mov rcx, r12
mov qword [rbp - 0x50], rcx
test rax, rax
je 0x180006b6a
mov rdx, rax
jmp 0x180006b7e
lea rcx, [rbp - 0x48]
call fcn.1800068dc
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, qword [rbp - 0x40]
test rdx, rdx
je 0x180006ce6
mov r9d, esi
lea rdx, [rbp - 0x48]
mov r8, rdi
lea rcx, [rbp - 0x50]
call fcn.180006a44
test eax, eax
mov rax, qword [rbp - 0x40]
jne 0x180006ce2
mov rdi, qword [rbp - 0x50]
test rax, rax
jne 0x180006bb8
lea rcx, [rbp - 0x48]
call fcn.1800068dc
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov edx, 0x8009
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180006c0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x50]
mov ebx, eax
test rcx, rcx
je 0x180006bf0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x50], r12
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180006d0c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x180006d0c
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rcx, qword [rbx]
lea r8, [rbp - 0x30]
xor r9d, r9d
mov dword [rbp - 0x30], 0x800c
lea edx, [r9 + 5]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x180006bd5
mov r8d, dword [rbp + 0x60]
xor r9d, r9d
mov rcx, qword [rbx]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180006bd5
mov rcx, qword [rbx]
lea r9, [rbp - 0x38]
xor r8d, r8d
mov dword [rbp - 0x38], r12d
mov dword [rsp + 0x20], r12d
lea edi, [r8 + 2]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180006bd5
mov eax, dword [rbp - 0x34]
cmp dword [rbp - 0x38], eax
je 0x180006c9a
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180006b43
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x50], r12
jmp 0x180006b43
mov rcx, qword [rbx]
lea r9, [rbp - 0x34]
mov r8, r15
mov dword [rsp + 0x20], r12d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180006bd5
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180006ccc
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x50], r12
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180006cdd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ebx, r12d
jmp 0x180006d0c
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180006cf9
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x50], r12
test rax, rax
je 0x180006d09
mov rcx, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
or ebx, 0xffffffff
mov eax, ebx
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret