Function at 0x1400a40b8
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 dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
mov rbx, r9
mov rsi, r8
mov r14d, edx
mov r13, rcx
mov r15d, r12d
test r8, r8
je 0x1400a4144
mov ebx, r12d
mov dword [rbp + 0x50], r12d
cmp dword [r8 + 0x18], r12d
jbe 0x1400a42e4
lea edi, [r12 + 0x10]
mov r14d, ebx
lea rcx, [r13 + 4]
add r14, rsi
mov r8, rdi
lea rdx, [r14 + 0x1c]
call fcn.1400cb580
test eax, eax
je 0x1400a4136
mov ecx, dword [rbp + 0x50]
add ebx, 0x18
inc ecx
mov dword [rbp + 0x50], ecx
add ebx, dword [r14 + 0x30]
cmp ecx, dword [rsi + 0x18]
jb 0x1400a4103
jmp 0x1400a42e4
mov edi, dword [r14 + 0x30]
lea rbx, [r14 + 0x34]
mov r14d, dword [rbp + 0x48]
jmp 0x1400a4152
test rbx, rbx
je 0x1400a42e4
mov edi, 0x10
mov dword [rbp - 0x40], edi
test rbx, rbx
je 0x1400a42e4
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 0x1400a42e4
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 0x1400a42d8
mov r8d, dword [rbp - 0x40]
xor r9d, r9d
mov rcx, qword [rbp - 0x38]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rbp + 0x50], r12d
mov edi, Ordinal_36
mov rcx, qword [rbp - 0x38]
lea rdx, [r13 + 0x1c]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [rbp + 0x50]
inc eax
mov dword [rbp + 0x50], eax
cmp eax, 0x3e8
jb 0x1400a41c6
mov rcx, qword [rbp - 0x38]
lea r9, [rbp - 0x40]
mov ebx, 2
mov dword [rbp - 0x40], edi
mov edx, ebx
mov dword [rsp + 0x20], r12d
lea r8, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400a42ce
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], r12
lea r8, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov r9d, edi
mov edx, 0x6610
mov dword [rsp + 0x20], r12d
call fcn.140004600
test eax, eax
je 0x1400a42ba
mov rcx, qword [rbp - 0x30]
lea r8, [rbp + 0x50]
xor r9d, r9d
mov dword [rbp + 0x50], ebx
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400a429a
lea eax, [r14 - 0x3c]
xor r9d, r9d
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], eax
mov qword [rsp + 0x28], rcx
lea rax, [r13 + 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 r15d, eax
test eax, eax
jne 0x1400a42ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_lsadump_sec_aes256___CryptDecrypt__0x_08x__n
jmp 0x1400a42a7
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.14000d9f0
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1400a42ce
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.14000d9f0
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]
mov rbx, qword [rsp + 0xc0]
mov eax, r15d
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret