Function at 0x1400030a0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14001e240]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x48], rdx
mov qword [rbp - 0x40], r8
mov rdx, r8
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QFile::constructor_class_QString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public:_bool___cdecl_QFile::exists_void_const___ptr64]
test al, al
jne 0x140003111
mov r8, 0xffffffffffffffff
lea rdx, [0x14000c299]
mov rcx, rdi
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::constructor_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000331c
mov edx, 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public_virtual:_bool___cdecl_QFile::open_class_QFlags_enum_QIODeviceBase::OpenModeFlag_____ptr64]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public:_class_QByteArray___cdecl_QIODevice::readAll_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QJsonDocument::constructor_void____ptr64]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QJsonParseError::constructor_void____ptr64]
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QJsonDocument___cdecl_QJsonDocument::fromJson_class_QByteArray_const____ptr64__struct_QJsonParseError____ptr64_]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_class_QJsonDocument____ptr64___cdecl_QJsonDocument::operator_class_QJsonDocument____ptr64____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QJsonDocument::destructor_void____ptr64]
lea rdx, str.os_crypt
lea rcx, [rbp - 0x20]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_class_QJsonValue___cdecl_QJsonDocument::operator___class_QString_const____ptr64_const___ptr64]
mov rbx, rax
lea rdx, str.encrypted_key
lea rcx, [rbp - 0x38]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x58]
mov rcx, rbx
call qword [sym.imp.Qt6Core.dll_public:_class_QJsonValue___cdecl_QJsonValue::operator___class_QString_const____ptr64_const___ptr64]
nop
lea rdx, [rbp + 0x70]
mov rcx, rax
call qword [sym.imp.Qt6Core.dll_public:_class_QVariant___cdecl_QJsonValue::toVariant_void____ptr64]
nop
lea rdx, [rbp + 0x40]
mov rcx, rax
call qword [sym.imp.Qt6Core.dll_public:_class_QByteArray___cdecl_QVariant::toByteArray_void____ptr64]
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QByteArray___cdecl_QByteArray::fromBase64_class_QByteArray_const____ptr64__class_QFlags_enum_QByteArray::Base64Option__]
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QJsonValue::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QJsonValue::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll_public:_long_long___int64____cdecl_QByteArray::length_void_const___ptr64]
lea r8, [rax - 5]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll__right_QByteArray__QEGBA_AV1__J_Z]
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll_public:_char____ptr64___cdecl_QByteArray::data_void____ptr64]
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll_public:_long_long___int64____cdecl_QByteArray::size_void_const___ptr64]
mov dword [rbp - 0x78], eax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call sub.CRYPT32.dll_CryptUnprotectData
mov r8d, dword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 8]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QByteArray___cdecl_QByteArray::fromRawData_char_const____ptr64__long_long___int64__]
lea rdx, [rbp - 8]
mov rcx, rdi
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QJsonDocument::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public_virtual:_void___cdecl_QFile::destructor_void____ptr64]
nop
mov rcx, rsi
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140008510
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret