Function at 0x1000f7a9
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x208
call fcn.100012ea
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000f7cb
push 8
pop eax
jmp 0x1000fa9f
push 0x1000
call fcn.100012ea
mov dword [ebp - 8], eax
test eax, eax
jne 0x1000f7e4
push 8
pop edi
jmp 0x1000fa87
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov dword [ebp - 0x1c], 0x1002b5e4
mov esi, 0x1002b590
mov dword [ebp - 0x20], 3
push 0x1c
xor edi, edi
lea eax, [ebp - 0x50]
push edi
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
push edi
jmp 0x1000f9e2
test edi, edi
jne 0x1000f9c8
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
inc eax
push eax
push dword [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1000f86b
cmp dword [ebp - 4], 3
je 0x1000f85d
cmp dword [ebp - 4], 1
jne 0x1000f86b
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.1000f73d
mov dword [ebp - 0x50], eax
push dword [esi + 4]
call edi
inc eax
push eax
push dword [esi + 4]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1000f898
cmp dword [ebp - 4], 3
je 0x1000f88a
cmp dword [ebp - 4], 1
jne 0x1000f898
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.1000f73d
mov dword [ebp - 0x4c], eax
push dword [esi + 8]
call edi
inc eax
push eax
push dword [esi + 8]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1000f8c5
cmp dword [ebp - 4], 3
je 0x1000f8b7
cmp dword [ebp - 4], 1
jne 0x1000f8c5
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.1000f73d
mov dword [ebp - 0x48], eax
push dword [esi + 0x10]
call edi
inc eax
push eax
push dword [esi + 0x10]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1000f8f2
cmp dword [ebp - 4], 3
je 0x1000f8e4
cmp dword [ebp - 4], 1
jne 0x1000f8f2
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.1000f73d
mov dword [ebp - 0x44], eax
push dword [esi + 0xc]
call edi
inc eax
push eax
push dword [esi + 0xc]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1000f919
cmp dword [ebp - 0xc], 4
jne 0x1000f919
cmp dword [ebp - 4], 4
jne 0x1000f919
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
push dword [esi + 0x14]
call edi
inc eax
push eax
push dword [esi + 0x14]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1000f98d
cmp dword [ebp - 4], 3
jne 0x1000f98d
mov eax, dword [ebp - 8]
cmp byte [eax], 2
jne 0x1000f98d
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2c], ecx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1000f978
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.1000f73d
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x28], 0
je 0x1000f987
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [esi + 0x18]
call edi
inc eax
push eax
push dword [esi + 0x18]
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1000f9c8
cmp dword [ebp - 0xc], 4
jne 0x1000f9c8
cmp dword [ebp - 4], 4
jne 0x1000f9c8
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1000f9bb
push 0x10026710
jmp 0x1000f9c0
push 0x10026714
call fcn.1000f778
mov dword [ebp - 0x3c], eax
inc dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0xc], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, 0x103
jne 0x1000f832
cmp dword [ebp - 0x50], 0
je 0x1000fa31
cmp dword [ebp - 0x48], 0
je 0x1000fa23
push dword [ebp - 0x24]
lea eax, [ebp - 0x50]
push dword [ebp + 0xc]
call fcn.1000e9e0
mov edi, eax
cmp dword [ebp - 0x50], 0
je 0x1000fa31
push dword [ebp - 0x50]
call fcn.100012ff
cmp dword [ebp - 0x4c], 0
je 0x1000fa3f
push dword [ebp - 0x4c]
call fcn.100012ff
cmp dword [ebp - 0x40], 0
je 0x1000fa4d
push dword [ebp - 0x40]
call fcn.100012ff
cmp dword [ebp - 0x48], 0
je 0x1000fa5b
push dword [ebp - 0x48]
call fcn.100012ff
cmp dword [ebp - 0x44], 0
je 0x1000fa69
push dword [ebp - 0x44]
call fcn.100012ff
cmp dword [ebp - 0x3c], 0
je 0x1000fa77
push dword [ebp - 0x3c]
call fcn.100012ff
add dword [ebp - 0x1c], 4
add esi, 0x1c
dec dword [ebp - 0x20]
jne 0x1000f7fd
push dword [ebp - 0x10]
call fcn.100012ff
cmp dword [ebp - 8], 0
je 0x1000fa9d
push dword [ebp - 8]
call fcn.100012ff
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8