Function at 0x14003d3e0
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 [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r14, rcx
mov qword [rsp + 0x70], rcx
xor esi, esi
mov dword [rsp + 0x44], esi
mov r15b, 1
lea rdx, [rcx + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400122b0
nop
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r9d, 0xffffffff
lea r8d, [rsi + 6]
lea rdx, [rsp + 0x1c0]
call fcn.140064044
mov edx, eax
test eax, eax
jne 0x14003d49f
mov ecx, dword [rsp + 0x1d0]
mov eax, ecx
shr eax, 0xa
test r15b, al
je 0x14003d494
mov eax, dword [rsp + 0x1d4]
cmp eax, 0xa000000c
jne 0x14003d486
lea ecx, [rsi + 4]
jmp 0x14003d4ca
cmp eax, 0xa0000003
jne 0x14003d494
mov ecx, 0xa
jmp 0x14003d4ca
shr ecx, 4
and ecx, 1
add ecx, 2
jmp 0x14003d4ca
sub eax, 2
je 0x14003d4b7
sub eax, 1
je 0x14003d4b7
sub eax, 0x32
je 0x14003d4b7
cmp eax, 0x46
je 0x14003d4b7
xor al, al
jmp 0x14003d4b9
mov al, 1
movzx ecx, al
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x14003d959
cmp ecx, 4
je 0x14003d4f0
lea rdx, [r14 + 0x70]
lea rcx, [rsp + 0x1e8]
call fcn.140005250
mov rdx, rax
call fcn.14003e320
test al, al
jne 0x14003d4f0
mov bl, 1
jmp 0x14003d4f2
xor bl, bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d537
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d532
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d532
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400624a0
test bl, bl
je 0x14003d925
mov rax, qword [r14 + 0xe0]
lea rcx, [r14 + 0xe0]
call qword [rax + 0x10]
mov rdi, rax
mov rcx, rax
call fcn.140063254
mov r13, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x1e0], rax
mov rax, qword [r14 + 0xe0]
mov r8, rdi
mov rdx, r13
lea rcx, [r14 + 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.14003f250
nop
mov qword [rsp + 0x1c0], rsi
mov qword [rsp + 0x1d0], rsi
mov esi, 7
mov qword [rsp + 0x1d8], rsi
xor eax, eax
mov word [rsp + 0x1c0], ax
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], r13
lea rdx, [r14 + 0x70]
cmp qword [r14 + 0x88], 8
jb 0x14003d60d
mov rdx, qword [r14 + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x90]
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x14003d7ff
lea rbx, [r14 + 0x90]
lea rax, [rsp + 0x1c0]
cmp rax, rbx
je 0x14003d67f
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003d666
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x1c0]
call fcn.1400059e0
mov rsi, qword [rsp + 0x1d8]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov dword [rsp + 0x44], 2
lea rcx, [rsp + 0x1e8]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x1e8]
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 0x14003d6d0
lea rcx, [rsp + 0x48]
call fcn.1400059e0
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140009080
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d743
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d73e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d73e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400624a0
mov r8d, dword [r14 + 0x48]
lea rdx, [r14 + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.14003f130
mov r8d, dword [r14 + 0x40]
cmp qword [rbx + 0x18], 8
jb 0x14003d766
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.14003f5b0
test rax, rax
jne 0x14003d7cc
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 0x14003d802
xor r15b, r15b
cmp rsi, 8
jb 0x14003d846
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d840
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400624a0
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 0x14003d8d3
mov rax, qword [rsp + 0xd0]
lea rcx, [rsp + 0x128]
cmp qword [rax], rcx
jne 0x14003d8d3
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 0x14003d8ea
lea rcx, [rsp + 0xb8]
call fcn.14003f5b0
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, r13
call fcn.1400624a0
jmp 0x14003d928
xor r15b, r15b
movzx eax, r15b
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140062480
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.140011640
int3