Function at 0x4161a0
Capabilities:
Delete registry key
Persist via run registry key
Query or enumerate registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43bd12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [0x449a98]
push ebx
push ebp
mov ebx, ecx
push esi
lea esi, [ebx + 4]
push edi
mov ecx, esi
mov dword [esp + 0x170], eax
mov dword [esp + 0x34], esi
call fcn.00401660
mov eax, dword [ebx + 0x38]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x17c], ebp
je 0x41675d
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.d:History
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.History
mov byte [esp + 0x188], 1
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov byte [esp + 0x18c], 2
call fcn.00406d20
push 0x80000001
mov ecx, ebx
mov byte [esp + 0x18c], 0
call fcn.00415c50
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.d:History
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.History
mov byte [esp + 0x188], 3
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov byte [esp + 0x18c], 4
call fcn.00406d20
push 0x80000001
mov ecx, ebx
mov byte [esp + 0x18c], 0
call fcn.00415c50
mov eax, dword [ebx + 0x3c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.DaysToKeep
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUrl_History
mov byte [esp + 0x18c], 5
call fcn.00406d20
push 0x80000001
mov ecx, ebx
mov byte [esp + 0x18c], 0
call fcn.00415af0
lea eax, [esp + 0x24]
push eax
push 0x2001f
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings5.0CacheExtensible_Cache
push 0x80000001
mov byte [esp + 0x190], 6
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x416363
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esp + 0x30], edi
xor esi, esi
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x84]
push edx
push esi
push edi
mov dword [esp + 0x58], 0x100
call ebp
inc esi
test eax, eax
jne 0x41637a
lea eax, [esp + 0x70]
push eax
call fcn.00415eb0
add esp, 4
test eax, eax
je 0x41631a
lea ecx, [esp + 0x70]
push ecx
push edi
dec esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x41631a
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x17c], 0xffffffff
call dword [edx + 0x14]
jmp 0x4168b2
lea ecx, [esp + 0x58]
call fcn.004213e2
push str.d:historyHistory.IE5_
lea ecx, [esp + 0x30]
mov byte [esp + 0x180], 7
call fcn.00406d20
push 0x43d940
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x188], 8
call fcn.00405580
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x184], 9
call fcn.00421475
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4163f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x4166f8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x58]
call fcn.004212d9
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.004213a9
test eax, eax
jne 0x4166ec
mov eax, dword [esp + 0x58]
push 0x10
lea ecx, [esp + 0x5c]
call dword [eax + 0x38]
test eax, eax
je 0x4166ec
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0042156d
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x180], 0xa
call fcn.00415eb0
add esp, 4
test eax, eax
je 0x4166c6
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x18]
push 0x2001f
push eax
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 0xb
call fcn.004012a0
test eax, eax
je 0x4164d6
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push eax
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x4168d7
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, esi
je 0x4164c4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
jne 0x4168db
jmp 0x4164da
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004054d0
push 0x43d874
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x194], 0xc
call fcn.00405580
mov edi, dword [eax]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 2
push 0
push str.CachePath
push esi
call ebp
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41653f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416565
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x10
push 8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
call fcn.0040d930
mov edi, eax
push 0x43f254
lea ecx, [esp + 0x50]
mov byte [esp + 0x180], 0xd
call fcn.00406d20
push edi
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x188], 0xe
call fcn.004054d0
push 0x43f250
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x194], 0xf
call fcn.00405580
mov edi, dword [eax]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push str.CachePrefix
push esi
call ebp
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4165f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41661a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416640
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.CacheLimit
push esi
mov dword [esp + 0x28], 0x2000
call ebp
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.CacheOptions
push esi
mov dword [esp + 0x28], 0xb
call ebp
push 4
lea edx, [esp + 0x2c]
push edx
push 4
push 0
push str.CacheRepair
push esi
mov dword [esp + 0x40], 0
call ebp
test esi, esi
je 0x4166c2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4166ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416404
test edi, edi
je 0x41670b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x58]
mov byte [esp + 0x17c], 6
call fcn.00421406
mov eax, dword [esp + 0x30]
test eax, eax
mov byte [esp + 0x17c], 0
je 0x416759
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4168a0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.d:IeTemp
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Cache
mov byte [esp + 0x188], 0x10
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov byte [esp + 0x18c], 0x11
call fcn.00406d20
push 0x80000001
mov ecx, ebx
mov byte [esp + 0x18c], 0
call fcn.00415c50
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.d:IeTemp
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Cache
mov byte [esp + 0x188], 0x12
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov byte [esp + 0x18c], 0x13
call fcn.00406d20
push 0x80000001
mov ecx, ebx
mov byte [esp + 0x18c], 0
call fcn.00415c50
mov eax, dword [ebx + 0x44]
shl eax, 0xa
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.CacheLimit
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings5.0CacheContent
mov byte [esp + 0x18c], 0x14
call fcn.00406d20
push 0x80000001
mov ecx, ebx
mov byte [esp + 0x18c], 0
call fcn.00415af0
mov eax, dword [ebx + 0x44]
shl eax, 0xa
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.CacheLimit
call fcn.00406d20
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsCacheContent
mov byte [esp + 0x18c], 0x15
call fcn.00406d20
mov byte [esp + 0x188], 0
push 0x80000001
mov ecx, ebx
call fcn.00415af0
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x17c], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x170]
call fcn.0042193c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4166c6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4166c6