Function at 0x10028790
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1025ad10], 0
push ebx
push esi
push edi
mov dword [ebp - 0xa9c], ecx
je 0x1002913e
push 3
lea ecx, [ebp - 0xa64]
call fcn.1005b320
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xa68], 0x400
lea ecx, [ebp - 0xa98]
mov dword [ebp - 0xa98], 0
mov dword [ebp - 0xa94], 0
mov dword [ebp - 0xa90], 0xffffffff
call fcn.10008220
push 0x20219
push str.SOFTWAREClassesCLSID
lea eax, [ebp - 0xa98]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov ecx, eax
call fcn.1000a260
test eax, eax
jne 0x10028c2f
mov ebx, dword [ebp - 0xa68]
mov ecx, dword [ebp - 0xa90]
mov edx, dword [ebp - 0xa98]
mov dword [ebp - 0xa6c], eax
cmp ecx, 0xffffffff
je 0x10028884
cmp eax, ecx
jb 0x10028884
test edx, edx
je 0x10028884
lea esi, [ebp - 0xa74]
sub eax, ecx
push esi
push 0
push 0
push 0
lea esi, [ebp - 0xa68]
push esi
lea esi, [ebp - 0x804]
push esi
push eax
push edx
call fcn.10023d70
mov edi, eax
jmp 0x100289da
cmp dword [ebp - 0xa94], 0
mov edi, 0x103
mov dword [ebp - 0xa90], 0xffffffff
je 0x10028943
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100288b6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x100288f0
lea ecx, [ebp - 0xa74]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa68]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0xa6c]
mov ecx, dword [ebp - 0xa94]
push ecx
call eax
jmp 0x1002891e
mov ecx, dword [ebp - 0xa94]
lea eax, [ebp - 0xa74]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0xa6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x1002892b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0x103
jne 0x100289da
mov eax, dword [ebp - 0xa6c]
mov edx, dword [ebp - 0xa98]
test edx, edx
je 0x100289da
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa68], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1002896d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x100289a3
lea ecx, [ebp - 0xa74]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa68]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0xa98]
push 0
push ecx
call eax
jmp 0x100289cd
mov ecx, dword [ebp - 0xa98]
lea eax, [ebp - 0xa74]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x100289da
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x10028c2f
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jne 0x10028c18
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x808], 7
lea edx, [ecx + 2]
mov word [ebp - 0x81c], ax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028a20
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x81c]
call fcn.100070c0
cmp dword [ebp - 0x808], 8
lea ebx, [ebp - 0x81c]
mov ecx, dword [ebp - 0x81c]
jb 0x10028a59
mov ebx, ecx
lea eax, [ebp - 0x81c]
jb 0x10028a63
mov eax, ecx
mov esi, dword [ebp - 0x80c]
lea eax, [eax + esi*2]
lea esi, [ebp - 0x81c]
jb 0x10028a76
mov esi, ecx
mov ecx, eax
xor edi, edi
sub ecx, esi
inc ecx
shr ecx, 1
cmp eax, esi
sbb eax, eax
not eax
and eax, ecx
mov dword [ebp - 0xa88], eax
je 0x10028aad
sub ebx, esi
movzx eax, word [esi]
push eax
call sub.msvcrt.dll_towlower
inc edi
mov word [ebx + esi], ax
add esp, 4
lea esi, [esi + 2]
cmp edi, dword [ebp - 0xa88]
jne 0x10028a91
mov ebx, dword [ebp - 0xa9c]
lea eax, [ebp - 0x81c]
mov esi, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
push eax
call fcn.1001fc60
mov edi, eax
cmp edi, esi
je 0x10028b03
cmp dword [edi + 0x24], 8
lea edx, [edi + 0x10]
jb 0x10028ad7
mov edx, dword [edi + 0x10]
cmp dword [ebp - 0x808], 8
lea ecx, [ebp - 0x81c]
jb 0x10028aec
mov ecx, dword [ebp - 0x81c]
push dword [edi + 0x20]
push edx
push dword [ebp - 0x80c]
push ecx
call fcn.1001fdf0
add esp, 0x10
test eax, eax
jns 0x10028b05
mov edi, esi
cmp edi, esi
jne 0x10028c0d
push 0
push 0x10202940
push 0x10202940
push 0x10202940
lea eax, [ebp - 0x804]
push eax
push 0x6c
lea ecx, [ebp - 0xa64]
call fcn.1005ccb0
lea ecx, [ebp - 0xa64]
call fcn.1005ce20
test eax, eax
je 0x10028c0d
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x10028b77
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x10028ba9
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push str.SOFTWAREClassesCLSID
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x10028bdb
push 0x16
push str.SOFTWAREClassesCLSID
mov ecx, esi
call fcn.10003740
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xa84]
call fcn.10020960
push eax
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebx + 0x18]
call fcn.100219f0
mov ecx, eax
call fcn.1002b710
lea ecx, [ebp - 0xa84]
call fcn.100213c0
lea ecx, [ebp - 0x81c]
call fcn.10005250
mov eax, dword [ebp - 0xa6c]
mov ebx, 0x400
inc eax
mov dword [ebp - 0xa68], ebx
jmp 0x1002883a
lea ecx, [ebp - 0xa84]
mov dword [ebp - 0xa84], 0
mov dword [ebp - 0xa80], 0
mov dword [ebp - 0xa7c], 0xffffffff
call fcn.10008220
push 0x20219
push str.SOFTWAREClassesCLSID
lea eax, [ebp - 0xa84]
push SysReAllocString
push eax
mov ecx, eax
call fcn.1000a260
test eax, eax
jne 0x1002911d
mov ebx, dword [ebp - 0xa68]
xor ecx, ecx
mov eax, dword [ebp - 0xa7c]
mov edx, dword [ebp - 0xa84]
mov dword [ebp - 0xa6c], ecx
cmp eax, 0xffffffff
je 0x10028d17
cmp ecx, eax
jb 0x10028d17
test edx, edx
je 0x10028d17
mov edi, ecx
sub edi, eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10028cbe
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10028cf6
lea ecx, [ebp - 0xa74]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa68]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0xa84]
push edi
push ecx
call eax
jmp 0x10028e60
lea eax, [ebp - 0xa74]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
jmp 0x10028e53
cmp dword [ebp - 0xa80], 0
mov edi, 0x103
mov dword [ebp - 0xa7c], 0xffffffff
je 0x10028dd6
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10028d49
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10028d83
lea ecx, [ebp - 0xa74]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa68]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0xa6c]
mov ecx, dword [ebp - 0xa80]
push ecx
call eax
jmp 0x10028db1
mov ecx, dword [ebp - 0xa80]
lea eax, [ebp - 0xa74]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0xa6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x10028dbe
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0x103
jne 0x10028e6d
mov ecx, dword [ebp - 0xa6c]
mov edx, dword [ebp - 0xa84]
test edx, edx
je 0x10028e6d
mov dword [ebp - 0xa7c], ecx
mov dword [ebp - 0xa68], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10028e00
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10028e36
lea ecx, [ebp - 0xa74]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0xa68]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0xa84]
push 0
push ecx
call eax
jmp 0x10028e60
lea eax, [ebp - 0xa74]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
mov ecx, dword [ebp - 0xa84]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x10028e6d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1002911d
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jne 0x10029106
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x808], 7
lea edx, [ecx + 2]
mov word [ebp - 0x81c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028eb1
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x81c]
call fcn.100070c0
cmp dword [ebp - 0x808], 8
lea eax, [ebp - 0x81c]
mov ebx, dword [ebp - 0x81c]
mov dword [ebp - 0xa88], eax
jb 0x10028ef4
mov dword [ebp - 0xa88], ebx
lea eax, [ebp - 0x81c]
jb 0x10028efe
mov eax, ebx
mov edx, dword [ebp - 0x80c]
lea esi, [ebp - 0x81c]
lea eax, [eax + edx*2]
jb 0x10028f11
mov esi, ebx
mov ecx, eax
xor edi, edi
sub ecx, esi
inc ecx
shr ecx, 1
cmp eax, esi
sbb eax, eax
not eax
and eax, ecx
mov dword [ebp - 0xaa0], eax
je 0x10028f54
mov ebx, dword [ebp - 0xa88]
sub ebx, esi
movzx eax, word [esi]
push eax
call sub.msvcrt.dll_towlower
inc edi
mov word [ebx + esi], ax
add esp, 4
lea esi, [esi + 2]
cmp edi, dword [ebp - 0xaa0]
jne 0x10028f32
mov ebx, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0xa9c]
lea eax, [ebp - 0x81c]
add ecx, 0x10
push eax
mov esi, dword [ecx]
call fcn.1001fc60
mov dword [ebp - 0xaa0], eax
cmp eax, esi
je 0x10028fb4
cmp dword [eax + 0x24], 8
lea ecx, [eax + 0x10]
mov edx, ecx
jb 0x10028f82
mov edx, dword [ecx]
mov edi, dword [ebp - 0x808]
lea eax, [ebp - 0x81c]
cmp edi, 8
jb 0x10028f95
mov eax, ebx
push dword [ecx + 0x10]
push edx
push dword [ebp - 0x80c]
push eax
call fcn.1001fdf0
add esp, 0x10
test eax, eax
js 0x10028fba
mov eax, dword [ebp - 0xaa0]
jmp 0x10028fbc
mov edi, dword [ebp - 0x808]
mov eax, esi
cmp eax, esi
jne 0x100290d6
push 0
push 0x10202940
push 0x10202940
push 0x10202940
lea eax, [ebp - 0x804]
push eax
push 0x6c
lea ecx, [ebp - 0xa64]
call fcn.1005ccb0
lea ecx, [ebp - 0xa64]
call fcn.1005ce20
test eax, eax
je 0x100290ca
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1002902e
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x10029060
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push str.SOFTWAREClassesCLSID
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x10029092
push 0x16
push str.SOFTWAREClassesCLSID
mov ecx, esi
call fcn.10003740
push SysReAllocString
lea ecx, [ebp - 0x82c]
call fcn.10020960
mov ecx, dword [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ecx + 0x18]
call fcn.100219f0
mov ecx, eax
call fcn.1002b710
lea ecx, [ebp - 0x82c]
call fcn.100213c0
mov edi, dword [ebp - 0x808]
mov ebx, dword [ebp - 0x81c]
cmp edi, 8
jb 0x10029106
lea edi, [edi*2 + 2]
mov eax, ebx
cmp edi, 0x1000
jb 0x100290fc
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029151
push edi
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ecx, dword [ebp - 0xa6c]
mov ebx, 0x400
inc ecx
mov dword [ebp - 0xa68], ebx
jmp 0x10028c85
lea ecx, [ebp - 0xa84]
call fcn.10008220
lea ecx, [ebp - 0xa98]
call fcn.10008220
lea ecx, [ebp - 0xa64]
call fcn.1005b6b0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.101e6c40
int3