Function at 0x140008660
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14018d0f0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x40], rdx
mov qword [rbp + 0x28], r8
xor r14d, r14d
mov dword [rsp + 0x48], r14d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x60]
call fcn.14011d640
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400086c1
mov rdx, qword [rdi]
mov r8d, 1
lea rcx, [rbp + 0x60]
call fcn.14000ed70
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], r15
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
mov qword [rbp], r14
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x50]
call fcn.1400108d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov r8d, 8
lea rdx, str.os_crypt
lea rcx, [rsp + 0x50]
call fcn.140011420
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x50]
call fcn.140012c00
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
mov r8d, 0xd
lea rdx, str.encrypted_key
lea rcx, [rbp - 0x58]
call fcn.140011420
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.140012c00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [0x140170920]
movdqu xmmword [rbp - 0x68], xmm1
mov byte [rbp - 0x78], 0
mov dword [rsp + 0x48], 0x10
cmp byte [rax], 3
jne 0x1400089a7
mov rdx, qword [rax + 8]
lea rax, [rbp - 0x78]
cmp rax, rdx
je 0x1400087c6
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400087bc
mov rdx, qword [rdx]
lea rcx, [rbp - 0x78]
call fcn.14000f1d0
nop
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x30]
call fcn.140003ad0
nop
lea rcx, [rbp - 0x78]
call fcn.14000f170
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rax, qword [rbp + 0x40]
cmp rax, 5
jb 0x1400089e2
add rax, 0xfffffffffffffffb
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
add rdx, 5
lea rcx, [rsp + 0x50]
call fcn.140011420
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140008865
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008860
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400089a1
call fcn.14011a800
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x40], xmm1
movdqa xmm0, xmmword [0x140170920]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call fcn.14000f170
mov eax, dword [rbp + 0x40]
mov dword [rbp + 8], eax
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rax, qword [rbp + 0x30]
mov qword [rbp + 0x10], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov r8d, dword [rbp + 0x18]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov rdx, qword [rbp + 0x20]
mov rcx, rsi
call fcn.140011420
nop
lea rcx, [rbp + 0x30]
call fcn.14000f170
nop
movzx edx, byte [rbp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.14000f590
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], r15
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x70]
call fcn.14000d6d0
mov rax, qword [rbp + 0x60]
movsxd rdx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx + 0x60], rax
mov rdx, qword [rbp + 0x60]
movsxd r8, dword [rdx + 4]
lea r9d, [r8 - 0x18]
mov dword [rbp + r8 + 0x5c], r9d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x110]
call fcn.1400ff77c
nop
mov rcx, rdi
call fcn.14000f170
mov rax, rsi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14011a7e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14012f968
nop
mov rcx, rax
call fcn.140013bd0
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.140023c00
nop
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.140023cb0
lea rdx, [0x14018b590]
lea rcx, [rsp + 0x50]
call fcn.14011d468
nop
call fcn.14000fe00
int3