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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007f547
push eax
mov eax, dword [0x1009b008]
mov dword fs:[0], esp
sub esp, 0x124
cmp eax, 0xffffffff
push ebx
push edi
jne 0x1005a615
mov ecx, 0x80
xor eax, eax
mov edi, 0x1009b008
rep stosd dword es:[edi], eax
xor ebx, ebx
push ebx
push ebx
call fcn.10021950
add esp, 8
cmp eax, 0xffffffff
je 0x1005aa4b
cmp eax, ebx
je 0x1005aa4b
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftInternet_Explorer
mov esi, 0x32
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x10097808], esi
call edi
test eax, eax
jne 0x1005a7e6
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
push str.Version
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005a7db
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
call fcn.10005e50
push 3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x144], ebx
call fcn.10008ae0
mov eax, dword [eax]
push 0x100859a0
push eax
call fcn.10068d19
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005a6f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x1005a702
mov dword [0x10097808], esi
jmp 0x1005a7aa
push 3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.10008ae0
push 0x1008599c
push eax
call fcn.10002c20
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
call fcn.100034a0
test bl, bl
je 0x1005a73b
mov dword [0x10097808], 0x37
jmp 0x1005a7aa
push 1
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10008ae0
push 0x10085998
push eax
call fcn.10002c20
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
call fcn.100034a0
test bl, bl
je 0x1005a774
mov dword [0x10097808], 0x3c
jmp 0x1005a7aa
push 1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call fcn.10008ae0
push 0x10085994
push eax
call fcn.10002c20
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
call fcn.100034a0
neg bl
sbb ebx, ebx
and ebx, 0x46
mov dword [0x10097808], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 4
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005a7db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.DownloadToolbar
lea ecx, [esp + 0x20]
call fcn.10005e50
push 0x1009b20c
push 0x4aab
lea ecx, [esp + 0x24]
push ecx
push SysReAllocStringLen
mov dword [esp + 0x14c], 1
call fcn.1004a560
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x13c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005a844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_Explorer
push SysReAllocStringLen
mov dword [esp + 0x150], 2
call edi
test eax, eax
jne 0x1005a954
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push str.URLSearchHooks
push edx
call esi
mov eax, dword [esp + 0x18]
push str.URLSearchHooks.1
push eax
call esi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.URLSearchHooks
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x10081bf2
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.10005e50
test esi, esi
jne 0x1005a92b
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov esi, eax
call edi
mov ecx, dword [esp + 0x20]
inc eax
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.982CB676_38F0_4D9A_BB72_D9371ABE876E
push ecx
call esi
mov eax, dword [esp + 0x14]
push eax
mov ebx, eax
call edi
mov edx, dword [esp + 0x20]
inc eax
push eax
push ebx
push 1
push 0
push str.BAB1AC41_6FF7_4F2E_A04E_5C592CCFEA7D
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005a954
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x1008590c
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.10005e50
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x148], 3
call fcn.1004a280
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x13c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005a9af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.regsvr32.exe
lea ecx, [esp + 0x28]
call fcn.10005e50
mov eax, dword [esp + 0x24]
push eax
push 0
mov byte [esp + 0x144], 4
call fcn.10021950
add esp, 8
test eax, eax
jne 0x1005a9e2
mov ecx, 0x10098870
call fcn.100436c0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x13c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005aa08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebp
jg 0x1005aa2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
add esp, 0x130
ret
mov ecx, dword [esp + 0x12c]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret