Function at 0x1007a17
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ecx
xor edi, edi
mov dword [ebp - 8], ebx
call fcn.010077c3
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.01007928
test eax, eax
jne 0x1007af4
mov edi, 0x21c
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
mov dword [ebp - 8], esi
cmp esi, ebx
jne 0x1007a82
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1007b6c
cmp byte [eax + 0x19], 1
jb 0x1007b6c
push 0x1001b58
push 0xc
jmp 0x1007b61
push edi
push ebx
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [esi + 8]
push 0x105
push eax
call fcn.01003326
mov edi, eax
cmp edi, ebx
jne 0x1007abb
cmp dword [ebp + 0xc], ebx
je 0x1007ab0
or dword [esi + 0x214], 1
mov ecx, dword [ebp - 4]
push esi
call fcn.0100777b
jmp 0x1007aea
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1007aea
cmp byte [eax + 0x19], 2
jb 0x1007aea
push edi
push dword [ebp + 8]
push 0x1001b58
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002448
cmp edi, ebx
jl 0x1007c35
jmp 0x1007af7
mov esi, dword [ebp - 8]
cmp dword [ebp + 0xc], ebx
je 0x1007c35
cmp dword [esi + 0x218], ebx
je 0x1007b29
mov eax, dword [esi + 0x218]
push 0x70
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x1007b11
push dword [esi + 0x218]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0x218], ebx
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 1
jne 0x1007c35
push 0x70
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [esi + 0x218], eax
cmp eax, ebx
jne 0x1007b76
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1007b6c
cmp byte [eax + 0x19], 1
jb 0x1007b6c
push 0x1001b58
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010023b5
mov edi, 0x8007000e
jmp 0x1007c35
push 0x70
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0xc]
push 0x33
push dword [esi + 0x218]
call fcn.01003326
mov edi, eax
cmp edi, ebx
je 0x1007bc2
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1007c10
cmp byte [eax + 0x19], 2
jb 0x1007c10
push edi
push dword [ebp + 0xc]
push 0x1001b58
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002448
jmp 0x1007c10
push ebx
push 0x70
push dword [esi + 0x218]
call dword [sym.imp.CRYPT32.dll_CryptProtectMemory]
test eax, eax
jne 0x1007c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1007be9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1007c10
cmp byte [eax + 0x19], 2
jb 0x1007c10
push edi
push 0x1001b58
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
cmp edi, ebx
jge 0x1007c35
mov eax, dword [esi + 0x218]
push 0x70
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x1007c1d
push dword [esi + 0x218]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0x218], ebx
mov ecx, dword [ebp - 4]
call fcn.010077d3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8