Function at 0x1400ac120
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2c8], rbx
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, r8
mov r9, qword [rcx]
mov qword [rsp + 0x70], r9
mov rax, qword [rcx + 8]
sub rax, r9
mov dword [rsp + 0x68], eax
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400ac178
mov rax, qword [rdx]
mov qword [rsp + 0x60], rax
mov rax, qword [rdx + 0x10]
mov dword [rsp + 0x58], eax
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], ecx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp qword [rsp + 0x50], 0
jne 0x1400ac263
lea rax, str.DecryptData
mov qword [rsp + 0x20], rax
lea r9, str.SecurityUtils__s:_Failed_to_decrypt__blob_is_null
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x80]
call fcn.14001f090
test eax, eax
js 0x1400ac25c
lea rcx, [rbp - 0x80]
call fcn.14001f120
nop
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x70]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::SecurityUtils::DecryptData
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b0c]
call fcn.140020db0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x80]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rbp - 0x80]
call fcn.14001f1f0
xor al, al
jmp 0x1400ac451
test eax, eax
jne 0x1400ac315
lea rax, str.DecryptData
mov qword [rsp + 0x20], rax
lea r9, str.SecurityUtils__s:_Failed_to_decrypt__result_is_false
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x80]
call fcn.14001f090
test eax, eax
js 0x1400ac303
lea rcx, [rbp - 0x80]
call fcn.14001f120
nop
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x70]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::SecurityUtils::DecryptData
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b0c]
call fcn.140020db0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x80]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rbp - 0x80]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x1400ac451
mov edx, dword [rsp + 0x48]
mov rcx, rbx
call fcn.1400b13d0
mov rcx, qword [rbx]
mov rbx, qword [rbx + 8]
sub rbx, rcx
mov edi, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x1400ac444
test rcx, rcx
jne 0x1400ac350
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x1400ac39a
test rsi, rsi
je 0x1400ac36c
cmp rbx, rdi
jb 0x1400ac36c
mov r8, rdi
mov rdx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400ac444
mov r8, rbx
xor edx, edx
call fcn.1401ec560
test rsi, rsi
jne 0x1400ac389
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x1400ac39a
cmp rbx, rdi
jae 0x1400ac3a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
lea rax, str.DecryptData
mov qword [rsp + 0x20], rax
lea r9, str.SecurityUtils__s:_Failed_to_copy_plain_text___d
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x80]
call fcn.14001f090
test eax, eax
js 0x1400ac444
lea rcx, [rbp - 0x80]
call fcn.14001f120
nop
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x70]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::SecurityUtils::DecryptData
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b0c]
call fcn.140020db0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x80]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rbp - 0x80]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1401eb080
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret