Function at 0x140009658
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r15, qword [rsp + 0xe8]
xor r13d, r13d
mov r14d, dword [rcx + 0x5c]
xor r12d, r12d
mov edi, dword [rcx + 0x3c]
test r15, r15
mov rbx, rcx
mov dword [rsp + 0xc0], r13d
sete r12b
xor esi, esi
shr r14d, 3
shr edi, 3
cmp dword [rcx + 0x38], 0x6603
jne 0x1400096b8
lea eax, [rsi + 0x18]
cmp edi, eax
cmovb edi, eax
test r15, r15
je 0x1400098bf
mov eax, dword [rcx + 0x58]
mov r13d, 0x800e
cmp eax, r13d
mov dword [rsp + 0xe8], eax
mov ebp, SQLAllocHandle
mov ecx, 0x40
cmove ebp, r14d
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140009723
mov rcx, r15
call fcn.1400f0ad0
cmp dword [rsp + 0xe8], r13d
lea ecx, [r13 - 0xa]
mov r9, rsi
mov dword [rsp + 0x20], ebp
cmovne r13d, ecx
mov rdx, r15
mov ecx, r13d
lea r8d, [rax + rax]
call fcn.140004468
mov r12d, eax
mov r13d, dword [rsp + 0xc0]
test r12d, r12d
je 0x1400098f1
mov edx, r14d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x1400098f1
mov r9d, dword [rbx + 0x40]
mov rax, rsi
mov r8, qword [rbx + 0x44]
neg rax
mov eax, dword [rbx + 0x58]
mov edx, dword [rsp + 0xd0]
sbb ecx, ecx
mov dword [rsp + 0x50], r14d
and ecx, ebp
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
call fcn.1400094a4
test eax, eax
je 0x1400098e8
mov r12d, Ordinal_69
mov edx, edi
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x1400098e8
mov ecx, dword [rbx + 0x58]
mov r9, rax
mov r8d, r14d
mov dword [rsp + 0x20], edi
mov rdx, r15
call fcn.1400046e8
test eax, eax
je 0x1400098df
mov ecx, dword [rbx + 0x38]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.140005300
test eax, eax
je 0x1400098cb
mov edx, dword [rbx + 0x6c]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, qword [rsp + 0xf0]
mov qword [rdi], rax
test rax, rax
je 0x140009897
mov r8d, dword [rbx + 0x6c]
mov rcx, rax
mov rdx, qword [rbx + 0x70]
call fcn.1400cac20
mov rcx, qword [rsp + 0xf8]
lea r8d, [r12 - 0x3f]
mov eax, dword [rbx + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor edx, edx
mov dword [rcx], eax
mov rax, qword [rdi]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov r13d, eax
test eax, eax
jne 0x140009897
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_blob___CryptDecrypt__0x_08x__n
call fcn.14000d9f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x68]
call fcn.140004810
test eax, eax
jne 0x1400098df
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_blob___kull_m_crypto_close_hprov_delete_container__0x_08x__n
jmp 0x1400098d8
mov ebp, dword [rsp + 0xe8]
jmp 0x14000972b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_blob___kull_m_crypto_hkey_session__0x_08x__n
mov edx, eax
call fcn.14000d9f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x1400098ff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r13d
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret