Function at 0x1400a2608
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via systemfunction033

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rdi, rcx
mov qword [rbp - 0x41], r9
lea rax, [rbp + 0x1f]
xor esi, esi
lea rcx, str._nSAMKey_:
mov qword [rbp - 0x51], rax
mov r14, r9
mov r15, r8
mov rbx, rdx
lea r12d, [rsi + 0x10]
mov dword [rbp - 0x59], r12d
mov dword [rbp - 0x55], r12d
mov dword [rbp - 0x49], r12d
mov dword [rbp - 0x45], r12d
call fcn.14000d9f0
and qword [rsp + 0x30], rsi
lea rax, [rbp - 0x69]
lea r9, [0x1401713a0]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140011844
test eax, eax
je 0x1400a2812
mov rbx, qword [rbp - 0x69]
movzx edx, word [rbx]
cmp edx, 2
jb 0x1400a27fb
cmp edx, 3
ja 0x1400a27fb
mov edx, dword [rbx + 0x68]
mov eax, edx
sub eax, 1
je 0x1400a2760
cmp eax, 1
je 0x1400a26c3
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_Struct_Key_revision___u_
jmp 0x1400a2802
mov edi, dword [rbx + 0x74]
lea rcx, [rbp - 0x61]
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400a271a
lea rax, [rbp - 0x61]
mov r9d, edi
mov qword [rsp + 0x30], rax
lea r8, [rbx + 0x88]
lea rax, [rbp + 0x7f]
mov rcx, r15
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 0x78]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
call fcn.14000587c
jmp 0x1400a2730
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptAcquireContext__0x_08x__n
call fcn.14000d9f0
xor eax, eax
test eax, eax
je 0x1400a2807
cmp dword [rbp + 0x7f], r12d
sete sil
jne 0x1400a2751
mov rdx, qword [rbp - 0x69]
mov r8, r12
mov rcx, r14
call fcn.1400cac20
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400a2807
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Init]
lea rdx, [rbx + 0x70]
mov r8d, r12d
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x2f
lea rdx, str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, r12d
lea rcx, [rbp - 0x39]
mov rdx, r15
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, str.0123456789012345678901234567890123456789
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea rdx, [rbx + 0x80]
mov r8, r12
mov rcx, r14
call fcn.1400cac20
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
setns sil
test eax, eax
jns 0x1400a2807
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___RtlDecryptData2_KO
call fcn.14000d9f0
jmp 0x1400a2807
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_F_revision___hu_
call fcn.14000d9f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400a281e
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___kull_m_registry_OpenAndQueryWithAlloc_KO
call fcn.14000d9f0
test esi, esi
je 0x1400a2830
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.140016508
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000d9f0
lea r11, [rsp + 0xe0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret