Function at 0xf7777ac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0xffffffff
mov ebp, esp
sub esp, 0x1b8
push ebx
mov dword [ebp - 0x24], eax
push esi
mov dword [ebp - 0x18], eax
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov edx, dword [ecx]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], edx
cmp edx, eax
jne 0xf7777fc
lea ecx, [ebp - 0x34]
call fcn.0f771ef6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, 0xffffffff
lea eax, [ebp - 0x24]
push eax
push 0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777819
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xf777953
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
push str.Clsid
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777840
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xf777953
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push str.Interface
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777867
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xf777953
cmp dword [ebp - 0x1c], 0
je 0xf777b4c
mov esi, dword [ebp - 0x1c]
push pe_nt_image_headers32
add esi, dword [ebp + 8]
lea eax, [ebp - 0xb4]
push eax
mov edx, dword [esi]
lea edi, [esi + 0x14]
mov dword [ebp - 0x1c], edx
push edi
call fcn.0f73c4d0
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf7778ba
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xf777953
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
cmp dword [ebp + 0xc], 0
push eax
je 0xf7778e9
push str.LocalServer32
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf7778fb
mov dword [ebp - 0x10], ebx
jmp 0xf7778fb
push str.InprocServer32
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0xf7778e4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xf7779da
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], 0
je 0xf7779d0
push str.InprocServer32
push dword [ebp - 4]
call fcn.0f736e1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xf777953
push dword [ebp - 4]
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0xf777872
cmp dword [ebp - 0x28], 0xffffffff
je 0xf777962
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 0xffffffff
je 0xf777971
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0xffffffff
je 0xf777980
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0xffffffff
je 0xf77798f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0xffffffff
je 0xf77799e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0xffffffff
je 0xf7779ad
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0xf777d61
push dword [ebp - 0xc]
call fcn.0f73a9de
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.0f771ef6
mov eax, esi
jmp 0xf7777f3
push str.LocalServer32
jmp 0xf777920
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
push str.LocalServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777afc
mov dword [ebp - 0x10], ebx
test eax, eax
je 0xf777afc
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
push str.InprocServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777afc
mov dword [ebp - 0x10], ebx
test eax, eax
je 0xf777afc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
jne 0xf777953
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ecx + 0xc]
add eax, ecx
lea ecx, [ebp - 0xb4]
push eax
push str._s._s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0x24]
call fcn.0f736e1c
mov dword [ebp - 8], eax
test eax, eax
jne 0xf777953
push pe_nt_image_headers32
lea eax, [ebp - 0xb4]
push eax
push edi
call fcn.0f73c4d0
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0x18]
call fcn.0f736e1c
mov dword [ebp - 8], eax
test eax, eax
jne 0xf777953
mov edi, dword [esi + 0x28]
xor ebx, ebx
add edi, dword [ebp + 8]
cmp dword [esi + 0x24], ebx
jle 0xf777872
push pe_nt_image_headers32
lea eax, [ebp - 0xb4]
push eax
push edi
call fcn.0f73c4d0
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0x14]
call fcn.0f736e1c
mov dword [ebp - 8], eax
test eax, eax
jne 0xf777953
inc ebx
add edi, 0x10
cmp dword [esi + 0x24], ebx
jle 0xf777872
jmp 0xf777ac1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], 0
je 0xf777b45
push str.InprocServer32
push dword [ebp - 4]
call fcn.0f736e1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xf777953
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
jne 0xf777953
jmp 0xf777872
push str.LocalServer32
jmp 0xf777b10
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
test eax, eax
mov dword [ebp - 0x14], 0xffffffff
jne 0xf777953
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
push eax
push str.TypeLib
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777b83
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xf777953
mov esi, dword [ebp + 8]
push pe_nt_image_headers32
add esi, 0x18
lea eax, [ebp - 0xb4]
push eax
push esi
call fcn.0f73c4d0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777bc4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xf777953
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
inc ax
push eax
push dword [ecx + 4]
push dword [ebp - 0x28]
call fcn.0f7394c8
push pe_nt_image_headers32
lea ecx, [ebp - 0xb4]
push ecx
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x28]
sub eax, 0x103
cmp eax, 1
sbb edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg edi
mov dword [ebp - 0xc], eax
test eax, eax
mov dword [ebp - 0x28], 0xffffffff
jne 0xf777953
test edi, edi
je 0xf777c51
push pe_nt_image_headers32
lea eax, [ebp - 0xb4]
push eax
push esi
call fcn.0f73c4d0
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0x2c]
call fcn.0f736e1c
mov dword [ebp - 8], eax
test eax, eax
jne 0xf777953
cmp dword [ebp - 0x20], 0
je 0xf777d49
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, dword [ecx]
test esi, esi
je 0xf777d49
mov eax, dword [ebp + 8]
push pe_nt_image_headers32
add eax, esi
lea ecx, [ebp - 0xb4]
push ecx
mov esi, dword [eax]
add eax, 0x14
push eax
call fcn.0f73c4d0
mov ebx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0xf777ca8
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xf777953
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x20], 0x104
cmp dword [ebp + 0xc], 0
push eax
push ecx
je 0xf777d42
push str.LocalServer32
push dword [ebp - 4]
call edi
test eax, eax
jne 0xf777d22
lea eax, [ebp - 0x1b8]
lea ecx, [ebp - 0x34]
push eax
call fcn.0f771f04
test eax, eax
je 0xf777d22
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.0f771f74
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
jl 0xf777d22
push 0
lea ecx, [ebp - 0x34]
call fcn.0f771f74
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
test eax, eax
mov dword [ebp - 4], 0xffffffff
jne 0xf777953
jmp 0xf777c66
push str.InprocServer32
jmp 0xf777cd0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0xc], eax
jmp 0xf777953
lea ecx, [ebp - 0x34]
call fcn.0f771ef6
mov eax, dword [ebp - 8]
jmp 0xf7777f3