Function at 0x489c39
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, 4
mov ebp, esp
sub esp, 0xac
push ebx
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 0x27], 0
push edi
call sub.MSVCRT.dll__getdrive
lea ebx, [eax - 1]
mov edi, dword [ebp + 8]
push edi
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 3
jl 0x489c8a
cmp byte [edi + 1], 0x3a
jne 0x489c8a
cmp byte [edi + 2], 0x5c
jne 0x489c8a
movsx eax, byte [edi]
push eax
call sub.MSVCRT.dll_toupper
add esp, 4
mov byte [ebp - 0x28], al
jmp 0x489c90
add bl, 0x41
mov byte [ebp - 0x28], bl
mov ebx, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x80
push 3
mov dword [ebx], esi
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x489cbc
xor eax, eax
jmp 0x489f0f
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x489cdd
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x7c]
and eax, 0x7fffffff
mov dword [ebx], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebx], esi
jle 0x489f0a
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 8]
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x523574
push esi
push str.SoftwareSymantecSpeed_Disk_Unmovable_FilesAttributes
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
push eax
push esi
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x489d39
or byte [ebp - 0xc], 4
jmp 0x489d40
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
xor ebx, ebx
push dword [ebp - 4]
push ecx
push 4
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 8]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x523574
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsDefragAppStartParams
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.ExcludeFiles
lea ecx, [ebp - 0x28]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, 0x800
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x10]
push esi
lea ecx, [ebp - 0x28]
push eax
push ebx
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
push 0x5c
push edi
call sub.MSVCRT.dll_strrchr
add esp, 8
test eax, eax
jne 0x489ddd
push edi
lea eax, [ebp - 0x78]
push eax
jmp 0x489dee
push 0x5c
push edi
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
lea ecx, [ebp - 0x78]
push eax
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRT.dll__strupr
add esp, 4
cmp ebx, 0xea
jne 0x489e42
add dword [ebp - 4], 0x800
mov eax, dword [ebp - 4]
push 0x40
push eax
mov dword [ebp - 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push esi
push ecx
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x489e0a
lea eax, [ebp - 0x78]
push eax
push esi
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x489efa
push esi
call sub.MSVCRT.dll_strlen
add esp, 4
mov edi, eax
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add edi, eax
inc edi
cmp edi, dword [ebp - 4]
jbe 0x489eb0
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
inc eax
add dword [ebp - 4], eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov dword [ebp - 0xc], ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ecx
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
call sub.MSVCRT.dll_strlen
add esp, 4
cmp byte [esi + eax - 1], 0x5c
je 0x489ece
push 0x4ed358
push esi
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x78]
push eax
push esi
call sub.MSVCRT.dll_strcat
add esp, 8
push esi
call sub.MSVCRT.dll_strlen
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
push eax
push esi
push 2
push 0
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret