Function at 0x140043880
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, 0x200
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov rsi, rcx
xor r15d, r15d
mov dword [r11 - 0x48], r15d
mov r14b, 1
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [r11 - 0x168]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xb0]
call fcn.140044f40
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 rbx, [rsi + 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140013ee0
nop
mov dword [rsp + 0x1d0], 1
lea rcx, [rsp + 0x48]
call fcn.1400132c0
test al, al
jne 0x140043944
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140005d60
mov rdx, rax
call fcn.140044000
test al, al
jne 0x140043944
movzx edi, r14b
jmp 0x140043947
xor dil, dil
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14004398c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043987
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043987
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400688bc
test dil, dil
je 0x140043b9e
cmp qword [rbx + 0x18], 7
jbe 0x14004399f
mov rbx, qword [rbx]
mov r8d, dword [rsi + 0x44]
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.140045300
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]
add edx, dword [rax]
mov dword [rsp + 0x88], edx
cmp edx, dword [rsi + 0x40]
jbe 0x140043b66
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.140069634
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], 7
jbe 0x140043a4d
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 0x140043b59
mov eax, dword [rsp + 0x88]
sub eax, dword [rsi + 0x40]
mov dword [rsp + 0x88], eax
je 0x140043b56
mov ecx, eax
call fcn.140069634
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 0x140043b44
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x140043af0
mov ecx, dword [rax]
sub ecx, 5
jmp 0x140043af3
mov ecx, r15d
movsxd r8, ecx
test rax, rax
je 0x140043aff
lea r15, [rax + 4]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140046670
lea rax, vtable.minibson::document.0
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0xe0]
lea rdx, [rsp + 0x48]
call fcn.140046550
nop
lea rcx, [rsp + 0x48]
call fcn.140046e80
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140043b47
xor r14b, r14b
mov edx, 1
mov rcx, rbx
call fcn.1400688bc
jmp 0x140043b59
xor r14b, r14b
mov edx, 1
mov rcx, rdi
call fcn.1400688bc
lea rcx, [rsp + 0xc8]
call fcn.140045240
test rax, rax
jne 0x140043ba1
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 0x140043ba1
xor r14b, r14b
jmp 0x140043ba9
mov rcx, qword [rsp + 0xb0]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb8]
mov dword [rsp + rdx + 0xac], r8d
lea rcx, [rsp + 0xc8]
call fcn.140044ed0
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 + 0x1f8]
xor rcx, rsp
call fcn.140068870
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret