Function at 0x140007d84
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], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r15, qword [rsp + 0xe0]
mov rsi, rcx
lea rax, [r11 - 0x58]
mov rcx, qword [r15]
mov r12, r9
mov qword [r11 - 0x80], rax
xor r14d, r14d
xor r9d, r9d
and dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140008076
mov eax, dword [rsi + 4]
lea ebp, [r14 + 0x40]
mov rdx, rax
mov ecx, ebp
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000806b
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsi + 0x1c]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x28], r11
lea edi, [rbp - 0x3f]
xor r9d, r9d
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000804e
mov eax, dword [rbx]
mov rcx, qword [r15]
lea r9d, [r14 + 0x18]
lea r8, [rax + rbx + 8]
lea rax, [rsp + 0x58]
mov edx, 0x6603
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
call fcn.140003b24
test eax, eax
je 0x140008062
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea r8, [rax + rbx + 0x20]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140008012
mov eax, dword [rsi + 8]
mov ecx, ebp
mov rdx, rax
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140008026
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsi + 0x24]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x48]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140007ff3
mov r8d, dword [rsp + 0x40]
mov eax, dword [rdi + 4]
lea r9, [rsp + 0x60]
add r8d, 0xffffffec
mov rdx, rdi
mov ecx, 0x8004
lea r13, [rax + rdi + 8]
mov dword [rsp + 0x20], Ordinal_27
call fcn.14000397c
test eax, eax
je 0x140008007
mov eax, dword [rsp + 0x40]
lea rcx, [rax + rdi - 0x14]
lea rax, [rsp + 0x60]
mov rdx, qword [rcx]
cmp rdx, qword [rax]
jne 0x140007f45
mov rdx, qword [rcx + 8]
cmp rdx, qword [rax + 8]
jne 0x140007f45
mov edx, dword [rcx + 0x10]
cmp edx, dword [rax + 0x10]
jne 0x140007f45
xor eax, eax
jmp 0x140007f4a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140008007
mov edx, dword [rbx]
mov rsi, qword [rsp + 0xd0]
mov ecx, ebp
mov dword [rsi], edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r12], rax
test rax, rax
je 0x140008007
mov r8d, dword [rsi]
lea rdx, [rbx + 8]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rbp, qword [rsp + 0xd8]
mov rcx, r13
and qword [rbp], r14
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, 0x40
mov edx, eax
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp], rax
test rax, rax
je 0x140007fc8
mov ecx, dword [rsp + 0x40]
mov r8, r13
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov r14d, eax
test eax, eax
jne 0x140008007
mov rcx, qword [r12]
test rcx, rcx
je 0x140007fdb
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r12], rax
mov rcx, qword [rbp]
test rcx, rcx
je 0x140007fee
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp], rax
and dword [rsi], 0
jmp 0x140008007
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.14000a838
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008026
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.14000a838
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
call fcn.140003d38
test eax, eax
jne 0x140008062
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 0x14000805b
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.14000a838
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [r15]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, r14d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret