Function at 0x402120
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 0x41d78c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov eax, dword [0x426e44]
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 0x402410
mov esi, dword [esp + 0x290]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4021aa
cmp ebp, 0xea
jne 0x4023ff
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 0x42650c
push ecx
call fcn.004140cc
add esp, 0xc
lea edx, [esp + 0x174]
lea eax, [esp + 0x10]
push edx
push 0x42650c
push eax
call fcn.004140cc
mov ecx, dword [esp + 0x298]
add esp, 0xc
push ecx
lea ecx, [esp + 0x20]
call fcn.00418742
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.004187e5
test ebp, ebp
jne 0x402369
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x294]
lea eax, [ebp + 0x80]
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 0x402349
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
je 0x4023e2
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.00418742
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 0x402302
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x402302
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 0x4023e2
push ebp
jmp 0x4023dc
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 0x4023e2
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIcons
lea ecx, [esp + 0x14]
call fcn.00418742
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 0x4023e2
push str.NewStartPanel
lea ecx, [esp + 0x14]
call fcn.00418742
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 0x40219a
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 0x40253d
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 0x40253d
lea edx, [esp + 0x4c]
push edx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402536
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.00418420
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 2
call fcn.0041883f
mov ecx, dword [esp + 0x14]
push str.explorer.exe
push ecx
call fcn.00405910
add esp, 8
test eax, eax
jne 0x40250a
mov edx, dword [esp + 0x54]
push edx
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebp
je 0x40250a
push ebp
push eax
call esi
push str.windir
call fcn.00405872
add esp, 4
lea ecx, [esp + 0x24]
push eax
call fcn.00418420
lea eax, [esp + 0x24]
push 0x426510
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x28c], bl
call fcn.004185fb
mov eax, dword [eax]
push 5
push eax
call edi
lea ecx, [esp + 0x2c]
call fcn.004183b2
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 2
call fcn.004183b2
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.004183b2
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402469
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.004183b2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x280], 0xffffffff
call fcn.004183b2
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