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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor edi, edi
mov rbx, r9
mov r14d, edx
mov rsi, rcx
test r8, r8
je 0x14009f037
and dword [rbp + 0x30], edi
xor r9d, r9d
cmp dword [r8 + 0x18], edi
jbe 0x14009f1d4
xor edx, edx
mov rax, qword [rsi + 4]
mov ecx, r9d
cmp rax, qword [r9 + r8 + 0x1c]
jne 0x14009f00f
mov rax, qword [rsi + 0xc]
cmp rax, qword [r9 + r8 + 0x24]
je 0x14009f029
inc edx
add r9d, 0x18
mov dword [rbp + 0x30], edx
add r9d, dword [rcx + r8 + 0x30]
cmp edx, dword [r8 + 0x18]
jae 0x14009f1d4
jmp 0x14009eff6
mov eax, dword [r9 + r8 + 0x30]
lea rbx, [r8 + 0x34]
add rbx, rcx
jmp 0x14009f045
test rbx, rbx
je 0x14009f1d4
mov eax, 0x10
mov dword [rbp - 0x40], eax
test rbx, rbx
je 0x14009f1d4
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rbp - 0x28]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009f1d4
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14009f1c8
mov r8d, dword [rbp - 0x40]
xor r9d, r9d
mov rcx, qword [rbp - 0x38]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
and dword [rbp + 0x30], edi
mov rcx, qword [rbp - 0x38]
lea rdx, [rsi + 0x1c]
xor r9d, r9d
lea r8d, [r9 + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [rbp + 0x30]
inc eax
mov dword [rbp + 0x30], eax
cmp eax, 0x3e8
jb 0x14009f0b3
mov rcx, qword [rbp - 0x38]
lea r9, [rbp - 0x40]
and dword [rsp + 0x20], edi
lea r8, [rbp - 0x20]
mov ebx, 2
mov dword [rbp - 0x40], Ordinal_36
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14009f1be
and qword [rsp + 0x30], rdi
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
lea r9d, [rbx + 0x1e]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x20]
and dword [rsp + 0x20], edi
mov edx, 0x6610
call fcn.140003abc
test eax, eax
je 0x14009f1aa
mov rcx, qword [rbp - 0x30]
lea r8, [rbp + 0x30]
xor r9d, r9d
mov dword [rbp + 0x30], ebx
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x14009f18a
lea eax, [r14 - 0x3c]
xor r9d, r9d
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], eax
mov qword [rsp + 0x28], rcx
lea rax, [rsi + 0x3c]
mov rcx, qword [rbp - 0x30]
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 0x14009f19e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_sec_aes256___CryptDecrypt__0x_08x__n
jmp 0x14009f197
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_sec_aes256___CryptSetKeyParam__0x_08x__n
mov edx, eax
call fcn.14000be8c
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x14009f1be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_sec_aes256___kull_m_crypto_hkey__0x_08x__n
call fcn.14000be8c
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x28]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret