Function at 0x442be5
Capabilities:
Manipulate boot configuration
Persist via run registry key
Query or enumerate registry value
Set registry value
Shutdown system

Disassembly:
mov eax, 0x46973d
call fcn.0045bbb8
sub esp, 0x200
and dword [ebp - 4], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x28], ebx
cmp byte [ebx + 0xc], 0
mov dword [ebp - 0x10], esp
je 0x443154
lea eax, [ebp - 0x2a]
mov edi, 0x46cb90
mov esi, 0x46cb88
push 0
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x48], esi
call fcn.00408da8
lea eax, [ebp - 0x29]
push 0
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0x98], esi
call fcn.00408da8
lea eax, [ebp - 0x21]
push 1
push eax
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.00408da8
push str._RUN_ONCE_PROGRAM_
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.00423ea2
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xb8]
push eax
call fcn.004468f5
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.00417407
mov ecx, dword [ebx + 0x58]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
cmp byte [ebp - 0x30], 0
mov byte [ebp - 4], 3
je 0x442cb3
mov ecx, dword [ebp - 0x34]
push dword [ecx + 0x1c]
call fcn.00417068
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 5
call fcn.0044473c
push dword [0x46c950]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 6
neg ecx
sbb ecx, ecx
push 0
and ecx, eax
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004091d2
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 5
call fcn.0040be30
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x68]
push eax
mov dword [ebp - 4], 3
call fcn.00417c4f
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00417407
push str.DISK1TARGET
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
push esi
push dword [ebp - 0x14]
mov byte [ebp - 4], 9
mov eax, dword [eax + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0041865c
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0xa
call fcn.0044473c
push dword [0x46c950]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xb
neg ecx
sbb ecx, ecx
push 0
and ecx, eax
push ecx
lea ecx, [ebp - 0x64]
call fcn.004091d2
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xa
call fcn.0040be30
jmp 0x442da6
lea eax, [ebp - 0xb8]
push 4
push eax
mov dword [ebp - 4], 3
call fcn.00427e12
pop ecx
test al, al
pop ecx
je 0x44312a
lea eax, [ebp - 0x68]
push str.setup.ilg
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0042a4e9
add esp, 0xc
push 4
push eax
mov byte [ebp - 4], 0xd
call fcn.00427e12
pop ecx
mov bl, al
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.0040be30
test bl, bl
je 0x44312a
lea eax, [ebp - 0x2b]
push 1
push eax
push str.reboot.ini
lea ecx, [ebp - 0x90]
call fcn.00417129
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0xe
call fcn.0042a31b
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0040be30
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x68]
push eax
call fcn.0042f3a9
mov esi, eax
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 0xf
call fcn.0042f3a9
push 0x483b68
push eax
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 0x10
push eax
call fcn.0042cf3e
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x11
push eax
call fcn.0042efae
add esp, 0xc
push dword [0x46c950]
mov ecx, eax
xor ebx, ebx
add eax, 4
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
mov byte [ebp - 4], 0x12
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0042a3ed
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.0040be30
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0x10
call fcn.0040be30
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xf
call fcn.0040be30
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 3
call fcn.0040be30
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.004468f5
mov ecx, dword [eax]
mov byte [ebp - 4], 0x13
mov byte [eax + 4], 1
call fcn.00417407
mov ecx, dword [esi + 0x58]
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x24]
cmp byte [ebp - 0x30], bl
mov byte [ebp - 4], 3
je 0x442f2f
mov ecx, dword [ebp - 0x34]
push dword [ecx + 0x1c]
call fcn.00417068
push edi
lea eax, [ebp - 0x128]
push 0x483b64
push eax
call fcn.004445bb
add esp, 0xc
push dword [0x46c950]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0x14
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0042a3ed
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 3
call fcn.0040be30
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x48]
push eax
call fcn.004176a5
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x40]
je 0x443002
lea eax, [ebp - 0x30]
add ecx, 0x34
push eax
call fcn.004176a5
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
je 0x442ff8
lea ecx, [eax + 0x34]
call fcn.00403347
mov ebx, eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
call fcn.00417390
mov esi, eax
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0xc]
call fcn.00417390
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00417390
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x14]
call fcn.00440b31
xor ebx, ebx
jmp 0x442fae
lea ecx, [ebp - 0x20]
call fcn.004437b2
jmp 0x442f8c
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20c]
mov byte [ebp - 4], 0x15
push eax
mov dword [ebp - 0x20c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1fc], 1
jne 0x44304e
cmp dword [ebp - 0x208], 4
ja 0x44303c
jne 0x44304e
cmp dword [ebp - 0x204], ebx
jbe 0x44304e
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceExInstallShieldSetup
jmp 0x44305e
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, str.InstallShieldSetup
lea edi, [ebp - 0xd8]
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 - 0xc5]
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
push edi
push edi
push edi
lea eax, [ebp - 0xd8]
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4430c1
push esi
push ebx
lea eax, [ebp - 0xd8]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
inc esi
jmp 0x44308f
mov eax, dword [ebp - 0xf4]
add eax, eax
push eax
call fcn.0045bd3b
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 0x30], esi
setne byte [ebp - 0x34]
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x16
call fcn.00417390
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 - 0xd8]
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [ebp - 0x34], 0
je 0x44311c
push esi
call fcn.00453cf2
pop ecx
cmp dword [ebp - 0x18], edi
je 0x44312a
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.0040be30
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.0040be30
and byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0040be30
mov eax, dword [ebp - 0x28]
xor edi, edi
cmp byte [eax + 0xd], 0
je 0x4431ba
mov esi, dword [sym.imp.USER32.dll_ExitWindowsEx]
push edi
push 2
pop ebx
push ebx
call esi
test eax, eax
jne 0x4431ba
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 0x4431ba
lea eax, [ebp - 0x38]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
lea eax, [ebp - 0x3c]
push edi
push eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4431ba
push edi
push ebx
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret