Function at 0x402470
Capabilities:
Create process on windows
Delete registry value
Enumerate processes
Query or enumerate registry key
Query or enumerate registry value
Set registry value
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x41db9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov eax, dword [0x426e28]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x280], ebp
mov edi, dword [esp + 0x288]
lea eax, [esp + 0x34]
push eax
push 0xf003f
push ebp
push ebp
push edi
mov byte [esp + 0x294], 1
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x402760
mov esi, dword [esp + 0x290]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4024fa
cmp ebp, 0xea
jne 0x40274f
lea ecx, [esp + 0x44]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x184]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
mov dword [esp + 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x20]
push 0x42615c
push ecx
call fcn.004144bb
add esp, 0xc
lea edx, [esp + 0x174]
lea eax, [esp + 0x10]
push edx
push 0x42615c
push eax
call fcn.004144bb
mov ecx, dword [esp + 0x298]
add esp, 0xc
push ecx
lea ecx, [esp + 0x20]
call fcn.00415ab8
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00415b5b
test ebp, ebp
jne 0x4026b9
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x294]
lea eax, [ebp + 0x84]
push eax
push ecx
mov dword [eax], 4
mov eax, dword [esp + 0x20]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402699
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
je 0x402732
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov dword [ebp + 0x70], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x298]
push 4
push edx
push 4
push 0
push esi
push eax
call ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsClassicStartMenu
lea ecx, [esp + 0x14]
call fcn.00415ab8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x20]
xor ebp, ebp
push ecx
push edx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push eax
push edi
mov dword [esp + 0x44], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402652
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x402652
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push 0xf003f
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x298]
push 4
push eax
push 4
push 0
push esi
push ecx
call ebx
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x402732
push ebp
jmp 0x40272c
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x298]
push 4
push eax
push 4
push 0
push esi
push ecx
mov dword [esp + 0x40], 0
call ebx
jmp 0x402732
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIcons
lea ecx, [esp + 0x14]
call fcn.00415ab8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402732
push str.NewStartPanel
lea ecx, [esp + 0x14]
call fcn.00415ab8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x298]
push 4
push eax
push 4
push 0
push esi
push ecx
call ebx
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x14], eax
jmp 0x4024ea
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp dword [esi + 0x70], ebp
je 0x40288d
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0x128
push ebp
push 2
rep stosd dword es:[edi], eax
mov dword [esi + 0x70], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x40288d
lea edx, [esp + 0x4c]
push edx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402886
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
mov bl, 3
lea eax, [esp + 0x70]
lea ecx, [esp + 0x14]
push eax
call fcn.00415796
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 2
call fcn.00415bb5
mov ecx, dword [esp + 0x14]
push str.explorer.exe
push ecx
call fcn.00405eb3
add esp, 8
test eax, eax
jne 0x40285a
mov edx, dword [esp + 0x54]
push edx
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebp
je 0x40285a
push ebp
push eax
call esi
push str.windir
call fcn.00405e15
add esp, 4
lea ecx, [esp + 0x24]
push eax
call fcn.00415796
lea eax, [esp + 0x24]
push 0x4265e8
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x28c], bl
call fcn.00415971
mov eax, dword [eax]
push 5
push eax
call edi
lea ecx, [esp + 0x2c]
call fcn.00415728
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 2
call fcn.00415728
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.00415728
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4027b9
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
mov byte [esp + 0x280], 0
call fcn.00415728
lea ecx, [esp + 0x1c]
mov dword [esp + 0x280], 0xffffffff
call fcn.00415728
mov ecx, dword [esp + 0x278]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret 0x14