Function at 0x405950
Capabilities:
Delete file
Delete registry value
Disable system features via registry on windows
Get common file path
Inspect load icon resource
Persist via run registry key
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
sub esp, 0x22c
push ebx
push esi
mov esi, dword [esp + 0x238]
push edi
mov eax, 0x32
push 0x41ab4c
push 0
mov dword [0x41ab44], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4059b8
mov ecx, dword [0x41af60]
test ecx, ecx
jne 0x4059b1
push 0
push 0x8007
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
call fcn.0040ada2
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push esi
push 0
push 0
push 0x78
push 0x190
push 1
call edi
sub eax, 0x78
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call edi
sub eax, 0x190
cdq
sub eax, edx
sar eax, 1
push eax
push 0x80880000
push 0x41ab4c
push 0x41a890
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
jne 0x405a13
pop edi
pop esi
pop ebx
add esp, 0x22c
ret
push 0xa
push 0
push 0
push 0
push 0
push 0x82
push 0x6b
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0x41ab4c
push 0x800a
push ebx
push esi
mov ecx, 0x41aa98
call fcn.00401170
test eax, eax
jne 0x405a50
pop edi
pop esi
pop ebx
add esp, 0x22c
ret
push ebp
call fcn.00401c80
mov ecx, dword [0x41ab44]
lea eax, [esp + 0x3c]
push 0xff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, str.__start
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405450
mov edi, 0x41a480
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov bl, byte [0x4150b8]
mov edx, 1
not ecx
dec ecx
cmp ecx, edx
jbe 0x405aec
mov al, byte [esp + 0x3c]
mov cl, byte [edx + 0x41a480]
cmp al, cl
jne 0x405ad2
mov bl, al
mov edi, 0x41a480
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x405ac2
mov byte [0x4150b8], bl
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp bl, 0x30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
jne 0x405f09
lea eax, [esp + 0x14]
push eax
push str.SOFTWARECPE17AutorunKiller
push 0x80000001
call ebx
test eax, eax
je 0x405c96
lea ecx, [esp + 0x18]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
test eax, eax
jne 0x405b6a
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x3c]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x28]
push str.protect_autorun
push eax
call ebp
test eax, eax
jne 0x405b63
mov dword [0x41af64], 1
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call ebx
test eax, eax
jne 0x405f09
mov eax, dword [0x41af64]
test eax, eax
jne 0x405bb1
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.protect_autorun
push ecx
call ebp
jmp 0x405bc1
mov edx, dword [esp + 0x10]
push str.protect_autorun
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
push str.SOFTWARECPE17AutorunKiller
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405be8
mov edx, dword [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x14]
push eax
push str.SOFTWARECPE17AutorunKiller
push 0x80000001
call ebx
test eax, eax
jne 0x405f09
mov ecx, dword [esp + 0x14]
push 8
push str.checked
push 1
push eax
push str.option_autocheck
push ecx
call ebp
mov edx, dword [esp + 0x14]
push 0xa
push str.unchecked
push 1
push 0
push str.option_sound
push edx
call ebp
mov eax, dword [esp + 0x14]
push 8
push str.checked
push 1
push 0
push str.option_display
push eax
call ebp
mov ecx, dword [esp + 0x14]
push 8
push str.checked
push 1
push 0
push str.option_cd
push ecx
call ebp
mov edx, dword [esp + 0x14]
push 0xa
push str.unchecked
push 1
push 0
push str.option_advance
push edx
call ebp
mov eax, dword [esp + 0x14]
push 0xa
push str.unchecked
push 1
push 0
push str.option_log
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call esi
jmp 0x405f09
cmp byte [0x4150b8], 0x30
jne 0x405f09
lea edx, [esp + 0x18]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d39
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push str.protect_autorun
push eax
call esi
test eax, eax
push 0x13
jne 0x405d1c
push str.checked
push 0x4150bc
call fcn.0040a320
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x18]
not ecx
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push eax
push str.protect_autorun
push edx
call ebp
test eax, eax
jne 0x405d2e
mov dword [0x41af64], 1
jmp 0x405d2e
push str.unchecked
push 0x4150bc
call fcn.0040a320
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call ebx
test eax, eax
jne 0x405dcc
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
push eax
push str.protect_autorun
push edx
call esi
test eax, eax
mov eax, dword [0x41af64]
je 0x405d74
test eax, eax
jne 0x405dcc
push 0x13
push str.unchecked
jmp 0x405dbf
test eax, eax
jne 0x405d9d
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.protect_autorun
push ecx
call ebp
jmp 0x405dad
mov edx, dword [esp + 0x10]
push str.protect_autorun
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x13
push str.checked
push 0x4150bc
call fcn.0040a320
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push 0x4150d0
push 0
push 0
push str.option_autocheck
push edx
call esi
test eax, eax
je 0x405dfe
push 0x13
push str.checked
push 0x4150d0
call fcn.0040a320
add esp, 0xc
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push 0x4150e4
push 0
push 0
push str.option_sound
push ecx
call esi
test eax, eax
je 0x405e30
push 0x13
push str.unchecked
push 0x4150e4
call fcn.0040a320
add esp, 0xc
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x4150f8
push 0
push 0
push str.option_display
push eax
call esi
test eax, eax
je 0x405e62
push 0x13
push str.checked
push 0x4150f8
call fcn.0040a320
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
push 0x41510c
push 0
push 0
push str.option_cd
push edx
call esi
test eax, eax
je 0x405e94
push 0x13
push str.checked
push 0x41510c
call fcn.0040a320
add esp, 0xc
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push 0x415120
push 0
push 0
push str.option_advance
push ecx
call esi
test eax, eax
je 0x405ec6
push 0x13
push str.unchecked
push 0x415120
call fcn.0040a320
add esp, 0xc
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 0x415134
push 0
push 0
push str.option_log
push eax
call esi
test eax, eax
je 0x405ef8
push 0x13
push str.unchecked
push 0x415134
call fcn.0040a320
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], 0xff
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call ebx
test eax, eax
je 0x405f54
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push str.NoDriveTypeAutoRun
push edx
call ebp
jmp 0x405f6f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push str.NoDriveTypeAutoRun
push edx
call ebp
test eax, eax
jne 0x405f76
mov eax, dword [esp + 0x10]
push eax
call esi
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAutoplayHandlersCancelAutoplayFiles
push 0x80000002
call ebx
test eax, eax
je 0x405fdf
lea edx, [esp + 0x10]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAutoplayHandlersCancelAutoplayFiles
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 1
push eax
push 1
push 0
push 0x415ca4
push ecx
call ebp
jmp 0x405ffa
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 1
push eax
push 1
push 0
push 0x415ca4
push ecx
call ebp
test eax, eax
jne 0x406005
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call ebx
test eax, eax
jne 0x40605f
mov edx, dword [esp + 0x10]
push str.Window_Title
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40605f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call ebx
test eax, eax
jne 0x406093
mov edx, dword [esp + 0x10]
push str.DisableRegistryTools
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406093
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
test eax, eax
jne 0x4060ed
mov edx, dword [esp + 0x10]
push str.DisableRegistryTools
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4060ed
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call ebx
test eax, eax
jne 0x406147
mov edx, dword [esp + 0x10]
push str.NoSetFolders
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406147
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call ebx
test eax, eax
jne 0x4061a1
mov edx, dword [esp + 0x10]
push str.NoLogoff
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4061a1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000002
call ebx
test eax, eax
jne 0x4061fb
mov edx, dword [esp + 0x10]
push str.NoFolderOptions
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4061fb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
test eax, eax
jne 0x406255
mov edx, dword [esp + 0x10]
push str.DisableTaskMgr
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406255
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call ebx
test eax, eax
jne 0x4062af
mov edx, dword [esp + 0x10]
push str.DisableTaskMgr
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4062af
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
test eax, eax
jne 0x406309
mov edx, dword [esp + 0x10]
push str.DisableCMD
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406309
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call ebx
test eax, eax
jne 0x406363
mov edx, dword [esp + 0x10]
push str.DisableCMD
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406363
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call ebx
test eax, eax
jne 0x4063bd
mov edx, dword [esp + 0x10]
push str.NoFind
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4063bd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call ebx
test eax, eax
jne 0x406417
mov edx, dword [esp + 0x10]
push str.Norun
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406417
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call ebx
test eax, eax
jne 0x406471
mov edx, dword [esp + 0x10]
push str.NoStartmenuMorePrograms
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406471
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
test eax, eax
jne 0x4064cb
mov edx, dword [esp + 0x10]
push str.MS32DLL
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4064cb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x418f7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
test eax, eax
jne 0x406529
mov edx, dword [esp + 0x10]
push str.MSConfigs
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406529
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
jmp 0x40652f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xfe
lea ecx, [esp + 0x40]
push str.piffile_disabled
push ecx
call fcn.0040a320
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push str..pif
push 0x80000000
call ebx
test eax, eax
je 0x406594
lea eax, [esp + 0x10]
push eax
push str..pif
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push eax
push 0x418f7c
push edx
call ebp
jmp 0x4065ba
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push eax
push 0x418f7c
push edx
call ebp
test eax, eax
jne 0x4065c1
mov eax, dword [esp + 0x10]
push eax
call esi
push 0xfe
lea ecx, [esp + 0x40]
push str.ShellScrap_disabled
push ecx
call fcn.0040a320
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push str..shs
push 0x80000000
call ebx
test eax, eax
je 0x406626
lea eax, [esp + 0x10]
push eax
push str..shs
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push eax
push 0x418f7c
push edx
call ebp
jmp 0x40664c
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push eax
push 0x418f7c
push edx
call ebp
test eax, eax
jne 0x406653
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.cpe17_taskmgr.exe
call esi
push str.cpe17_regedit.exe
call esi
push str.cpe17_cmd.exe
call esi
push str.cpe17_msconfig.exe
call esi
lea ecx, [esp + 0x13c]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.userinit.exe_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x4066f9
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x13c]
push 0xff
push ecx
push 1
push eax
push str.Userinit
push edx
call ebp
test eax, eax
jne 0x4066f9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
push 0x401a50
push 0x12c
push 0x3e7
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x22c
ret