Function at 0x140039cf0
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 [0x1400ab008]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov rsi, rcx
mov r15b, 1
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x90]
call fcn.14003b1a0
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]
cmp qword [rsi + 0x88], 8
jb 0x140039d76
mov rdx, qword [rsi + 0x70]
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov r8, qword [rsi + 0x80]
lea rcx, [rsp + 0x48]
call fcn.140006a60
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r9d, 0xffffffff
lea r8d, [r14 + 6]
lea rdx, [rsp + 0x1c0]
call fcn.140059ebc
mov edx, eax
test eax, eax
jne 0x140039e0b
mov ebx, dword [rsp + 0x1d0]
bt ebx, 0xa
jae 0x140039e00
mov eax, dword [rsp + 0x1d4]
cmp eax, 0xa000000c
jne 0x140039df2
lea ebx, [rdx + 4]
jmp 0x140039e36
cmp eax, 0xa0000003
jne 0x140039e00
mov ebx, 0xa
jmp 0x140039e36
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
jmp 0x140039e36
sub eax, 2
je 0x140039e23
sub eax, 1
je 0x140039e23
sub eax, 0x32
je 0x140039e23
cmp eax, 0x46
je 0x140039e23
xor al, al
jmp 0x140039e25
mov al, 1
movzx ebx, al
lea eax, [rbx - 1]
test eax, 0xfffffff7
jne 0x14003a178
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140039e7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039e76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039e76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058b40
cmp ebx, 4
je 0x14003a071
mov r8d, dword [rsi + 0x44]
lea rdx, [rsi + 0x70]
lea rcx, [rsp + 0x90]
call fcn.14003b080
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 0x14003a039
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.140059834
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]
mov word [rax + rdi], r14w
mov r8d, dword [rsi + 0x40]
shr r8, 1
lea rdx, [rsi + 0x90]
cmp qword [rdx + 0x18], 8
jb 0x140039f32
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 0x14003a02c
mov eax, dword [rsp + 0x68]
sub eax, dword [rsi + 0x40]
mov dword [rsp + 0x68], eax
je 0x14003a029
mov ecx, eax
call fcn.140059834
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 0x14003a017
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x140039fc3
mov ecx, dword [rax]
sub ecx, 5
jmp 0x140039fc6
mov ecx, r14d
movsxd r8, ecx
test rax, rax
je 0x140039fd2
lea r14, [rax + 4]
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.14003c590
lea rax, vtable.minibson::document.0
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0xe0]
lea rdx, [rsp + 0x48]
call fcn.14003c470
nop
lea rcx, [rsp + 0x48]
call fcn.14003ce10
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14003a01a
xor r15b, r15b
mov edx, 1
mov rcx, rbx
call fcn.140058b40
jmp 0x14003a02c
xor r15b, r15b
mov edx, 1
mov rcx, rdi
call fcn.140058b40
lea rcx, [rsp + 0xa8]
call fcn.14003b500
test rax, rax
jne 0x14003a074
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 0x14003a074
xor r15b, r15b
jmp 0x14003a07c
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 0x14003a109
mov rax, qword [rsp + 0xc0]
lea rcx, [rsp + 0x118]
cmp qword [rax], rcx
jne 0x14003a109
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 0x14003a120
lea rcx, [rsp + 0xa8]
call fcn.14003b500
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.140058b20
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.140010da0
int3