Function at 0x10010511
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
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x10010533
push 8
pop eax
jmp 0x100107f9
push 0x1000
call fcn.100012ea
test eax, eax
mov dword [ebp - 4], eax
jne 0x10010550
mov dword [ebp - 0x14], 8
jmp 0x100107e0
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x20], 0x1003d70c
mov esi, 0x1003d6b8
mov dword [ebp - 0x24], 3
push 0x1c
lea eax, [ebp - 0x54]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x28], eax
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push eax
jmp 0x1001073a
cmp dword [ebp - 0x14], 0
jne 0x10010720
push dword [esi]
call ebx
inc eax
push eax
push dword [esi]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x100105d4
cmp dword [ebp - 0x10], 3
jne 0x100105d4
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.100104a6
mov dword [ebp - 0x54], eax
push dword [esi + 4]
call ebx
inc eax
push eax
push dword [esi + 4]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x100105fb
cmp dword [ebp - 0x10], 3
jne 0x100105fb
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.100104a6
mov dword [ebp - 0x50], eax
push dword [esi + 8]
call ebx
inc eax
push eax
push dword [esi + 8]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10010622
cmp dword [ebp - 0x10], 3
jne 0x10010622
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.100104a6
mov dword [ebp - 0x4c], eax
push dword [esi + 0x10]
call ebx
inc eax
push eax
push dword [esi + 0x10]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10010649
cmp dword [ebp - 0x10], 3
jne 0x10010649
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.100104a6
mov dword [ebp - 0x48], eax
push dword [esi + 0xc]
call ebx
inc eax
push eax
push dword [esi + 0xc]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10010670
cmp dword [ebp - 8], 4
jne 0x10010670
cmp dword [ebp - 0x10], 4
jne 0x10010670
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push dword [esi + 0x14]
call ebx
inc eax
push eax
push dword [esi + 0x14]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x100106e5
cmp dword [ebp - 0x10], 3
jne 0x100106e5
mov eax, dword [ebp - 4]
cmp byte [eax], 2
jne 0x100106e5
push 8
lea eax, [ebp - 0x30]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp - 8]
add esp, 0xc
dec eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100106d6
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.100104a6
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x2c], 0
je 0x100106e5
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esi + 0x18]
call ebx
inc eax
push eax
push dword [esi + 0x18]
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10010720
cmp dword [ebp - 8], 4
jne 0x10010720
cmp dword [ebp - 0x10], 4
jne 0x10010720
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10010713
push 0x1003854c
jmp 0x10010718
push 0x10038550
call fcn.100104e0
mov dword [ebp - 0x40], eax
inc dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 8], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
mov dword [ebp - 0x14], eax
jne 0x100105a5
cmp dword [ebp - 0x54], 0
je 0x1001078a
cmp dword [ebp - 0x4c], 0
je 0x1001077c
push dword [ebp - 0x28]
lea eax, [ebp - 0x54]
push dword [ebp + 0xc]
call fcn.1000f768
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x54], 0
je 0x1001078a
push dword [ebp - 0x54]
call fcn.100012ff
cmp dword [ebp - 0x50], 0
je 0x10010798
push dword [ebp - 0x50]
call fcn.100012ff
cmp dword [ebp - 0x44], 0
je 0x100107a6
push dword [ebp - 0x44]
call fcn.100012ff
cmp dword [ebp - 0x4c], 0
je 0x100107b4
push dword [ebp - 0x4c]
call fcn.100012ff
cmp dword [ebp - 0x48], 0
je 0x100107c2
push dword [ebp - 0x48]
call fcn.100012ff
cmp dword [ebp - 0x40], 0
je 0x100107d0
push dword [ebp - 0x40]
call fcn.100012ff
add dword [ebp - 0x20], 4
add esi, 0x1c
dec dword [ebp - 0x24]
jne 0x1001056f
push dword [ebp - 0xc]
call fcn.100012ff
cmp dword [ebp - 4], 0
je 0x100107f6
push dword [ebp - 4]
call fcn.100012ff
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8