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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp - 0xa8]
push eax
push 1
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edi
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov esi, eax
cmp esi, edi
jl 0x100d821
lea eax, [ebp - 0x98]
push eax
push edi
push edi
push 1
push 0x10085a0
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x100d821
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
lea edx, [ebp - 0xac]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, edi
jl 0x100d821
lea eax, [ebp - 0xa0]
push eax
push 0x10085f8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jle 0x100d51f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x100d821
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100d821
push ebx
push dword [ebp - 0xb8]
lea eax, [ebp - 0x84]
push 0x1008610
push 0x30
push eax
call fcn.0100cd12
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
add esp, 0x10
push dword [ebp - 0xb8]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, edi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa4], edi
jbe 0x100d807
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100d5d1
cmp dword [ebp - 0x88], edi
je 0x100d5c5
push dword [ebp - 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x8c], edi
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
lea edx, [ebp - 0x8c]
push edx
push dword [ebp - 0xa4]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, edi
jl 0x100d820
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
lea edx, [ebp - 0x88]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jl 0x100d820
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x28], 5
jne 0x100d7ef
test byte [eax + 0x36], 2
je 0x100d7ef
push dword [ebp - 0x9c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x98]
push edi
push edi
push edi
lea edx, [ebp - 0x9c]
push edx
push dword [ebp - 0xa4]
mov dword [ebp - 0x9c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, edi
jl 0x100d820
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100d820
push dword [ebp - 0xb4]
lea eax, [ebp - 0x34]
push 0x1008610
push 0x30
push eax
call fcn.0100cd12
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
add esp, 0x10
push dword [ebp - 0xb4]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x94], edi
je 0x100d6bf
push dword [ebp - 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x9c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
inc esi
inc esi
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 0x94], eax
je 0x100d8c9
push dword [ebp - 0x9c]
push 0x1008610
push esi
push eax
call fcn.0100da76
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100d7ef
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x1008600
push dword [ebp - 0x90]
mov dword [ebp - 0xc0], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 4
mov edi, 0x100d8d4
lea esi, [ebp - 0x54]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100d7e1
push 0x10085e0
push dword [ebp - 0x90]
call ebx
push 0x1008608
push dword [ebp - 0x90]
call ebx
push 0x1008600
push dword [ebp - 0x90]
call ebx
push 0x10085f0
push dword [ebp - 0x90]
call ebx
push dword [ebp - 0x90]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xa0]
call ebx
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x94]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100d7ed
push 0x10085f8
push dword [ebp - 0xb0]
call ebx
push dword [ebp - 0xb0]
call esi
push dword [ebp - 0x94]
push 0x80000000
call ebx
jmp 0x100d7ed
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xbc]
jb 0x100d59b
push 1
push edi
push edi
push 1
push 0x10085a0
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
mov esi, eax
cmp esi, edi
jl 0x100d820
xor esi, esi
pop ebx
mov eax, dword [ebp - 0xa8]
cmp eax, edi
je 0x100d831
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x94], edi
je 0x100d845
push dword [ebp - 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100d86f
cmp dword [ebp - 0x88], edi
je 0x100d869
push dword [ebp - 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
cmp eax, edi
je 0x100d899
cmp dword [ebp - 0xac], edi
je 0x100d893
push dword [ebp - 0xac]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xa0], edi
je 0x100d8ad
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x9c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010016d9
leave
ret
mov esi, 0x8007000e
jmp 0x100d820