Function at 0x12c8967
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x12d8140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
lea eax, [ebp - 0xa0]
push edi
push eax
push 1
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
call dword [sym.imp.OLE32.dll_CoGetMalloc]
mov ebx, eax
test ebx, ebx
js 0x12c8e01
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push 1
push 0x12c39e4
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov ebx, eax
test ebx, ebx
js 0x12c8e01
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0xa4]
mov edi, esp
push ecx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x1c]
call dword [0x12d9330]
call dword [esi + 0x1c]
cmp edi, esp
je 0x12c8a13
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c8e01
lea eax, [ebp - 0x9c]
push eax
push 0x12c3a44
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test ebx, ebx
jle 0x12c8a45
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x12c8e01
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xa4]
call dword [sym.imp.OLE32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x12c8e01
push dword [ebp - 0xb0]
lea eax, [ebp - 0x84]
push 0x12c3a64
push 0x30
push eax
call fcn.012c7fda
mov eax, dword [ebp - 0xa0]
add esp, 0x10
mov edi, esp
mov ecx, dword [eax]
push dword [ebp - 0xb0]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8aad
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0x94]
mov edi, esp
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8ad0
mov ecx, 4
int 0x29
xor ebx, ebx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xa8], ebx
test eax, eax
je 0x12c8de6
mov edx, dword [ebp - 0x90]
test edx, edx
je 0x12c8b49
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x12c8b25
mov eax, dword [edx]
mov edi, esp
push ecx
push edx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8b18
mov ecx, 4
int 0x29
and dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
mov edi, esp
push edx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8b42
mov ecx, 4
int 0x29
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov edi, esp
push ecx
push ebx
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x10]
call dword [0x12d9330]
call dword [esi + 0x10]
cmp edi, esp
je 0x12c8b73
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c8e01
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov edi, esp
push ecx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0xc]
call dword [0x12d9330]
call dword [esi + 0xc]
cmp edi, esp
je 0x12c8ba6
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c8e01
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x28], 5
jne 0x12c8dcd
test byte [ecx + 0x36], 2
je 0x12c8dcd
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov edi, esp
mov dword [ebp - 0x98], ecx
push ecx
push ecx
mov esi, dword [eax]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push dword [ebp - 0xa8]
mov ecx, dword [esi + 0x24]
push eax
call dword [0x12d9330]
call dword [esi + 0x24]
cmp edi, esp
je 0x12c8c10
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x12c8e01
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.OLE32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x12c8e01
push dword [ebp - 0xb4]
mov ebx, 0x12c3a64
lea eax, [ebp - 0x54]
push ebx
push 0x30
push eax
call fcn.012c7fda
mov eax, dword [ebp - 0xa0]
add esp, 0x10
mov edi, esp
mov ecx, dword [eax]
push dword [ebp - 0xb4]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8c7a
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x12c8c8b
push eax
call fcn.012d7a1b
pop ecx
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea edi, [eax + 2]
push edi
call fcn.012d79f2
mov esi, eax
mov dword [ebp - 0xac], esi
pop ecx
test esi, esi
je 0x12c8f1f
push dword [ebp - 0x98]
push ebx
push edi
push esi
call dword [sym.imp.msvcrt.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x12c8dcd
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x20
push eax
lea eax, [ebp - 0x24]
mov ebx, 0x12c3a78
push eax
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [ebp - 0x24]
mov edi, 0x12c3a80
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x12c8dc1
inc ecx
cmp ecx, 4
jne 0x12c8d13
push 0x12c3a54
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x12c3a70
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x12c3a4c
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0xb8]
mov ebx, 0x80000000
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x12c8dcd
push 0x12c3a44
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x12c8dcd
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xa8]
inc ebx
mov dword [ebp - 0xa8], ebx
cmp ebx, dword [ebp - 0xc0]
jb 0x12c8ae6
push 1
push 0
push 0
push 1
push 0x12c39e4
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
mov ebx, eax
test ebx, ebx
js 0x12c8e01
xor ebx, ebx
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x12c8e28
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8e28
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x12c8e39
push eax
call fcn.012d7a1b
pop ecx
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x12c8e92
cmp dword [ebp - 0x8c], 0
je 0x12c8e75
mov eax, dword [ecx]
mov edi, esp
push dword [ebp - 0x8c]
push ecx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8e6f
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8e92
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x12c8eeb
cmp dword [ebp - 0xa4], 0
je 0x12c8ece
mov eax, dword [ecx]
mov edi, esp
push dword [ebp - 0xa4]
push ecx
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8ec8
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x94]
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x12d9330]
call esi
cmp edi, esp
je 0x12c8eeb
mov ecx, 4
int 0x29
cmp dword [ebp - 0x9c], 0
je 0x12c8f00
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.012d7a50
mov esp, ebp
pop ebp
ret
mov ebx, 0x8007000e
jmp 0x12c8e01