Function at 0x10004215
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x97c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
mov esi, 0x104
jne 0x10004260
cmp dword [ebp - 4], ebx
je 0x10004260
push ebx
push ebx
push esi
lea eax, [ebp - 0x364]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call edi
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x10004292
cmp dword [ebp - 4], ebx
je 0x10004292
push ebx
push ebx
push esi
lea eax, [ebp - 0x468]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call edi
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x100042c4
cmp dword [ebp - 4], ebx
je 0x100042c4
push ebx
push ebx
push esi
lea eax, [ebp - 0x56c]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call edi
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
lea eax, [ebp - 0x670]
push eax
push dword [0x1000c2d0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x878]
push eax
call dword [sym.imp.MSVCR71.dll__mbsnbcpy]
lea eax, [ebp - 0x878]
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll__mbsrchr]
add esp, 0x14
cmp eax, ebx
je 0x1000430a
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x18]
push esi
call sub.MSVCR71.dll_strlen
add eax, 3
push eax
call fcn.1000787e
mov edi, eax
push esi
push edi
mov dword [ebp - 8], edi
call sub.MSVCR71.dll_strcpy
push 0x10009b14
push edi
call sub.MSVCR71.dll_strcat
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x364]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x1d8], ecx
mov ecx, edx
mov eax, SysReAllocStringLen
mov dword [ebp - 0x1c8], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c0], ecx
mov ecx, edx
mov dword [ebp - 0x1f0], edi
xor edi, edi
add esp, 0x18
inc edi
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 0x198], ecx
mov ecx, str.CLSID_sInprocServer32
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], str._s.1
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], str._s.1CLSID
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], str._sCLSID
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x1fc], str._sCurVer
mov dword [ebp - 0x1f8], esi
mov dword [ebp - 0x1f4], ebx
mov dword [ebp - 0x1ec], ebx
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], str.CLSID_s
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], ebx
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], str.CLSID_sProgID
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], str.CLSID_sVersionIndependentProgID
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], str.CLSID_sProgrammable
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x16c], ecx
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x138], ecx
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x120], ecx
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0x468]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xc0], ecx
lea ecx, [ebp - 0x670]
mov dword [ebp - 0xb8], ecx
lea ecx, [ebp - 0x468]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x88], ecx
lea edx, [ebp - 0x670]
lea ecx, [ebp - 0x56c]
mov dword [ebp - 0x178], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x164], str.ThreadingModel
mov dword [ebp - 0x160], str.Apartment
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], str.CLSID_sControl
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], str.CLSID_sTypeLib
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], str.CLSID_sVersion
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], str.TypeLib_s
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], str.TypeLib_s1.0
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], str.TypeLib_s1.00
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], str.TypeLib_s1.00win32
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], str.TypeLib_s1.0FLAGS
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], 0x100099bc
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], str.TypeLib_s1.0HELPDIR
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], str.Interface_s
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x56c]
lea esi, [ebp - 0x56c]
mov dword [ebp - 0x60], ecx
mov ecx, str.00020424_0000_0000_C000_000000000046
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x30], esi
lea esi, [ebp - 0x468]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], eax
mov ecx, str.Interface_sTypeLib
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x56c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], str.Interface_sProxyStubClsid
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], str.Interface_sProxyStubClsid32
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], str.Version
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
lea esi, [ebp - 0x25c]
cmp dword [ebp + 0x18], 0x19
jae 0x10004818
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10004776
push eax
push dword [esi]
lea eax, [ebp - 0x774]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x10004786
push dword [esi]
lea eax, [ebp - 0x774]
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
cmp dword [esi + 0x10], ebx
je 0x1000479b
lea eax, [ebp - 0x774]
push eax
push dword [esi - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x774]
push eax
push dword [esi - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10004815
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x100047fb
push eax
lea eax, [ebp - 0x97c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea eax, [ebp - 0x97c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x97c]
push eax
push edi
push ebx
push dword [esi + 8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp + 0x18]
add esi, 0x18
cmp dword [esi - 4], ebx
jne 0x10004750
jmp 0x10004818
mov dword [ebp + 0x1c], ebx
push dword [ebp - 8]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0x1c]
pop ecx
pop edi
pop esi
pop ebx
leave
ret