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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0xc0], 0
je 0x140106b27
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
jmp 0x140106aba
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
mov ecx, dword [rsp + 0x48]
lea eax, [rcx + rax + 0x18]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x40], eax
jae 0x140106b25
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax + 0x1c]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xb0]
add rcx, 4
mov r8d, 0x10
mov rdx, rax
call fcn.140161ba0
test eax, eax
jne 0x140106b20
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x44], eax
jmp 0x140106b25
jmp 0x140106a9c
jmp 0x140106b47
cmp qword [rsp + 0xc8], 0
je 0x140106b47
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x44], 0x10
cmp qword [rsp + 0x58], 0
je 0x140106d39
mov dword [rsp + 0x20], 0xf0000000
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140106d39
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140106d2c
xor r9d, r9d
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x40], 0
jmp 0x140106bcd
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x3e8
jae 0x140106bfc
mov rax, qword [rsp + 0xb0]
add rax, 0x1c
xor r9d, r9d
mov r8d, Ordinal_36
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x140106bc3
mov dword [rsp + 0x44], Ordinal_36
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x78]
mov edx, 2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140106d21
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, Ordinal_36
lea r8, [rsp + 0x78]
mov edx, 0x6610
mov rcx, qword [rsp + 0x70]
call fcn.1400066d0
test eax, eax
je 0x140106d0d
mov dword [rsp + 0x40], 2
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140106cec
mov eax, dword [rsp + 0xb8]
sub eax, 0x3c
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xb0]
add rax, 0x3c
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x140106cea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_sec_aes256___CryptDecrypt__0x_08x__n
call fcn.140013fd0
jmp 0x140106d00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_lsadump_sec_aes256___CryptSetKeyParam__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140106d21
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.140013fd0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x4c]
add rsp, 0xa8
ret