Function at 0x14003da40
Capabilities:
Encrypt data using dpapi

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x220
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rsi, rcx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov r14b, 1
xor edx, edx
mov r8d, 0x118
lea rcx, [r11 - 0x188]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xb0]
call fcn.14003f250
nop
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xb0]
add rcx, rax
lea edx, [r15 + 6]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::ios_base::exceptions_int____ptr64]
nop
lea rdx, [rsi + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400122b0
nop
mov dword [rsp + 0x1d0], 1
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r9d, 0xffffffff
lea r8d, [r15 + 6]
lea rdx, [rsp + 0x1e0]
call fcn.140064044
mov edx, eax
test eax, eax
jne 0x14003db3f
mov ecx, dword [rsp + 0x1f0]
mov eax, ecx
shr eax, 0xa
test r14b, al
je 0x14003db34
mov eax, dword [rsp + 0x1f4]
cmp eax, 0xa000000c
jne 0x14003db26
lea ecx, [rdx + 4]
jmp 0x14003db6a
cmp eax, 0xa0000003
jne 0x14003db34
mov ecx, 0xa
jmp 0x14003db6a
shr ecx, 4
and ecx, 1
add ecx, 2
jmp 0x14003db6a
sub eax, 2
je 0x14003db57
sub eax, 1
je 0x14003db57
sub eax, 0x32
je 0x14003db57
cmp eax, 0x46
je 0x14003db57
xor al, al
jmp 0x14003db59
mov al, 1
movzx ecx, al
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x14003dee5
cmp ecx, 4
je 0x14003db8d
lea rdx, [rsi + 0x70]
lea rcx, [rsp + 0x68]
call fcn.140005250
mov rdx, rax
call fcn.14003e320
test al, al
jne 0x14003db8d
mov bl, 1
jmp 0x14003db8f
xor bl, bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003dbd4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dbcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003dbcf
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 0x14003ddde
mov r8d, dword [rsi + 0x44]
lea rdx, [rsi + 0x70]
lea rcx, [rsp + 0xb0]
call fcn.14003f130
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov edx, dword [rax + 8]
mov eax, dword [rax]
add edx, eax
mov dword [rsp + 0x88], edx
cmp edx, dword [rsi + 0x40]
jbe 0x14003dda6
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov ecx, dword [rsi + 0x40]
add ecx, 2
call fcn.140063254
mov rdi, rax
mov qword [rsp + 0x1d8], rax
mov r8d, dword [rsi + 0x40]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov eax, dword [rsi + 0x40]
mov word [rax + rdi], r15w
mov r8d, dword [rsi + 0x40]
shr r8, 1
lea rdx, [rsi + 0x90]
cmp qword [rdx + 0x18], 8
jb 0x14003dc8d
mov rdx, qword [rdx]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x14003dd99
mov eax, dword [rsp + 0x88]
sub eax, dword [rsi + 0x40]
mov dword [rsp + 0x88], eax
je 0x14003dd96
mov ecx, eax
call fcn.140063254
mov rbx, rax
mov qword [rsp + 0x1d0], rax
mov qword [rsp + 0x90], rax
mov r8d, dword [rsp + 0x88]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14003dd84
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x14003dd30
mov ecx, dword [rax]
sub ecx, 5
jmp 0x14003dd33
mov ecx, r15d
movsxd r8, ecx
test rax, rax
je 0x14003dd3f
lea r15, [rax + 4]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140040640
lea rax, vtable.minibson::document.0
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0xe0]
lea rdx, [rsp + 0x48]
call fcn.140040520
nop
lea rcx, [rsp + 0x48]
call fcn.140040ec0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14003dd87
xor r14b, r14b
mov edx, 1
mov rcx, rbx
call fcn.1400624a0
jmp 0x14003dd99
xor r14b, r14b
mov edx, 1
mov rcx, rdi
call fcn.1400624a0
lea rcx, [rsp + 0xc8]
call fcn.14003f5b0
test rax, rax
jne 0x14003dde1
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xb0]
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]
jmp 0x14003dde1
xor r14b, r14b
jmp 0x14003dde9
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xb0], rax
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0xac], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0x148], 0
je 0x14003de76
mov rax, qword [rsp + 0xe0]
lea rcx, [rsp + 0x138]
cmp qword [rax], rcx
jne 0x14003de76
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x150]
mov qword [rax], rcx
mov rax, qword [rsp + 0x100]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0x118]
mov dword [rax], edx
cmp byte [rsp + 0x144], 0
je 0x14003de8d
lea rcx, [rsp + 0xc8]
call fcn.14003f5b0
lea rcx, [rsp + 0xc8]
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 + 0xd0]
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 + 0x168]
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 [rsp + 0x218]
xor rcx, rsp
call fcn.140062480
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea r8, [rsp + 0x48]
call fcn.140011640
int3