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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x41a140]
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 0x4090fc
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push 1
push 0x401f2c
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov ebx, eax
test ebx, ebx
js 0x4090fc
mov ecx, dword [ebp - 0x94]
mov esi, esp
mov eax, dword [ecx]
mov edi, dword [eax + 0x1c]
lea eax, [ebp - 0xa4]
push eax
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x408d0b
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x4090fc
lea eax, [ebp - 0x9c]
push eax
push 0x402220
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test ebx, ebx
jle 0x408d3d
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4090fc
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xa4]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x4090fc
push dword [ebp - 0xb0]
lea eax, [ebp - 0x84]
push 0x402240
push 0x30
push eax
call fcn.0040542b
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 [0x41b38c]
call esi
cmp edi, esp
je 0x408da5
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 [0x41b38c]
call esi
cmp edi, esp
je 0x408dc8
mov ecx, 4
int 0x29
xor ebx, ebx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xa8], ebx
test eax, eax
je 0x4090e1
mov edx, dword [ebp - 0x90]
test edx, edx
je 0x408e41
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x408e1d
mov eax, dword [edx]
mov edi, esp
push ecx
push edx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x408e10
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 [0x41b38c]
call esi
cmp edi, esp
je 0x408e3a
mov ecx, 4
int 0x29
and dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x94]
mov esi, esp
mov eax, dword [ecx]
mov edi, dword [eax + 0x10]
lea eax, [ebp - 0x90]
push eax
push ebx
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x408e6c
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x4090fc
mov ecx, dword [ebp - 0x90]
mov esi, esp
mov eax, dword [ecx]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x8c]
push eax
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x408ea0
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x4090fc
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x28], 5
jne 0x4090c8
test byte [ecx + 0x36], 2
je 0x4090c8
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x94]
xor edx, edx
mov esi, esp
mov dword [ebp - 0x98], edx
push edx
push edx
mov eax, dword [ecx]
push edx
mov edi, dword [eax + 0x24]
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xa8]
push ecx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x408f0b
mov ecx, 4
int 0x29
mov ebx, eax
test ebx, ebx
js 0x4090fc
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
js 0x4090fc
push dword [ebp - 0xb4]
mov ebx, 0x402240
lea eax, [ebp - 0x54]
push ebx
push 0x30
push eax
call fcn.0040542b
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 [0x41b38c]
call esi
cmp edi, esp
je 0x408f75
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x408f86
push eax
call fcn.004195d5
pop ecx
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea edi, [eax + 2]
push edi
call fcn.004195a6
mov esi, eax
mov dword [ebp - 0xac], esi
pop ecx
test esi, esi
je 0x409218
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 0x4090c8
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x20
push eax
lea eax, [ebp - 0x24]
mov ebx, 0x402254
push eax
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [ebp - 0x24]
mov edi, 0x40225c
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x4090bc
inc ecx
cmp ecx, 4
jne 0x40900e
push 0x402230
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x40224c
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 0x402228
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, SysReAllocString
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4090c8
push 0x402220
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 0x4090c8
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 0x408dde
push 1
push 0
push 0
push 1
push 0x401f2c
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
mov ebx, eax
test ebx, ebx
js 0x4090fc
xor ebx, ebx
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x409123
mov eax, dword [ecx]
mov edi, esp
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x409123
mov ecx, 4
int 0x29
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x409134
push eax
call fcn.004195d5
pop ecx
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x40918d
cmp dword [ebp - 0x8c], 0
je 0x409170
mov eax, dword [ecx]
mov edi, esp
push dword [ebp - 0x8c]
push ecx
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x40916a
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 [0x41b38c]
call esi
cmp edi, esp
je 0x40918d
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x4091e6
cmp dword [ebp - 0xa4], 0
je 0x4091c9
mov eax, dword [ecx]
mov edi, esp
push dword [ebp - 0xa4]
push ecx
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x41b38c]
call esi
cmp edi, esp
je 0x4091c3
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 [0x41b38c]
call esi
cmp edi, esp
je 0x4091e6
mov ecx, 4
int 0x29
cmp dword [ebp - 0x9c], 0
je 0x4091fb
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.00419610
leave
ret
mov ebx, 0x8007000e
jmp 0x4090fc