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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xe0
mov eax, dword [rcx]
mov r12, r8
xor r8d, r8d
mov r15, rcx
mov qword [rsp + 0x40], r8
lea rcx, [rbp - 1]
mov qword [rbp - 0x69], rcx
mov edi, r8d
mov qword [rsp + 0x48], r8
lea rbx, [rdx + rax]
lea edx, [r8 + 0x10]
mov dword [rbp - 0x71], edx
mov dword [rbp - 0x6d], edx
test eax, eax
je 0x14009a976
mov esi, dword [r15 + 4]
test esi, esi
je 0x14009a976
movzx ecx, word [rbx + 2]
mov r14d, dword [rbp + 0x7f]
sub ecx, 1
je 0x14009a830
cmp ecx, 1
je 0x14009a77c
lea rcx, str.ERROR_vwxeflvclsadump_getHash___ERROR
call fcn.14000b8b0
jmp 0x14009a966
cmp dword [rbx + 4], edx
jb 0x14009a976
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rbp - 0x79]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009a7d4
lea rax, [rbp - 0x79]
mov rcx, r12
mov qword [rsp + 0x30], rax
lea r9d, [rsi - 0x18]
lea rax, [rbp + 0x57]
mov qword [rsp + 0x28], rax
lea r8, [rbx + 0x18]
lea rax, [rbp + 0x5f]
lea rdx, [rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.140004930
jmp 0x14009a7e2
lea rcx, str.ERROR_idwcflvccrypto_genericAES128Decrypt___ERROR
call fcn.14000b8b0
xor eax, eax
test eax, eax
je 0x14009a966
mov eax, dword [rbp + 0x57]
mov ecx, 0x40
mov edx, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14009a821
mov r8d, dword [rbp + 0x57]
mov rcx, rax
mov rdx, qword [rbp + 0x5f]
call fcn.1400c2660
mov edi, 1
mov rcx, qword [rbp + 0x5f]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009a91c
cmp esi, 6
jb 0x14009a976
lea rcx, [rbp - 0x59]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, 0x10
lea rcx, [rbp - 0x59]
mov rdx, r12
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 4
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x59]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov eax, r14d
lea rcx, str.NTPASSWORDHISTORY
neg eax
lea rdx, str.LMPASSWORD
lea rax, str.NTPASSWORD
sbb r8d, r8d
and r8d, 7
add r8d, 0xb
test r14d, r14d
cmovne rax, rcx
lea rcx, str.LMPASSWORDHISTORY
cmovne rdx, rcx
cmp dword [rbp + 0x77], edi
lea rcx, [rbp - 0x59]
cmovne rdx, rax
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x59]
call qword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [r15 + 4]
mov ecx, 0x40
add eax, 0xfffffffc
mov edx, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14009a976
mov r8d, dword [rsp + 0x40]
lea rdx, [rbx + 4]
mov rcx, rax
call fcn.1400c2660
lea rdx, [rbp - 0x71]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
setns dil
test eax, eax
jns 0x14009a91c
lea rcx, str.ERROR_vwxeflvclsadump_getHash___ERROR
call fcn.14000b8b0
test edi, edi
je 0x14009a966
mov r8d, dword [rbp + 0x6f]
lea rcx, str.ntlm
mov edx, dword [rsp + 0x40]
lea rax, str.NTLM
test r14d, r14d
mov dword [rsp + 0x20], r14d
lea r9, str.LM
cmovne rax, rcx
lea rcx, str.lm
cmovne r9, rcx
cmp dword [rbp + 0x77], 0
mov rcx, qword [rsp + 0x48]
cmovne r9, rax
call fcn.1400afa24
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009a976
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret