Function at 0x140005f50
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
movaps xmmword [rsp + 0x230], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, r8
mov rbx, rdx
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0xf
jbe 0x140005fa5
mov rbx, qword [rbx]
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140009410
nop
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov word [rsp + 0x78], 1
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0x58]
mov qword [rsp + 0x60], rcx
test rcx, rcx
sete byte [rsp + 0x68]
mov byte [rsp + 0x69], r15b
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm6, xmmword [rsp + 0x70]
test rcx, rcx
je 0x14000603d
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140006029
mov byte [rsp + 0x69], al
mov rax, qword [rsp + 0x60]
mov byte [rsp + 0x68], 1
movaps xmm0, xmmword [rsp + 0x60]
jmp 0x140006042
mov rax, r15
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x68], 1
movaps xmm0, xmmword [rsp + 0x60]
jmp 0x140006042
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x140006104
test rax, rax
je 0x14000610d
movdqa xmmword [rsp + 0x70], xmm6
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x38]
call fcn.14000d020
nop
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
mov qword [rbp - 0x60], r15
movups xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, 0x19
lea rdx, str._encrypted_key_:_______
lea rcx, [rsp + 0x70]
call fcn.14000bda0
nop
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x40]
call fcn.140009ff0
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400041d0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140006128
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006123
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006123
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rax, rax
je 0x140006059
movdqa xmm0, xmmword [0x14001a650]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], r15b
jmp 0x140006079
call fcn.1400165d4
mov rcx, qword [rbp - 0x70]
cmp rcx, qword [rbp - 0x68]
jne 0x14000613a
xor r14b, r14b
jmp 0x140006328
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140009ff0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rax, qword [rbp - 8]
mov qword [rsp + 0x60], rax
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0xf
cmova rdx, qword [rbp - 0x18]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140001df0
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140009e00
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1400061cf
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400061ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400061ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400165d4
mov rbx, qword [rbp - 0x48]
mov eax, 5
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
sub rbx, rax
lea r8, [rbx + 1]
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x48], rbx
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rax, qword [rbp - 0x58]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
setne r14b
test eax, eax
je 0x140006298
mov ebx, dword [rsp + 0x60]
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x14000627c
mov rsi, rdi
cmp rax, 0xf
jbe 0x140006262
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x14000628c
mov r9, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
call fcn.14000bc60
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x1400062d6
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400062d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400165d4
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140006324
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000631f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000631f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400165d4
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14000637e
mov rdx, qword [rbp - 0x68]
call fcn.14000b200
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x70]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000636d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000636d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400165d4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r15
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x1400063bc
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400063b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400063b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400165d4
movdqa xmm0, xmmword [0x14001a650]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0xa0], 0
je 0x140006438
mov rax, qword [rbp + 0x38]
lea rcx, [rbp + 0x90]
cmp qword [rax], rcx
jne 0x140006438
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xa8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x58]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x70]
mov dword [rax], edx
cmp byte [rbp + 0x9c], 0
je 0x14000644a
lea rcx, [rbp + 0x20]
call fcn.14000a5b0
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, r14b
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140016570
mov rbx, qword [rsp + 0x270]
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret