Function at 0x10694a6
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x10694ee
test byte [eax + 0x1c], 2
je 0x10694ee
cmp byte [eax + 0x19], 5
jb 0x10694ee
mov esi, 0x10064f8
push esi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x10694f3
mov esi, 0x10064f8
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x10694fd
and dword [edi], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0106021e
mov dword [ebp - 8], eax
test eax, eax
jne 0x1069546
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106953f
test byte [eax + 0x1c], 2
je 0x106953f
cmp byte [eax + 0x19], 3
jb 0x106953f
push edi
push esi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
jmp 0x1069700
xor ecx, ecx
inc ecx
cmp dword [ebp - 0xc], ecx
jne 0x1069582
push eax
call fcn.0105c5dc
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106957a
test byte [eax + 0x1c], 2
je 0x106957a
cmp byte [eax + 0x19], 3
jb 0x106957a
push dword [ebp + 0xc]
push esi
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
push 2
pop eax
jmp 0x1069700
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x18], 0x1006508
mov dword [ebp - 0x1c], 0x14
je 0x1069652
cmp dword [ebp - 0xc], 0x4c
jbe 0x1069634
push 0x13
pop ecx
mov edi, 0x1006520
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1069631
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10695c1
mov dword [eax], 1
sub dword [ebp - 0xc], 0x4c
push dword [ebp - 0xc]
call fcn.0105c544
mov esi, eax
test esi, esi
jne 0x106960c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10696d7
test byte [eax + 0x1c], 2
je 0x10696d7
cmp byte [eax + 0x19], 2
jb 0x10696d7
push dword [ebp - 4]
push 0x10064f8
push 0x13
jmp 0x1069699
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, 0x4c
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
call fcn.0105c5dc
mov dword [ebp - 8], esi
mov esi, 0x10064f8
jmp 0x1069658
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test edi, edi
je 0x106964b
mov dword [edi], 2
xor eax, eax
jmp 0x1069700
test edi, edi
je 0x1069658
mov dword [edi], ecx
lea eax, [ebp - 0x14]
push eax
push 1
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x10696a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10696d7
test byte [eax + 0x1c], 2
je 0x10696d7
cmp byte [eax + 0x19], 2
jb 0x10696d7
push dword [ebp - 4]
push esi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x10696d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ecx], eax
call fcn.0105c544
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x10696c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10696d7
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10696f5
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10696ec
mov byte [eax], 0
inc eax
dec ecx
jne 0x10696e5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call fcn.0105c5dc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18