Function at 0x14000f030
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x58], 0
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 0x14000f5f6
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14000f5e9
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 4]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000f5de
mov eax, dword [rsp + 0x40]
mov r8d, eax
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x1c]
mov rcx, qword [rsp + 0x48]
call fcn.140161160
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000f5bf
lea rcx, str._nRSA_decrypt_is_a_success_n
call fcn.140013fd0
mov rax, qword [rsp + 0x48]
mov edx, dword [rax]
lea rcx, str.__MasterKey_len:__u_n
call fcn.140013fd0
mov rax, qword [rsp + 0x48]
add rax, 8
mov r8d, 0x100001
mov rcx, qword [rsp + 0x48]
mov edx, dword [rcx]
mov rcx, rax
call fcn.1400204a0
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 4]
lea rcx, str.__SuppKey___len:__u_n
call fcn.140013fd0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 8]
mov r8d, 0x100001
mov rcx, qword [rsp + 0x48]
mov edx, dword [rcx + 4]
mov rcx, rax
call fcn.1400204a0
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 8]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov r8, rax
mov edx, 0x6603
mov rcx, qword [rsp + 0x70]
call fcn.1400066d0
test eax, eax
je 0x14000f5bd
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x20]
xor r9d, r9d
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x14000f579
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000f577
mov eax, dword [rsp + 0x40]
mov r8d, eax
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x24]
mov rcx, qword [rsp + 0x50]
call fcn.140161160
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
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]
test eax, eax
je 0x14000f558
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x60], rax
lea rcx, str._n3DES_decrypt_is_a_success_too_n
call fcn.140013fd0
mov r8d, 0x100001
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
lea rcx, str.__nonce____:
call fcn.140013fd0
mov rax, qword [rsp + 0x50]
add rax, 8
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + 4]
mov rcx, rax
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
lea rcx, str.__SID______:
call fcn.140013fd0
mov rcx, qword [rsp + 0x60]
call fcn.140020730
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
lea rcx, str.__SHA1_____:
call fcn.140013fd0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax - 0x14]
xor r8d, r8d
mov edx, SQLAllocHandle
mov rcx, rax
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
mov eax, dword [rsp + 0x40]
sub eax, 0x14
mov dword [rsp + 0x20], Ordinal_26
lea r9, [rsp + 0x88]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov ecx, 0x8004
call fcn.1400064b0
test eax, eax
je 0x14000f556
lea rcx, str.___Calc_SHA1:
call fcn.140013fd0
xor r8d, r8d
mov edx, SQLAllocHandle
lea rcx, [rsp + 0x88]
call fcn.1400204a0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax - 0x14]
mov r8d, SQLAllocHandle
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.140161ba0
test eax, eax
jne 0x14000f556
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xc8]
cmp qword [rax], 0
je 0x14000f556
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x48]
add rcx, 8
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call fcn.140161160
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0xd8]
mov qword [rax], 0
cmp qword [rsp + 0xd8], 0
je 0x14000f4ed
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xd8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rax], 0
je 0x14000f4ed
mov r8, qword [rsp + 0x60]
mov rax, qword [rsp + 0xd8]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14000f556
mov rax, qword [rsp + 0xc8]
cmp qword [rax], 0
je 0x14000f51e
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rax], 0
je 0x14000f548
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xd8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd0]
mov dword [rax], 0
jmp 0x14000f56c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptDecrypt__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000f58d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptSetKeyParam__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x80]
call fcn.1400069e0
test eax, eax
jne 0x14000f5bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___kull_m_crypto_close_hprov_delete_container__0x_08x__n
call fcn.140013fd0
jmp 0x14000f5d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptDecrypt__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x58]
add rsp, 0xa8
ret