Function at 0x41ec82
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value
Shutdown system

Disassembly:
mov eax, 0x463732
call fcn.004571ec
sub esp, 0x1c8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp byte [edi + 0xc], bl
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
je 0x41f081
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0x469494
mov dword [ebp - 0xa8], 0x46948c
call fcn.00404ab9
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 1
call fcn.00405caf
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00405610
push str.DISK1TARGET
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x58]
push esi
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00404bfe
lea eax, [ebp - 0xc8]
push str.setup.ilg
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040614f
add esp, 0xc
push 4
push eax
mov byte [ebp - 4], 4
call fcn.0041619c
pop ecx
mov byte [ebp - 0x11], al
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004060f2
cmp byte [ebp - 0x11], bl
je 0x41f065
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x469494
mov dword [ebp - 0x60], 0x46948c
call fcn.00404ab9
lea eax, [ebp - 0x1e]
push 1
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00404ab9
mov esi, 0x800
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.00405cca
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 7
call fcn.00405599
push esi
push eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00404c0f
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x80]
push eax
call fcn.00420142
push dword [0x46950c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 8
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00405665
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.004060f2
mov esi, dword [ebp - 0x1c]
mov edi, 0x4694a0
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x41ee1b
mov edi, eax
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x80]
push eax
call fcn.0041a553
push str.__reboot
push eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 9
push eax
call fcn.00415060
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
push eax
call fcn.00415060
add esp, 0xc
push dword [0x46950c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xb
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00411a14
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
call fcn.004060f2
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 9
call fcn.004060f2
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.004060f2
lea edi, [esi + 0x10]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0041f301
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
mov byte [eax + 4], 1
call fcn.00405610
mov ecx, dword [esi + 0x58]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
cmp byte [ebp - 0x24], 0
mov byte [ebp - 4], 6
je 0x41eee0
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
call fcn.00404bc1
push edi
lea eax, [ebp - 0x118]
push 0x47e1cc
push eax
call fcn.004206f1
add esp, 0xc
push dword [0x46950c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xd
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00411a14
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.004060f2
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - 0x1d4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1c4], 1
jne 0x41ef6f
cmp dword [ebp - 0x1d0], 4
ja 0x41ef5d
jne 0x41ef6f
cmp dword [ebp - 0x1cc], ebx
jbe 0x41ef6f
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceExInstallShieldSetup
jmp 0x41ef7f
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, str.InstallShieldSetup
lea edi, [ebp - 0xa0]
mov esi, ebx
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x8d]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop esi
xor edi, edi
lea eax, [ebp - 0xa0]
push edi
push edi
push edi
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41efe2
push esi
push ebx
lea eax, [ebp - 0xa0]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
inc esi
jmp 0x41efae
mov eax, dword [ebp - 0x4c]
add eax, eax
push eax
call fcn.00457805
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 0x24], esi
setne byte [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xf
call fcn.00405599
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
lea eax, [ebp - 0xa0]
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [ebp - 0x28], 0
je 0x41f037
push esi
call fcn.00451b84
pop ecx
cmp dword [ebp - 0x18], edi
je 0x41f048
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.004060f2
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.004060f2
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.004060f2
jmp 0x41f081
cmp byte [edi + 0xd], 0
je 0x41f0e2
mov esi, dword [sym.imp.USER32.dll_ExitWindowsEx]
push ebx
push 2
pop edi
push edi
call esi
test eax, eax
jne 0x41f0e2
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41f0e2
lea eax, [ebp - 0x2c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41f0e2
push ebx
push edi
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret