Function at 0x14003d7d0
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.14003ec40
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.1400121d0
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.140062ee4
mov edx, eax
test eax, eax
jne 0x14003d8c0
mov ebx, dword [rsp + 0x1d0]
mov eax, ebx
shr eax, 0xa
test r15b, al
je 0x14003d8b5
mov eax, dword [rsp + 0x1d4]
cmp eax, 0xa000000c
jne 0x14003d8a7
lea ebx, [rdx + 4]
jmp 0x14003d8eb
cmp eax, 0xa0000003
jne 0x14003d8b5
mov ebx, 0xa
jmp 0x14003d8eb
shr ebx, 4
and ebx, 1
add ebx, 2
jmp 0x14003d8eb
sub eax, 2
je 0x14003d8d8
sub eax, 1
je 0x14003d8d8
sub eax, 0x32
je 0x14003d8d8
cmp eax, 0x46
je 0x14003d8d8
xor al, al
jmp 0x14003d8da
mov al, 1
movzx ebx, al
lea eax, [rbx - 1]
test eax, 0xfffffff7
jne 0x14003dc30
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003d930
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003d92b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003d92b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061ab0
cmp ebx, 4
je 0x14003db29
mov r8d, dword [rsi + 0x44]
lea rdx, [rsi + 0x70]
lea rcx, [rsp + 0x90]
call fcn.14003eb20
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 0x14003daf1
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.1400627d4
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 0x14003d9ea
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 0x14003dae4
mov eax, dword [rsp + 0x68]
sub eax, dword [rsi + 0x40]
mov dword [rsp + 0x68], eax
je 0x14003dae1
mov ecx, eax
call fcn.1400627d4
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 0x14003dacf
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14003da7b
mov ecx, dword [rax]
sub ecx, 5
jmp 0x14003da7e
mov ecx, r14d
movsxd r8, ecx
test rax, rax
je 0x14003da8a
lea r14, [rax + 4]
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140040030
lea rax, vtable.minibson::document.0
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0xe0]
lea rdx, [rsp + 0x48]
call fcn.14003ff10
nop
lea rcx, [rsp + 0x48]
call fcn.1400408b0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14003dad2
xor r15b, r15b
mov edx, 1
mov rcx, rbx
call fcn.140061ab0
jmp 0x14003dae4
xor r15b, r15b
mov edx, 1
mov rcx, rdi
call fcn.140061ab0
lea rcx, [rsp + 0xa8]
call fcn.14003efa0
test rax, rax
jne 0x14003db2c
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 0x14003db2c
xor r15b, r15b
jmp 0x14003db34
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 0x14003dbc1
mov rax, qword [rsp + 0xc0]
lea rcx, [rsp + 0x118]
cmp qword [rax], rcx
jne 0x14003dbc1
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 0x14003dbd8
lea rcx, [rsp + 0xa8]
call fcn.14003efa0
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.140061a90
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.140011560
int3