Function at 0x14003d1d0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r15, rcx
mov qword [rsp + 0x68], rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov r14b, 1
mov rax, qword [rcx + 0xe0]
add rcx, 0xe0
call qword [rax + 0x10]
mov rdi, rax
mov rcx, rax
call fcn.1400629e4
mov r12, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x200], rax
mov rax, qword [r15 + 0xe0]
mov r8, rdi
mov rdx, r12
lea rcx, [r15 + 0xe0]
call qword [rax + 8]
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xa0]
call fcn.14003ec60
nop
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1d0], r13
mov esi, 7
mov qword [rsp + 0x1d8], rsi
mov word [rsp + 0x1c0], r13w
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
lea edx, [rsi - 1]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::ios_base::exceptions_int____ptr64]
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x98], r12
lea rdx, [r15 + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140012330
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r9d, 0xffffffff
lea r8d, [r13 + 6]
lea rdx, [rsp + 0x1e0]
call fcn.1400637d4
mov edx, eax
test eax, eax
jne 0x14003d344
mov ebx, dword [rsp + 0x1f0]
mov eax, ebx
shr eax, 0xa
test r14b, al
je 0x14003d339
mov eax, dword [rsp + 0x1f4]
cmp eax, 0xa000000c
jne 0x14003d32b
lea ebx, [rsi - 3]
jmp 0x14003d36f
cmp eax, 0xa0000003
jne 0x14003d339
mov ebx, 0xa
jmp 0x14003d36f
shr ebx, 4
and ebx, 1
add ebx, 2
jmp 0x14003d36f
sub eax, 2
je 0x14003d35c
sub eax, 1
je 0x14003d35c
sub eax, 0x32
je 0x14003d35c
cmp eax, 0x46
je 0x14003d35c
xor al, al
jmp 0x14003d35e
mov al, 1
movzx ebx, al
lea eax, [rbx - 1]
test eax, 0xfffffff7
jne 0x14003d714
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d3b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d3af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d3af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061c30
cmp ebx, 4
je 0x14003d5bf
lea rdx, [r15 + 0x70]
cmp qword [r15 + 0x88], 8
jb 0x14003d3cf
mov rdx, qword [r15 + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x90]
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x14003d5bf
lea rbx, [r15 + 0x90]
lea rax, [rsp + 0x1c0]
cmp rax, rbx
je 0x14003d43f
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003d426
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x1c0]
call fcn.140005ae0
mov rsi, qword [rsp + 0x1d8]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov rdx, qword [rsp + 0x78]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003d490
lea rcx, [rsp + 0x48]
call fcn.140005ae0
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140009150
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d503
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d4fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d4fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061c30
mov r8d, dword [r15 + 0x48]
lea rdx, [r15 + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.14003eb40
mov r8d, dword [r15 + 0x40]
cmp qword [rbx + 0x18], 8
jb 0x14003d526
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0xb0]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xb0]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0xb8]
call fcn.14003efc0
test rax, rax
jne 0x14003d58c
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
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
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14003d5c2
xor r14b, r14b
cmp rsi, 8
jb 0x14003d606
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d600
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d600
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061c30
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x9c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0x138], 0
je 0x14003d693
mov rax, qword [rsp + 0xd0]
lea rcx, [rsp + 0x128]
cmp qword [rax], rcx
jne 0x14003d693
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
mov qword [rax], rcx
mov rax, qword [rsp + 0xf0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0x108]
mov dword [rax], edx
cmp byte [rsp + 0x134], 0
je 0x14003d6aa
lea rcx, [rsp + 0xb8]
call fcn.14003efc0
lea rcx, [rsp + 0xb8]
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, [rsp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x158]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov edx, 1
mov rcx, r12
call fcn.140061c30
movzx eax, r14b
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140061c10
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r8, [rsp + 0x48]
call fcn.140011710
int3