Function at 0x10066a60
Capabilities:
Delete registry key
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x10066a8e
mov dword [ebp - 0xc38], str.360SE.EXE
lea eax, [ebx + 0x1c]
jmp 0x10066a9b
mov dword [ebp - 0xc38], str.IEXPLORE.EXE
lea eax, [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x10066aa3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.101ef650
add esp, 0xc
test edi, edi
jne 0x10066ac6
mov dword [ebp - 0xc38], str.open
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0xa2c]
push eax
push str.__ws_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101fa3aa
add esp, 0x1c
test edi, edi
je 0x10066b16
push str.___1_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101e6de0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, str.__ws_
test edi, edi
je 0x10066b3a
mov eax, 0x1020a454
lea ecx, [ebp - 0xa2c]
push ecx
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.101fa3aa
lea ecx, [ebp - 0x61c]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066b60
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push 0x10202940
push str.CLSID0002DF01_0000_0000_C000_000000000046LocalServer32
push SysReAllocString
call esi
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0xc38]
push str.Softwareclasseshttp_shell
push SysReAllocString
call fcn.10066f10
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0xc38]
push str.Softwareclasseshttps_shell
push SysReAllocString
call fcn.10066f10
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0xc38]
push str.Softwareclasses_file_shell
push SysReAllocString
call fcn.10066f10
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0xc38]
push str.Softwareclasseshttp_shell
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10066f10
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0xc38]
push str.Softwareclasseshttps_shell
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10066f10
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0xc38]
push str.Softwareclasses_file_shell
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10066f10
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0xc34]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0xc34]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0xc34]
push eax
push str._surl.dll_0
lea eax, [ebp - 0x824]
push 0x103
push eax
call fcn.101fa29f
add esp, 0x10
push 0x10
push str.360seURL
push 1
push 0x10202940
push str.360seURL
push SysReAllocString
call esi
push str.360seURL
push str._s_shell
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.101fa29f
add esp, 0x10
test edi, edi
je 0x10066d0d
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push str.open
lea eax, [ebp - 0x414]
push eax
call fcn.10066ef0
jmp 0x10066d48
push str.opencommand
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x103
sub ecx, eax
lea eax, [ebp - 0x414]
push ecx
push eax
call fcn.101e6de0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.360seURL
push str._sDefaultIcon
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.101fa29f
lea ecx, [ebp - 0x824]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066d70
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x824]
push eax
push 1
push 0x10202940
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call esi
push 0x10
test edi, edi
je 0x10066e35
push str.360seURL
push 1
push 0x10202940
push str..htm
push SysReAllocString
call esi
push 0x10
push str.360seURL
push 1
push 0x10202940
push str..html
push SysReAllocString
call esi
push 0x10
push str.360seURL
push 1
push 0x10202940
push str..shtm
push SysReAllocString
call esi
push 0x10
push str.360seURL
push 1
push 0x10202940
push str..shtml
push SysReAllocString
call esi
push 0x10
push str.360seURL
push 1
push 0x10202940
push str..mht
push SysReAllocString
call esi
push 0x10
push str.360seURL
jmp 0x10066ebc
push str.htmlfile
push 1
push 0x10202940
push str..htm
push SysReAllocString
call esi
push 0x10
push str.htmlfile
push 1
push 0x10202940
push str..html
push SysReAllocString
call esi
push 0x10
push str.htmlfile
push 1
push 0x10202940
push str..shtm
push SysReAllocString
call esi
push 0x10
push str.htmlfile
push 1
push 0x10202940
push str..shtml
push SysReAllocString
call esi
push 0x12
push str.mhtmlfile
push 1
push 0x10202940
push str..mht
push SysReAllocString
call esi
push 0x12
push str.mhtmlfile
push 1
push 0x10202940
push str..mhtml
push SysReAllocString
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4