Function at 0x14012af50
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
movaps xmmword [rsp + 0x280], xmm6
mov rax, qword [0x140384e00]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor r13d, r13d
mov rsi, qword [rdx + 0x10]
mov rdi, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14012afa7
mov rdi, qword [rdx]
call fcn.1402be624
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rsi
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140129c00
nop
lea rcx, [rbp - 0x70]
call fcn.14012a6d0
movzx edi, al
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x14012b016
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012b011
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14012b011
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402bee54
test dil, dil
jne 0x14012b02e
lea rdx, str.error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14012d590
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14012b04c
mov rdx, qword [rbx]
lea rcx, [rbp + 0x60]
call fcn.14012d050
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rsi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
cmp qword [rbp + 0xf0], 0
jne 0x14012b0c1
lea rdx, str.Error_opening_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14012d590
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14012b0a6
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14012e4f0
lea rdx, [0x14012d760]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x60], r13
mov word [rsp + 0x68], 1
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0xa8]
mov qword [rsp + 0x50], rcx
test rcx, rcx
sete byte [rsp + 0x58]
mov byte [rsp + 0x59], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm6, xmmword [rsp + 0x60]
test rcx, rcx
je 0x14012b147
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 0x14012b133
mov byte [rsp + 0x59], al
mov rax, qword [rsp + 0x50]
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x14012b14c
mov rax, r13
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x14012b14c
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x14012b269
test rax, rax
je 0x14012b272
movdqa xmmword [rsp + 0x60], xmm6
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14012e6b0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
lea rdx, str._encrypted_key_:_______
lea rcx, [rbp - 0x38]
call fcn.14012ba50
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp - 0x10], r13
mov byte [rbp - 8], 0
movdqa xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x10], xmm1
mov qword [rbp + 0x20], r13
mov byte [rbp + 0x28], 0
movdqa xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x40], 0
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x50], r13
mov byte [rbp + 0x58], 0
lea r10, [rsp + 0x70]
mov r9, qword [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova r10, r9
lea rdx, [rsp + 0x70]
cmova rdx, r9
add rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, r9
mov qword [rsp + 0x28], r10
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x10]
call fcn.14012e920
test al, al
je 0x14012b65a
mov rcx, qword [rbp + 8]
mov r8, qword [rbp]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
ja 0x14012b288
lea rax, [rbp + 0x48]
lea r8, [rbp + 0x58]
jmp 0x14012b290
test rax, rax
je 0x14012b163
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
jmp 0x14012b184
lea rax, [r8 + 0x18]
add r8, 0x28
cmp byte [r8], 0
je 0x14012b2a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
jmp 0x14012b2a9
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
cmp rdx, r8
jne 0x14012b2da
movdqa xmm0, xmmword [0x1403659d0]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
jmp 0x14012b2e7
sub r8, rdx
lea rcx, [rbp - 0x70]
call fcn.14012da20
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.14012a7d0
nop
mov rdi, qword [rbp - 0x48]
mov rax, rdi
mov rbx, qword [rbp - 0x50]
sub rax, rbx
cmp rax, 5
jb 0x14012b334
lea rdx, [rbx + 5]
cmp rbx, rdx
je 0x14012b334
sub rdi, rdx
mov r8, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
add rdi, rbx
mov qword [rbp - 0x48], rdi
sub rdi, rbx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14012b5df
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov r15d, dword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add r15, r12
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
mov rdi, r15
sub rdi, r12
je 0x14012b421
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x14012b7e7
cmp rdi, 0x1000
jb 0x14012b3e2
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14012b7e1
call fcn.1402bee10
test rax, rax
je 0x14012b3db
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14012b3ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1402bee10
mov rsi, rax
mov qword [r14], rsi
mov qword [r14 + 8], rsi
lea rax, [rsi + rdi]
mov qword [r14 + 0x10], rax
sub r15, r12
mov r8, r15
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + r15]
mov qword [r14 + 8], rax
mov r12, qword [rsp + 0x68]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
test rbx, rbx
je 0x14012b465
mov rdx, qword [rbp - 0x40]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14012b45c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012b60c
mov rcx, rbx
call fcn.1402bee54
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14012b4a0
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012b49b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012b64e
call fcn.1402bee54
movdqa xmm0, xmmword [0x1403659d0]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
lea rcx, [rbp]
call fcn.14012b930
nop
lea rcx, [rbp - 0x38]
call fcn.14012ce20
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14012b4e6
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
test rax, rax
je 0x14012b4e6
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14012b525
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012b520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14012b520
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402bee54
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], rsi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0xf0], 0
je 0x14012b5a3
mov rax, qword [rbp + 0x88]
lea rcx, [rbp + 0xe0]
cmp qword [rax], rcx
jne 0x14012b5a3
mov rdx, qword [rbp + 0x100]
mov rcx, qword [rbp + 0xf8]
mov qword [rax], rcx
mov rax, qword [rbp + 0xa8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xc0]
mov dword [rax], edx
cmp byte [rbp + 0xec], 0
je 0x14012b5b5
lea rcx, [rbp + 0x70]
call fcn.14012cf90
lea rcx, [rbp + 0x70]
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 + 0x78]
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 + 0x110]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, r14
jmp 0x14012b7af
test rbx, rbx
je 0x14012b61c
mov rdx, qword [rbp - 0x40]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14012b613
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14012b613
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1402bee54
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14012b65a
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012b655
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14012b655
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402bee54
lea rcx, [rbp + 0x70]
call fcn.14012cf90
test rax, rax
jne 0x14012b685
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp]
call fcn.14012b930
nop
lea rcx, [rbp - 0x38]
call fcn.14012ce20
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14012b6be
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14012b6be
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14012b6fd
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012b6f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14012b6f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402bee54
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], rsi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0xf0], 0
je 0x14012b77b
mov rax, qword [rbp + 0x88]
lea rcx, [rbp + 0xe0]
cmp qword [rax], rcx
jne 0x14012b77b
mov rdx, qword [rbp + 0x100]
mov rcx, qword [rbp + 0xf8]
mov qword [rax], rcx
mov rax, qword [rbp + 0xa8]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xc0]
mov dword [rax], edx
cmp byte [rbp + 0xec], 0
je 0x14012b78d
lea rcx, [rbp + 0x70]
call fcn.14012cf90
lea rcx, [rbp + 0x70]
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 + 0x78]
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 + 0x110]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1402bedf0
mov rbx, qword [rsp + 0x2e0]
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140128f30
nop
call fcn.14012e4a0
int3