Windows API category
Persistence
Mechanisms that re-launch code after logoff or reboot. Registry writes, service creation and startup-folder copies are the most common; correlate with the writing process and the launched path.
Surviving reboot: run keys, startup folders, services and scheduled tasks. This category contains 18 APIs.
Open Persistence in the interactive atlasPersistence APIs
Last reviewed or generated: .
-
ChangeServiceConfigW
Changes a service binary path, start type or account.
-
CopyFileW
Copies an existing file to a new location.
-
CreateServiceA
ANSI variant of CreateService.
-
CreateServiceW
Creates a service in the SCM database, specifying its binary path and start type.
-
MoveFileExW
Moves or renames a file, optionally across volumes and on reboot.
-
NetShareAdd
Creates or modifies an SMB share.
-
NtCreateKey
Native registry key creation.
-
NtLoadDriver
Loads a kernel-mode driver into the running system; requires SeLoadDriverPrivilege and a registry service key naming the driver image.
-
NtSetValueKey
Native registry value write.
-
RegCreateKeyExW
Creates a registry key or opens it if it already exists.
-
RegLoadKeyW
Loads a registry hive from a file into HKEY_USERS or HKEY_LOCAL_MACHINE.
-
RegRestoreKeyW
Replaces a registry key with the contents of a hive file.
-
RegSetKeyValueW
Creates or opens a key and sets a value in one call.
-
RegSetValueExW
Writes a value under a registry key.
-
SHGetFolderPathW
Returns the path of a shell folder such as Startup or AppData.
-
SHGetKnownFolderPath
Resolves a KNOWNFOLDERID to its current path.
-
SHGetSpecialFolderPathW
Legacy helper for special folder paths such as the Startup folder.
-
StartServiceW
Starts a service, causing its binary to run.