Function at 0x106929e
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 0x10692e6
test byte [eax + 0x1c], 2
je 0x10692e6
cmp byte [eax + 0x19], 5
jb 0x10692e6
mov esi, 0x10064f8
push esi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x10692eb
mov esi, 0x10064f8
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x10692f5
and dword [edi], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0105fe5e
mov dword [ebp - 8], eax
test eax, eax
jne 0x106933e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1069337
test byte [eax + 0x1c], 2
je 0x1069337
cmp byte [eax + 0x19], 3
jb 0x1069337
push edi
push esi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
jmp 0x10694f8
xor ecx, ecx
inc ecx
cmp dword [ebp - 0xc], ecx
jne 0x106937a
push eax
call fcn.0105c21c
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1069372
test byte [eax + 0x1c], 2
je 0x1069372
cmp byte [eax + 0x19], 3
jb 0x1069372
push dword [ebp + 0xc]
push esi
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100915e
push 2
pop eax
jmp 0x10694f8
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x18], 0x1006508
mov dword [ebp - 0x1c], 0x14
je 0x106944a
cmp dword [ebp - 0xc], 0x4c
jbe 0x106942c
push 0x13
pop ecx
mov edi, 0x1006520
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1069429
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10693b9
mov dword [eax], 1
sub dword [ebp - 0xc], 0x4c
push dword [ebp - 0xc]
call fcn.0105c184
mov esi, eax
test esi, esi
jne 0x1069404
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10694cf
test byte [eax + 0x1c], 2
je 0x10694cf
cmp byte [eax + 0x19], 2
jb 0x10694cf
push dword [ebp - 4]
push 0x10064f8
push 0x13
jmp 0x1069491
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.0105c21c
mov dword [ebp - 8], esi
mov esi, 0x10064f8
jmp 0x1069450
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 0x1069443
mov dword [edi], 2
xor eax, eax
jmp 0x10694f8
test edi, edi
je 0x1069450
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 0x106949e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10694cf
test byte [eax + 0x1c], 2
je 0x10694cf
cmp byte [eax + 0x19], 2
jb 0x10694cf
push dword [ebp - 4]
push esi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x10694cf
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ecx], eax
call fcn.0105c184
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x10694c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10694cf
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 0x10694ed
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10694e4
mov byte [eax], 0
inc eax
dec ecx
jne 0x10694dd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call fcn.0105c21c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18