Function at 0x14004def0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
lea rdx, [0x140364c3f]
lea rcx, [rbp + 0x50]
mov r8d, 0x14
call fcn.140056f20
movabs rax, 0x8000000000000001
cmp qword [rbp + 0x50], rax
je 0x14004e211
movups xmm0, xmmword [rbp + 0x50]
movups xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov byte [rbp + 0x7d], 1
lea rcx, [rbp - 0x20]
call fcn.1400578f0
mov r8, rdx
mov byte [rbp + 0x7d], 1
mov qword [rsp + 0x20], 0xb
lea r9, str.Local_State
lea rcx, [rbp - 0x40]
mov rdx, rax
call fcn.1401f84f0
mov byte [rbp + 0x7f], 1
mov byte [rbp + 0x7e], 1
mov rcx, rdi
call fcn.140209100
mov rdi, rax
mov rbx, rdx
mov byte [rbp + 0x7f], 1
mov byte [rbp + 0x7e], 1
lea rcx, [rbp - 0x40]
call fcn.140209100
mov r9, rdx
mov byte [rbp + 0x7f], 1
mov byte [rbp + 0x7e], 1
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1401ff250
test rax, rax
jne 0x14004e246
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x60], xmm1
movaps xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call fcn.140209100
mov r8, rdx
lea rcx, [rbp + 0x30]
mov rdx, rax
call fcn.1401f2420
mov rdx, qword [rbp + 0x50]
test rdx, rdx
je 0x14004e00f
mov rcx, qword [rbp + 0x58]
mov r8d, 1
call fcn.14004d520
mov rax, qword [rbp + 0x30]
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x20], rax
cmp rax, rdi
je 0x14004e277
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x18], rax
mov rbx, qword [rbp + 0x40]
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x60], xmm1
movaps xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call fcn.140057920
test rax, rax
jne 0x14004e2ac
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], 0
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x30]
call fcn.140050c10
cmp byte [rbp + 0x50], 6
je 0x14004e2dd
movups xmm0, xmmword [rbp + 0x50]
movups xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp + 0x40], xmm1
movaps xmmword [rbp + 0x30], xmm0
lea rcx, str.os_cryptencrypted_key
lea r8, [rbp + 0x30]
mov edx, 8
call fcn.140129f60
test rax, rax
jne 0x14004e0b4
mov rax, qword [str.Hf8_]
lea rcx, [0x140364d48]
mov edx, 0xd
mov r8, rax
call fcn.140129f60
test rax, rax
jne 0x14004e0d4
mov rax, qword [str.Hf8_]
cmp byte [rax], 3
jne 0x14004e30f
mov rdx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
lea rbx, [rbp + 0x50]
mov rcx, rbx
mov r9d, 1
call fcn.140052760
mov r12, qword [rbp + 0x50]
cmp r12, rdi
je 0x14004e31d
mov r13, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
cmp rdi, 5
jb 0x14004e34e
add rdi, 0xfffffffffffffffb
je 0x14004e14a
js 0x14004e36c
movzx eax, byte [0x1404a6181]
mov r15d, 1
mov edx, 1
mov rcx, rdi
call fcn.14004d510
test rax, rax
je 0x14004e36f
mov r14, rax
jmp 0x14004e150
mov r14d, 1
lea rdx, [r13 + 5]
mov rcx, r14
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
test r12, r12
je 0x14004e175
mov r8d, 1
mov rcx, r13
mov rdx, r12
call fcn.14004d520
mov dword [rbp], edi
mov qword [rbp + 8], r14
mov dword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rbp
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.crypt32.dll_CryptUnprotectData
mov rax, qword [rbp + 0x58]
mov ecx, dword [rbp + 0x50]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
test rdi, rdi
je 0x14004e1d9
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.14004d520
lea rcx, [rbp + 0x30]
call fcn.14004d870
mov rdx, qword [rbp + 0x20]
test rdx, rdx
je 0x14004e1fa
mov r8d, 1
mov rcx, qword [rbp + 0x18]
call fcn.14004d520
mov rax, rsi
add rsp, 0x108
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x30], rax
lea rax, [0x140364cb8]
mov qword [rsp + 0x20], rax
lea rcx, [0x140364a30]
lea r9, fcn.140001ca0
lea r8, [rbp + 0x30]
mov edx, 0x2b
call fcn.14035a2b0
jmp 0x14004e382
mov qword [rbp + 0x50], rdx
lea rax, [0x140364ce0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140364a30]
lea r9, fcn.140001ca0
lea r8, [rbp + 0x50]
mov edx, 0x2b
call fcn.14035a2b0
jmp 0x14004e382
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x50], rax
lea rax, [0x140364cf8]
mov qword [rsp + 0x20], rax
lea rcx, [0x140364a30]
lea r9, fcn.140001ca0
lea r8, [rbp + 0x50]
mov edx, 0x2b
call fcn.14035a2b0
jmp 0x14004e382
mov qword [rbp + 0x50], rax
lea rax, [0x140364d10]
mov qword [rsp + 0x20], rax
lea rcx, [0x140364a30]
lea r9, fcn.140001ca0
lea r8, [rbp + 0x50]
mov edx, 0x2b
call fcn.14035a2b0
jmp 0x14004e382
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x30], rax
lea rax, [0x140364d28]
mov qword [rsp + 0x20], rax
lea rcx, [0x140364a30]
lea r9, fcn.14004d7d0
lea r8, [rbp + 0x30]
mov edx, 0x2b
call fcn.14035a2b0
jmp 0x14004e382
lea rcx, [0x140364d88]
call fcn.140359e00
jmp 0x14004e382
movups xmm0, xmmword [rbp + 0x58]
movaps xmmword [rbp], xmm0
lea rax, [0x140364d58]
mov qword [rsp + 0x20], rax
lea rcx, [0x140364a30]
lea r9, [0x140364a80]
mov r8, rbp
mov edx, 0x2b
call fcn.14035a2b0
jmp 0x14004e382
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x28], r12
lea r8, [0x140364d70]
mov ecx, 5
mov rdx, rdi
call fcn.14035a340
jmp 0x14004e382
xor r15d, r15d
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x28], r12
mov rcx, r15
mov rdx, rdi
call fcn.140359c10
ud2