Function at 0x409cfb
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x409d1d
xor eax, eax
jmp 0x409d67
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409d19
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x409d6a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop esi
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ZSPOOL.dll_RegOpenKeyA]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
push dword [ebp + 8]
call ebx
cmp dword [ebp - 8], 0
jne 0x409d9b
xor eax, eax
jmp 0x409e85
and dword [ebp - 4], 0
test eax, eax
jne 0x409e7a
lea eax, [ebp - 0x11c]
push 0x105
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ZSPOOL.dll_RegEnumKeyA]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x409e0a
cmp eax, 0x103
je 0x409dd4
xor esi, esi
jmp 0x409e6d
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
cmp dword [ebp - 0xc], 0
mov esi, eax
je 0x409e6d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ZSPOOL.dll_RegDeleteKeyA]
push dword [ebp - 0xc]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ZSPOOL.dll_RegCloseKey]
jmp 0x409e6d
push dword [ebp + 0xc]
call fcn.0040d8f0
mov edi, eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0040d8f0
lea eax, [edi + eax + 8]
pop ecx
add eax, 3
pop ecx
and al, 0xfc
call fcn.0040d320
mov edi, esp
test edi, edi
je 0x409e6d
push dword [ebp + 0xc]
push edi
call fcn.0040d570
push 0x419118
push edi
call fcn.0040d580
lea eax, [ebp - 0x11c]
push eax
push edi
call fcn.0040d580
mov ecx, dword [ebp - 0x14]
add esp, 0x18
push edi
push dword [ebp + 8]
call fcn.00409d6a
test eax, eax
je 0x409e6d
dec dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 0x10], 0
je 0x409da7
push dword [ebp - 8]
call dword [sym.imp.ZSPOOL.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x128]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x409f0a
Capabilities:
Delete file
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x409f28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 4
jae 0x409f2d
push 1
pop eax
jmp 0x409f4f
mov ecx, esi
call fcn.0040726d
cmp eax, 1
je 0x409f45
jle 0x409f5e
cmp eax, 3
jle 0x409f54
cmp eax, 4
jne 0x409f5e
push edi
mov ecx, esi
call fcn.0040a259
xor eax, eax
pop edi
pop esi
ret 4
push edi
mov ecx, esi
call fcn.0040a120
jmp 0x409f4d
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x409f4d