Function at 0x140009440
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 r14, qword [rsp + 0xe0]
mov rsi, rcx
lea rax, [r11 - 0x58]
mov rcx, qword [r14]
mov r13, r9
mov qword [r11 - 0x80], rax
xor r12d, r12d
xor r9d, r9d
and dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14000983e
mov eax, dword [rsi + 4]
lea edi, [r12 + 0x40]
mov rdx, rax
mov ecx, edi
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140009833
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 ebp, [rdi - 0x3f]
xor r9d, r9d
xor edx, edx
mov r8d, ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140009816
lea rcx, str._nRSA_decrypt_is_a_success_n
call fcn.14000c020
mov edx, dword [rbx]
lea rcx, str.__MasterKey_len:__u_n
call fcn.14000c020
mov edx, dword [rbx]
mov r15d, 0x100001
lea rcx, [rbx + 8]
mov r8d, r15d
call fcn.140012c94
mov edx, dword [rbx + 4]
lea rcx, str.__SuppKey___len:__u_n
call fcn.14000c020
mov r11d, dword [rbx]
mov edx, dword [rbx + 4]
lea rcx, [r11 + rbx + 8]
mov r8d, r15d
call fcn.140012c94
mov r11d, dword [rbx]
mov rcx, qword [r14]
lea rax, [rsp + 0x58]
lea r8, [r11 + rbx + 8]
lea r9d, [r12 + 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov edx, 0x6603
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r12d
call fcn.140003b18
test eax, eax
je 0x14000982a
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea r8, [rax + rbx + 0x20]
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400097da
mov eax, dword [rsi + 8]
mov ecx, edi
mov rdx, rax
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400097ee
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 0x1400097bb
mov eax, dword [rdi + 4]
lea rcx, str._n3DES_decrypt_is_a_success_too_n
lea r15, [rax + rdi + 8]
call fcn.14000c020
mov edx, dword [rsp + 0x40]
mov r8d, 0x100001
mov rcx, rdi
call fcn.140012c94
lea rsi, reloc.Cabinet.dll_FCICreate
mov rcx, rsi
call fcn.14000c020
lea rcx, str.__nonce____:
call fcn.14000c020
mov edx, dword [rdi + 4]
lea rcx, [rdi + 8]
xor r8d, r8d
call fcn.140012c94
mov rcx, rsi
call fcn.14000c020
lea rcx, str.__SID______:
call fcn.14000c020
mov rcx, r15
call fcn.140012e48
mov rcx, rsi
call fcn.14000c020
lea rcx, str.__SHA1_____:
call fcn.14000c020
mov r11d, dword [rsp + 0x40]
lea ebp, [r12 + 0x14]
lea rcx, [r11 + rdi - 0x14]
xor r8d, r8d
mov edx, ebp
call fcn.140012c94
mov rcx, rsi
call fcn.14000c020
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x60]
add r8d, 0xffffffec
mov rdx, rdi
mov ecx, 0x8004
mov dword [rsp + 0x20], ebp
call fcn.140003970
test eax, eax
je 0x1400097cf
lea rcx, str.___Calc_SHA1:
call fcn.14000c020
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov edx, ebp
call fcn.140012c94
mov rcx, rsi
call fcn.14000c020
mov r11d, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
lea rax, [r11 + rdi - 0x14]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x14000970d
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x14000970d
mov edx, dword [rax + 0x10]
cmp edx, dword [rcx + 0x10]
jne 0x14000970d
xor eax, eax
jmp 0x140009712
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1400097cf
mov edx, dword [rbx]
mov rbp, qword [rsp + 0xd0]
lea ecx, [rax + 0x40]
mov dword [rbp], edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r13], rax
test rax, rax
je 0x1400097cf
mov r8d, dword [rbp]
lea rdx, [rbx + 8]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rsi, qword [rsp + 0xd8]
mov rcx, r15
and qword [rsi], r12
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 [rsi], rax
test rax, rax
je 0x140009791
mov ecx, dword [rsp + 0x40]
mov r8, r15
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov r12d, eax
test eax, eax
jne 0x1400097cf
mov rcx, qword [r13]
test rcx, rcx
je 0x1400097a4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r13], rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400097b5
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], rax
and dword [rbp], 0
jmp 0x1400097cf
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.14000c020
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400097ee
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.14000c020
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
call fcn.140003d2c
test eax, eax
jne 0x14000982a
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 0x140009823
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.14000c020
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 [r14]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, r12d
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