Function at 0x1800067e4
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, qword [rbp + 0x60]
mov rsi, rcx
lea rax, [rbp - 0x30]
mov rcx, qword [rbx]
mov r13, r9
mov qword [r11 - 0x70], rax
xor r15d, r15d
xor r9d, r9d
and dword [r11 - 0x78], r15d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x180006ab7
mov eax, dword [rsi + 4]
lea r12d, [r15 + 0x40]
mov edx, eax
mov ecx, r12d
mov dword [rbp - 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180006aad
mov r8d, dword [rbp - 0x40]
mov rdx, qword [rsi + 0x1c]
mov rcx, rax
call fcn.180076230
mov rcx, qword [rbp - 0x30]
lea r11, [rbp - 0x40]
mov qword [rsp + 0x28], r11
lea r14d, [r15 + 1]
xor r9d, r9d
xor edx, edx
mov r8d, r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180006a90
mov eax, dword [rdi]
lea r8d, [r15 + 0x18]
xor r9d, r9d
lea rdx, [rax + rdi + 8]
lea rax, [rbp - 0x28]
mov ecx, 0x6603
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call fcn.180003bb0
test eax, eax
je 0x180006aa4
mov eax, dword [rdi]
mov rcx, qword [rbp - 0x38]
xor r9d, r9d
lea r8, [rax + rdi + 0x20]
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180006a7a
mov eax, dword [rsi + 8]
mov ecx, r12d
mov edx, eax
mov dword [rbp - 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180006a50
mov r8d, dword [rbp - 0x40]
mov rdx, qword [rsi + 0x24]
mov rcx, rax
call fcn.180076230
mov rcx, qword [rbp - 0x38]
lea r11, [rbp - 0x40]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180006a33
mov r8d, dword [rbp - 0x40]
mov eax, dword [rbx + 4]
lea r9, [rbp - 0x20]
add r8d, 0xffffffec
mov rdx, rbx
mov ecx, 0x8004
lea r14, [rax + rbx + 8]
mov dword [rsp + 0x20], Ordinal_26
call fcn.180002e74
test eax, eax
je 0x180006a47
mov eax, dword [rbp - 0x40]
lea rcx, [rax + rbx - 0x14]
lea rax, [rbp - 0x20]
mov rdx, qword [rcx]
cmp rdx, qword [rax]
jne 0x18000698e
mov rdx, qword [rcx + 8]
cmp rdx, qword [rax + 8]
jne 0x18000698e
mov edx, dword [rcx + 0x10]
cmp edx, dword [rax + 0x10]
jne 0x18000698e
xor eax, eax
jmp 0x180006993
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x180006a47
mov edx, dword [rdi]
mov rsi, qword [rbp + 0x50]
mov ecx, r12d
mov dword [rsi], edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r13], rax
test rax, rax
je 0x180006a47
mov r8d, dword [rsi]
lea rdx, [rdi + 8]
mov rcx, rax
call fcn.180076230
mov r12, qword [rbp + 0x58]
mov rcx, r14
and qword [r12], r15
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, 0x40
mov edx, eax
mov dword [rbp - 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r12], rax
test rax, rax
je 0x180006a08
mov ecx, dword [rbp - 0x40]
mov r8, r14
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov r15d, eax
test eax, eax
jne 0x180006a47
mov rcx, qword [r13]
test rcx, rcx
je 0x180006a1b
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r13], rax
mov rcx, qword [r12]
test rcx, rcx
je 0x180006a2e
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r12], rax
and dword [rsi], 0
jmp 0x180006a47
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptDecrypt__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x28]
call fcn.180003214
test eax, eax
jne 0x180006aa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___kull_m_crypto_close_hprov_delete_container__0x_08x__n
jmp 0x180006a9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptSetKeyParam__0x_08x__n
mov edx, eax
call fcn.180008f6c
jmp 0x180006a54
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptDecrypt__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x70]
mov eax, r15d
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret