Function at 0x10525c5
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x1076530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x96f
push 0x1009fbc
lea ecx, [ebp - 0x238]
call fcn.01055826
xor esi, esi
push 0xa4
lea eax, [ebp - 0x2f8]
push esi
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x2fc], esi
call sub.msvcrt.dll_memset
push 0x64
lea eax, [ebp - 0x360]
push esi
push eax
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x364], esi
call sub.msvcrt.dll_memset
push 0x20f
lea eax, [ebp - 0x213]
push esi
push eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x254], esi
mov byte [ebp - 0x214], 0
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0x23c]
push eax
push 0x100ec84
push edi
push esi
push 0x100ecb4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x97f
jge 0x105269c
mov word [ebp - 0x232], ax
jmp 0x1052a27
mov word [ebp - 0x234], ax
push 0x10032d4
lea eax, [ebp - 0x2f8]
push eax
call fcn.01055bde
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x985
jl 0x1052690
mov word [ebp - 0x234], ax
push 0x10032d4
lea eax, [ebp - 0x2f4]
push eax
call fcn.01055bde
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x986
jl 0x1052690
mov word [ebp - 0x234], ax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x24c]
push eax
push ebx
call fcn.0104d8d4
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x98b
jl 0x1052690
mov word [ebp - 0x234], ax
cmp dword [ebp - 0x24c], esi
je 0x105272f
or dword [ebp - 0x2fc], edi
mov eax, dword [ebx + 0x584]
and dword [ebp - 0x2fc], 0xffffffdf
mov dword [ebp - 0x260], eax
cmp dword [ebx + 0x57c], esi
je 0x10527cf
push dword [ebx + 0x58c]
or dword [ebp - 0x2fc], 0x10000000
mov dword [ebp - 0x260], edi
call fcn.0104eff4
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9a0
jl 0x1052690
push dword [ebx + 0x590]
mov word [ebp - 0x234], ax
call fcn.0104eff4
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9a1
jl 0x1052690
push dword [ebx + 0x594]
mov word [ebp - 0x234], ax
call fcn.0105073e
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9a3
jl 0x1052690
mov word [ebp - 0x234], ax
jmp 0x10527d9
and dword [ebp - 0x2fc], 0xefffffff
test byte [0x107746c], 1
je 0x105282c
push dword [ebx + 0x58c]
mov dword [ebp - 0x25c], edi
call fcn.0104eff4
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9ad
jl 0x1052690
push dword [ebx + 0x590]
mov word [ebp - 0x234], ax
call fcn.0104eff4
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9ae
jge 0x1052879
jmp 0x1052690
lea eax, [ebp - 0x2fc]
push eax
push ebx
call fcn.0104f468
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9b3
jl 0x1052690
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x2fc]
push eax
push ebx
call fcn.0105223d
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9b6
jl 0x1052690
mov dword [ebp - 0x240], edi
mov word [ebp - 0x234], ax
mov eax, dword [ebx + 0x318]
cmp eax, dword [0x1075620]
jne 0x1052ae5
mov eax, dword [ebx + 0x320]
mov dword [ebp - 0x250], eax
cmp dword [ebx + 0x548], esi
jne 0x1052a85
push 0
push 0x210
lea eax, [ebp - 0x214]
lea esi, [ebx + 0x338]
mov ecx, 0x84
lea edi, [ebp - 0x214]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
jne 0x10528f3
call fcn.0105d3b8
mov dword [ebp - 0x238], eax
mov eax, 0x9c8
mov word [ebp - 0x232], ax
xor esi, esi
jmp 0x1052a27
push dword [ebx + 0x32c]
and dword [ebp - 0x238], 0
mov eax, 0x9c8
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x274]
push eax
call fcn.01055bde
mov dword [ebp - 0x238], eax
test eax, eax
mov eax, 0x9ca
jl 0x10528e5
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.01055bde
xor esi, esi
mov dword [ebp - 0x238], eax
test eax, eax
mov eax, 0x9cb
jl 0x1052690
lea edx, [ebp - 0x254]
push edx
lea edx, [ebp - 0x364]
push edx
push dword [ebp - 0x248]
mov word [ebp - 0x234], ax
push dword [ebp - 0x270]
mov eax, dword [ebp - 0x23c]
push dword [ebp - 0x274]
mov ecx, dword [eax]
push dword [ebp - 0x250]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9e4
jl 0x1052690
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.01055d84
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9e6
jl 0x1052690
mov ecx, ebx
mov word [ebp - 0x234], ax
call fcn.01048d76
test eax, eax
je 0x10529e8
or dword [ebp - 0x240], 2
push dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2fc]
push edx
push eax
call dword [ecx + 0x10]
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9f1
jl 0x1052690
mov word [ebp - 0x234], ax
mov ecx, 0x210
lea eax, [ebp - 0x214]
mov byte [eax], 0
inc eax
dec ecx
jne 0x1052a32
lea eax, [ebp - 0x2fc]
push eax
call fcn.01056080
lea eax, [ebp - 0x364]
push eax
call fcn.01055c58
mov eax, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x238]
cmp eax, esi
je 0x1052a67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x238]
call fcn.01055a3c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01054fa7
leave
ret 4
push 0x10032d4
lea eax, [ebp - 0x274]
push eax
call fcn.01055bde
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9cf
jl 0x1052690
mov word [ebp - 0x234], ax
push 0x10032d4
lea eax, [ebp - 0x270]
push eax
call fcn.01055bde
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9d0
jl 0x1052690
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x248], edi
jmp 0x1052956
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x250], eax
mov edi, 0x10032d4
push edi
lea eax, [ebp - 0x274]
push eax
call fcn.01055bde
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9db
jl 0x1052690
mov word [ebp - 0x234], ax
push edi
lea eax, [ebp - 0x270]
push eax
call fcn.01055bde
mov dword [ebp - 0x238], eax
cmp eax, esi
mov eax, 0x9dc
jmp 0x1052950