Function at 0x14003d7f0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x200
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov rsi, rcx
mov r15b, 1
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x90]
call fcn.14003ec60
nop
mov rax, qword [rsp + 0x90]
movsxd rdx, dword [rax + 4]
lea rcx, [rsp + 0x90]
add rcx, rdx
mov edx, 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.140012330
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r9d, 0xffffffff
mov r8d, 6
lea rdx, [rsp + 0x1c0]
call fcn.1400637d4
mov edx, eax
test eax, eax
jne 0x14003d8e0
mov ebx, dword [rsp + 0x1d0]
mov eax, ebx
shr eax, 0xa
test r15b, al
je 0x14003d8d5
mov eax, dword [rsp + 0x1d4]
cmp eax, 0xa000000c
jne 0x14003d8c7
lea ebx, [rdx + 4]
jmp 0x14003d90b
cmp eax, 0xa0000003
jne 0x14003d8d5
mov ebx, 0xa
jmp 0x14003d90b
shr ebx, 4
and ebx, 1
add ebx, 2
jmp 0x14003d90b
sub eax, 2
je 0x14003d8f8
sub eax, 1
je 0x14003d8f8
sub eax, 0x32
je 0x14003d8f8
cmp eax, 0x46
je 0x14003d8f8
xor al, al
jmp 0x14003d8fa
mov al, 1
movzx ebx, al
lea eax, [rbx - 1]
test eax, 0xfffffff7
jne 0x14003dc50
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d950
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d94b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d94b
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 0x14003db49
mov r8d, dword [rsi + 0x44]
lea rdx, [rsi + 0x70]
lea rcx, [rsp + 0x90]
call fcn.14003eb40
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x90]
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 + 0x90]
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 + 0x68], edx
cmp edx, dword [rsi + 0x40]
jbe 0x14003db11
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
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.1400629e4
mov rdi, rax
mov qword [rsp + 0x1b0], rax
mov r8d, dword [rsi + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x90]
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]
xor r14d, r14d
mov word [rax + rdi], r14w
mov r8d, dword [rsi + 0x40]
shr r8, 1
lea rdx, [rsi + 0x90]
cmp qword [rdx + 0x18], 8
jb 0x14003da0a
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 0x14003db04
mov eax, dword [rsp + 0x68]
sub eax, dword [rsi + 0x40]
mov dword [rsp + 0x68], eax
je 0x14003db01
mov ecx, eax
call fcn.1400629e4
mov rbx, rax
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x70], rax
mov r8d, dword [rsp + 0x68]
mov rdx, rax
lea rcx, [rsp + 0x90]
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 + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14003daef
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14003da9b
mov ecx, dword [rax]
sub ecx, 5
jmp 0x14003da9e
mov ecx, r14d
movsxd r8, ecx
test rax, rax
je 0x14003daaa
lea r14, [rax + 4]
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140040050
lea rax, vtable.minibson::document.0
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0xe0]
lea rdx, [rsp + 0x48]
call fcn.14003ff30
nop
lea rcx, [rsp + 0x48]
call fcn.1400408d0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14003daf2
xor r15b, r15b
mov edx, 1
mov rcx, rbx
call fcn.140061c30
jmp 0x14003db04
xor r15b, r15b
mov edx, 1
mov rcx, rdi
call fcn.140061c30
lea rcx, [rsp + 0xa8]
call fcn.14003efc0
test rax, rax
jne 0x14003db4c
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x90]
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 0x14003db4c
xor r15b, r15b
jmp 0x14003db54
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x90], rax
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x8c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0x128], 0
je 0x14003dbe1
mov rax, qword [rsp + 0xc0]
lea rcx, [rsp + 0x118]
cmp qword [rax], rcx
jne 0x14003dbe1
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov qword [rax], rcx
mov rax, qword [rsp + 0xe0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsp + 0xf8]
mov dword [rax], edx
cmp byte [rsp + 0x124], 0
je 0x14003dbf8
lea rcx, [rsp + 0xa8]
call fcn.14003efc0
lea rcx, [rsp + 0xa8]
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 + 0xb0]
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 + 0x148]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, r15b
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.140061c10
lea r11, [rsp + 0x200]
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.140011710
int3