Function at 0x180005ee4
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
sub rsp, 0x70
and dword [rsp + 0xb0], 0
mov r14d, dword [rcx + 0x5c]
mov ebx, dword [rcx + 0x3c]
xor eax, eax
mov rdi, r9
mov rsi, rcx
cmp qword [rsp + 0xd8], rax
sete al
xor ebp, ebp
shr r14d, 3
shr ebx, 3
cmp dword [rcx + 0x38], 0x6603
jne 0x180005f3d
lea ecx, [rbp + 0x18]
cmp ebx, ecx
cmovb ebx, ecx
test eax, eax
jne 0x180005fbb
mov r13d, 0x800e
cmp dword [rsi + 0x58], r13d
jne 0x180005f52
mov r12d, r14d
jmp 0x180005f5e
mov r13d, 0x8004
mov r12d, 0x14
mov edx, r12d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x18000617c
mov rdi, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd8]
or rcx, 0xffffffffffffffff
xor eax, eax
mov r9, rbp
mov dword [rsp + 0x20], r12d
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov ecx, r13d
call fcn.180002e74
test eax, eax
je 0x18000616e
mov rdi, qword [rsp + 0xc8]
jmp 0x180005fc3
mov r12d, dword [rsp + 0xd8]
mov edx, r14d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
test rax, rax
je 0x18000616e
mov r9d, dword [rsi + 0x40]
mov r8, qword [rsi + 0x44]
mov edx, dword [rsp + 0xc0]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], r13
mov rax, rbp
neg rax
mov eax, dword [rsi + 0x58]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xd0]
sbb ecx, ecx
and ecx, r12d
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.180005d30
test eax, eax
je 0x180006165
mov r12d, Ordinal_69
mov edx, ebx
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180006165
mov ecx, dword [rsi + 0x58]
mov r9, rax
mov r8d, r14d
mov rdx, r13
mov dword [rsp + 0x20], ebx
call fcn.1800030f4
test eax, eax
je 0x18000615c
mov ecx, dword [rsi + 0x38]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.180003bb0
test eax, eax
je 0x180006148
mov edx, dword [rsi + 0x6c]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, qword [rsp + 0xe0]
mov qword [rbx], rax
test rax, rax
je 0x180006120
mov r8d, dword [rsi + 0x6c]
mov rdx, qword [rsi + 0x70]
mov rcx, rax
call fcn.180076230
mov rax, qword [rsp + 0xe8]
mov edx, dword [rsi + 0x6c]
mov rcx, qword [rsp + 0x60]
mov dword [rax], edx
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
lea r8d, [r12 - 0x3f]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [rsp + 0xb0], eax
test eax, eax
jne 0x180006120
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_dpapi_unprotect_blob___CryptDecrypt__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x68]
call fcn.180003214
test eax, eax
jne 0x18000615c
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 0x180006155
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.180008f6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x18000617c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0xb0]
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret