Function at 0x140104750
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
movaps xmmword [rsp + 0x290], xmm6
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, r8
mov rbx, rdx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0xf
jbe 0x1401047ad
mov rbx, qword [rbx]
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.140107910
nop
mov qword [rbp - 0x40], r15
mov word [rbp - 0x38], 1
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0xb8]
mov qword [rbp - 0x50], rcx
test rcx, rcx
sete byte [rbp - 0x48]
mov byte [rbp - 0x47], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm6, xmmword [rbp - 0x40]
test rcx, rcx
je 0x140104836
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 0x140104825
mov byte [rbp - 0x47], al
mov rax, qword [rbp - 0x50]
mov byte [rbp - 0x48], 1
movaps xmm0, xmmword [rbp - 0x50]
jmp 0x14010483b
mov rax, r15
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 1
movaps xmm0, xmmword [rbp - 0x50]
jmp 0x14010483b
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x140104938
test rax, rax
je 0x140104941
movdqa xmmword [rbp - 0x40], xmm6
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x40]
call fcn.140110a90
nop
mov qword [rbp - 0x60], r15
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x60]
call fcn.14010a230
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov r8d, 8
lea rdx, str.os_crypt
lea rcx, [rbp - 0x40]
call fcn.14010b490
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x60]
call fcn.14010c8e0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r8d, select
lea rdx, str.encrypted_key
lea rcx, [rsp + 0x48]
call fcn.14010b490
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14010c8e0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x20], 0
mov dword [rsp + 0x40], 8
cmp byte [rax], 3
jne 0x140104c05
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x20]
call fcn.140108a20
nop
mov rax, qword [rbp + 0x30]
test rax, rax
jne 0x140104957
xor r14b, r14b
jmp 0x140104ae9
test rax, rax
je 0x140104852
movdqa xmm0, xmmword [0x140421a00]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
jmp 0x14010486e
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], 0
mov qword [rbp - 0x50], rax
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rdx, qword [rbp + 0x20]
lea r8, [rbp - 0x50]
lea rcx, [rsp + 0x48]
call fcn.1401001a0
mov rdx, rax
lea rcx, [rbp]
call fcn.140108ab0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1401049da
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401049d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401049d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140336ff4
mov rbx, qword [rbp + 0x10]
mov eax, 5
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rcx, qword [rbp]
sub rbx, rax
lea r8, [rbx + 1]
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x10], rbx
lea rax, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rax, qword [rbp]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x40], ebx
lea rax, [rbp - 0x50]
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, [rbp - 0x40]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
setne r14b
test eax, eax
je 0x140104a9b
mov ebx, dword [rbp - 0x50]
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x140104a81
mov rsi, rdi
cmp rax, 0xf
jbe 0x140104a68
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, qword [rbp - 0x48]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140104a90
mov r9, qword [rbp - 0x48]
mov rdx, rbx
mov rcx, rdi
call fcn.14010b1c0
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x140104ad9
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104ad4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104ad4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140336ff4
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x140104b28
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104b22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104b22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140336ff4
nop
movzx edx, byte [rbp + 0x60]
lea rcx, [rbp + 0x68]
call fcn.140109740
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140104b74
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104b6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104b6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140336ff4
movdqa xmm0, xmmword [0x140421a00]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
mov rcx, qword [rbp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx + 0x70], rax
mov rcx, qword [rbp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rbp + rdx + 0x6c], r8d
lea rcx, [rbp + 0x80]
call fcn.1401078a0
lea rcx, [rbp + 0x88]
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 + 0x120]
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 + 0x180]
xor rcx, rsp
call fcn.140336f90
mov rbx, qword [rsp + 0x2d0]
movaps xmm6, xmmword [rsp + 0x290]
add rsp, 0x2a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call fcn.14010d6c0
mov qword [rbp - 0x50], rax
lea r8, [rbp - 0x50]
lea rcx, [rsp + 0x48]
call fcn.14011f1c0
nop
mov r8, rax
lea rcx, [rbp - 0x40]
call fcn.14011f280
lea rdx, [0x1404428a8]
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3