Function at 0x100b0270
Capabilities:
Delete file
Delete registry key
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ab22
mov eax, dword fs:[0]
push eax
sub esp, 0x8e8
mov eax, dword [0x101e8118]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], 0
push str.OCCACHE.DLL
call fcn.10090c40
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x100b0342
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push str.FindFirstControl
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6c], eax
push str.FindNextControl
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x90], eax
push str.FindControlClose
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
push str.ReleaseControlHandle
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
push str.GetControlInfo
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x6c], 0
je 0x100b0366
cmp dword [ebp - 0x90], 0
je 0x100b0366
cmp dword [ebp - 0x84], 0
je 0x100b0366
cmp dword [ebp - 0x74], 0
je 0x100b0366
cmp dword [ebp - 0x70], 0
jne 0x100b036b
jmp 0x100b0832
mov byte [ebp - 0x8a], 0
mov byte [ebp - 0x89], 0
mov dword [ebp - 0x88], 1
movzx edx, byte [ebp - 0x8a]
test edx, edx
jne 0x100b04c1
movzx eax, byte [ebp - 0x89]
test eax, eax
jne 0x100b04c1
cmp dword [ebp - 0x88], 1
jne 0x100b03bf
push 0
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x7c]
push edx
call dword [ebp - 0x6c]
mov dword [ebp - 0x8d4], eax
jmp 0x100b03d3
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call dword [ebp - 0x90]
mov dword [ebp - 0x8d4], eax
mov edx, dword [ebp - 0x8d4]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0x103
je 0x100b03eb
cmp dword [ebp - 0x68], 2
jne 0x100b03f7
mov byte [ebp - 0x8a], 1
jmp 0x100b04bc
cmp dword [ebp - 0x68], 0
je 0x100b0402
jmp 0x100b04bc
push 0x104
lea eax, [ebp - 0x64]
push eax
push 0
push 3
mov ecx, dword [ebp - 0x78]
push ecx
call dword [ebp - 0x70]
test eax, eax
jne 0x100b041f
jmp 0x100b0832
push 0
push 0
mov ecx, 0x101ea5f0
call fcn.10005f10
push eax
lea ecx, [ebp - 0x8c4]
call fcn.100057d0
mov dword [ebp - 0x8d8], eax
mov edx, dword [ebp - 0x8d8]
mov dword [ebp - 0x8dc], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8dc]
call fcn.10005f10
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.1013b348
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x8bd], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c4]
call fcn.10006030
movzx ecx, byte [ebp - 0x8bd]
test ecx, ecx
je 0x100b04a6
mov byte [ebp - 0x89], 1
mov edx, dword [ebp - 0x78]
push edx
call dword [ebp - 0x74]
jmp 0x100b04c1
mov eax, dword [ebp - 0x78]
push eax
call dword [ebp - 0x74]
mov ecx, dword [ebp - 0x88]
add ecx, 1
mov dword [ebp - 0x88], ecx
jmp 0x100b0383
movzx edx, byte [ebp - 0x89]
test edx, edx
je 0x100b0822
mov dword [ebp - 0x89c], 0x400
mov dword [ebp - 0x8b0], 0
lea ecx, [ebp - 0x898]
call fcn.10013cc0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x8a4]
call fcn.10005760
mov byte [ebp - 4], 2
push str.SoftwareMicrosoftCode_Store_DatabaseDistribution_Units_
lea ecx, [ebp - 0x8a0]
call fcn.100057d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x8a4]
call fcn.10005a10
push 0
mov ecx, 0x101ea5f0
call fcn.10005f10
push eax
lea ecx, [ebp - 0x8c8]
call fcn.100057d0
mov dword [ebp - 0x8e0], eax
mov ecx, dword [ebp - 0x8e0]
mov dword [ebp - 0x8e4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x8e4]
push edx
lea ecx, [ebp - 0x8a0]
call fcn.10018db0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c8]
call fcn.10006030
push str.ContainsFiles
lea ecx, [ebp - 0x8a0]
call fcn.10018de0
push 0x2001f
push 0
lea ecx, [ebp - 0x8a0]
call fcn.10005f10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x898]
call fcn.10013d50
lea ecx, [ebp - 0x8ac]
call fcn.10013cc0
mov byte [ebp - 4], 5
push str.SoftwareMicrosoftWindowsCurrentVersionModuleUsage
lea ecx, [ebp - 0x8a8]
call fcn.100057d0
mov byte [ebp - 4], 6
push 0x2001f
lea ecx, [ebp - 0x8a8]
call fcn.10005a00
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x8ac]
call fcn.10013d50
jmp 0x100b060c
mov eax, dword [ebp - 0x8b0]
add eax, 1
mov dword [ebp - 0x8b0], eax
mov dword [ebp - 0x89c], 0x400
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x89c]
push ecx
lea edx, [ebp - 0x894]
push edx
mov eax, dword [ebp - 0x8b0]
push eax
mov ecx, dword [ebp - 0x898]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x8b4], eax
cmp dword [ebp - 0x8b4], 0x103
je 0x100b06ef
lea edx, [ebp - 0x894]
push edx
lea ecx, [ebp - 0x8b8]
call fcn.100057d0
mov byte [ebp - 4], 7
push 0x2f
push 0x5c
lea ecx, [ebp - 0x8b8]
call fcn.100b1a00
lea eax, [ebp - 0x8a8]
push eax
lea ecx, [ebp - 0x8bc]
call fcn.10005780
mov byte [ebp - 4], 8
push 0x5c
lea ecx, [ebp - 0x8bc]
call fcn.1000ab10
lea ecx, [ebp - 0x8b8]
push ecx
lea ecx, [ebp - 0x8bc]
call fcn.10018db0
push 0
lea ecx, [ebp - 0x8bc]
call fcn.10005f10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea edx, [ebp - 0x894]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8bc]
call fcn.10006030
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8b8]
call fcn.10006030
jmp 0x100b05f3
lea ecx, [ebp - 0x8ac]
call fcn.10013d10
lea ecx, [ebp - 0x898]
call fcn.10013d10
push 0x2001f
push 0
lea ecx, [ebp - 0x8a4]
call fcn.10005f10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x898]
call fcn.10013d50
push 0
push 0
mov ecx, 0x101ea5f0
call fcn.10005f10
push eax
lea ecx, [ebp - 0x8cc]
call fcn.100057d0
mov dword [ebp - 0x8e8], eax
mov eax, dword [ebp - 0x8e8]
mov dword [ebp - 0x8ec], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x8ec]
call fcn.10005f10
push eax
lea ecx, [ebp - 0x898]
call fcn.10013f80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8cc]
call fcn.10006030
push 0
push 0
mov ecx, 0x101ea5f0
call fcn.10005f10
push eax
lea ecx, [ebp - 0x8d0]
call fcn.100057d0
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
mov dword [ebp - 0x8f4], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x8f4]
call fcn.10005f10
push eax
lea ecx, [ebp - 0x898]
call fcn.100140c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8d0]
call fcn.10006030
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a8]
call fcn.10006030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8ac]
call fcn.10013ce0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8a0]
call fcn.10006030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8a4]
call fcn.10006030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x898]
call fcn.10013ce0
cmp dword [ebp - 0x80], 0
je 0x100b0832
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013a297
mov esp, ebp
pop ebp
ret