Function at 0x100c51b0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022f323
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x12c
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x30]
call fcn.1007e380
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp + 0xc]
call fcn.100bc690
mov dword [ebp - 0xe0], eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.1004e3e0
mov dword [ebp - 0xdc], eax
xor ecx, ecx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
push 0x10239568
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 0x102395f0
xor edx, edx
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xcc], edx
lea eax, [ebp - 0xd0]
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0xd8]
push ecx
push 0
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100c531b
cmp dword [ebp - 0xcc], 0
je 0x100c531b
cmp dword [ebp - 0xd0], 0
jbe 0x100c531b
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.100c79c0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.10064680
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0xcc]
add eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.100bd9e0
add esp, 0x10
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.100bc6b0
add esp, 8
mov edx, dword [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 0x15], 1
jmp 0x100c542d
push 0x98
lea ecx, [ebp - 0xc8]
call fcn.1004c4a0
push 1
lea ecx, [ebp - 0xc8]
call fcn.100846c0
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 2
push str.CryptUnprotectData_failed__0x
lea eax, [ebp - 0xc8]
push eax
call fcn.10082bb0
add esp, 8
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], ecx
push 0x100829b0
mov ecx, dword [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0xfc], eax
push 0x10239674
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.10082bb0
add esp, 8
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0xc8]
call fcn.10082970
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x124]
call fcn.100831f0
push 0x102ca4c4
lea edx, [ebp - 0x124]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x13c]
call fcn.100895a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.10082f70
jmp 0x100c5451
mov dword [ebp - 4], 0
jmp 0x100c5461
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x15]
push edx
mov ecx, dword [ebp + 8]
call fcn.1004ef70
mov eax, dword [ebp - 0xe4]
or eax, 1
mov dword [ebp - 0xe4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100895a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret 0xc