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

Disassembly:
push 0xffffffffffffffff
push 0x405dec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], ebp
call sub.MFC42.DLL_CString::CString_2
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 0x402fe2
mov esi, dword [esp + 0x290]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x402d7f
cmp ebp, 0xea
jne 0x402fd1
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 0x409174
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x174]
lea eax, [esp + 0x10]
push edx
push 0x409174
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x298]
add esp, 0xc
push ecx
lea ecx, [esp + 0x20]
call fcn.00405828
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 sub.MFC42.DLL_CString::ReleaseBuffer
test ebp, ebp
jne 0x402f3b
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x294]
lea eax, [ebp + 0x1c]
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 0x402f1b
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
je 0x402fb4
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov dword [ebp + 8], 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.00405828
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 0x402ed4
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x402ed4
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 0x402fb4
push ebp
jmp 0x402fae
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 0x402fb4
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIcons
lea ecx, [esp + 0x14]
call fcn.00405828
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 0x402fb4
push str.NewStartPanel
lea ecx, [esp + 0x14]
call fcn.00405828
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 0x402d6f
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 + 8], ebp
je 0x403114
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 + 8], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
je 0x403114
lea edx, [esp + 0x4c]
push edx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40310d
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.MSVCRT.dll_getenv]
mov ebp, dword [sym.imp.KERNEL32.dll_WinExec]
mov bl, 3
lea eax, [esp + 0x70]
lea ecx, [esp + 0x14]
push eax
call fcn.00405858
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 2
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x14]
push str.explorer.exe
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4030e1
mov edx, dword [esp + 0x54]
push edx
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4030e1
push 0
push eax
call esi
push str.windir
call edi
add esp, 4
lea ecx, [esp + 0x20]
push eax
call fcn.00405858
lea eax, [esp + 0x20]
push 0x409680
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x28c], bl
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 5
push eax
call ebp
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x280], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403041
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
mov byte [esp + 0x280], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x280], 0xffffffff
call sub.MFC42.DLL_CString::CString
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