Function at 0x42505b
Capabilities:
Query or enumerate registry value
Set registry value
Shutdown system

Disassembly:
mov eax, 0x4743fa
call fcn.00465b54
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 0x42545a
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0x47b4b8
mov dword [ebp - 0xa8], 0x47b4b0
call fcn.0040580f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 1
call fcn.00406e82
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00406586
push 0x491870
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.00405c32
lea eax, [ebp - 0xc8]
push 0x492af8
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407747
add esp, 0xc
push 4
push eax
mov byte [ebp - 4], 4
call fcn.0041c080
pop ecx
mov byte [ebp - 0x11], al
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00407f77
cmp byte [ebp - 0x11], bl
je 0x42543e
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x47b4b8
mov dword [ebp - 0x60], 0x47b4b0
call fcn.0040580f
lea eax, [ebp - 0x1e]
push 1
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040580f
mov esi, 0x800
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.00406e9d
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 7
call fcn.0040650f
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.00405c43
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x80]
push eax
call fcn.00426a54
push dword [0x47b518]
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.00406639
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.00407f77
mov esi, dword [ebp - 0x1c]
mov edi, 0x47b4c8
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x4251f4
mov edi, eax
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x80]
push eax
call fcn.0041f828
push 0x492ae4
push eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 9
push eax
call fcn.00409cdb
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
push eax
call fcn.00409cdb
add esp, 0xc
push dword [0x47b518]
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.004076b5
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
call fcn.00407f77
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 9
call fcn.00407f77
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.00407f77
lea edi, [esi + 0x10]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.004256d7
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
mov byte [eax + 4], 1
call fcn.00406586
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 0x4252b9
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
call fcn.00405b36
push edi
lea eax, [ebp - 0x118]
push 0x492adc
push eax
call fcn.00426b2f
add esp, 0xc
push dword [0x47b518]
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.004076b5
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
call fcn.00407f77
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 0x425348
cmp dword [ebp - 0x1d0], 4
ja 0x425336
jne 0x425348
cmp dword [ebp - 0x1cc], ebx
jbe 0x425348
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x492a94
jmp 0x425358
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x492a60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, 0x492a4c
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 0x4253bb
push esi
push ebx
lea eax, [ebp - 0xa0]
push 0x4918d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
inc esi
jmp 0x425387
mov eax, dword [ebp - 0x4c]
add eax, eax
push eax
call fcn.004662c5
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.0040650f
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 0x425410
push esi
call fcn.0045e012
pop ecx
cmp dword [ebp - 0x18], edi
je 0x425421
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.00407f77
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00407f77
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.00407f77
jmp 0x42545a
cmp byte [edi + 0xd], 0
je 0x4254bb
mov esi, dword [sym.imp.USER32.dll_ExitWindowsEx]
push ebx
push 2
pop edi
push edi
call esi
test eax, eax
jne 0x4254bb
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 0x4254bb
lea eax, [ebp - 0x2c]
push eax
push 0x492a38
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 0x4254bb
push ebx
push edi
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret