Function at 0x1400a1f14
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x80
xor edi, edi
mov rbx, r9
mov ebp, edx
mov rsi, rcx
test r8, r8
je 0x1400a1f9e
xor r9d, r9d
xor r10d, r10d
mov dword [rax + 0x18], r9d
cmp dword [r8 + 0x18], edi
jbe 0x1400a216b
mov r11, qword [rsi + 4]
lea rcx, [r10 + r8 + 0x1c]
cmp r11, qword [rcx]
jne 0x1400a1f6a
mov r11, qword [rsi + 0xc]
cmp r11, qword [rcx + 8]
jne 0x1400a1f6a
xor eax, eax
jmp 0x1400a1f6f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1400a1f91
inc r9d
mov dword [rsp + 0xa0], r9d
mov eax, dword [rcx + 0x14]
lea r10d, [r10 + rax + 0x18]
cmp r9d, dword [r8 + 0x18]
jb 0x1400a1f4e
jmp 0x1400a216b
mov eax, dword [rcx + 0x14]
lea rbx, [rcx + 0x18]
mov dword [rsp + 0x40], eax
jmp 0x1400a1faf
test rbx, rbx
je 0x1400a216b
mov dword [rsp + 0x40], 0x10
test rbx, rbx
je 0x1400a216b
lea rcx, [rsp + 0x58]
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400a216b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400a215e
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
and dword [rsp + 0xa0], edi
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea rdx, [rsi + 0x1c]
lea r8d, [r9 + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r11d, dword [rsp + 0xa0]
inc r11d
mov dword [rsp + 0xa0], r11d
cmp r11d, 0x3e8
jb 0x1400a2023
mov rcx, qword [rsp + 0x48]
and dword [rsp + 0x20], edi
mov ebx, 2
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, ebx
mov dword [rsp + 0x40], 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400a2153
and qword [rsp + 0x30], rdi
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r9d, [rbx + 0x1e]
lea r8, [rsp + 0x60]
mov edx, 0x6610
call fcn.140003b18
test eax, eax
je 0x1400a213f
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0xa0]
lea edx, [rbx + 2]
xor r9d, r9d
mov dword [rsp + 0xa0], ebx
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400a211e
lea eax, [rbp - 0x3c]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x40], eax
lea rax, [rsi + 0x3c]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edi, eax
test eax, eax
jne 0x1400a2132
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kuhl_m_lsadump_sec_aes256___CryptDecrypt__0x_08x__n
jmp 0x1400a212b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kuhl_m_lsadump_sec_aes256___CryptSetKeyParam__0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1400a2153
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kuhl_m_lsadump_sec_aes256___kull_m_crypto_hkey__0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret