Accedi | Registrati Windows Live ID
Windows Live
Technical Wiki (EN) — Protocols & Patching

1. RE_LIVE Technical Wiki — Architecture & Suite Overview

« Standard Wiki

RE_LIVE is an open-source custom backend that revives the Windows Live Essentials 2009 (Wave 3) suite (recommended build 14.0.8117.0416) on Windows XP SP3, Vista, 7, 10, and 11. This technical wiki documents our reverse-engineered protocol specifications, binary offsets, client patching instructions, and server architecture.

Client ApplicationProtocol / StackStatusBackend Module
Windows Live Messenger 2009 / 2012 MSNP15–MSNP22 (v14.0 & v16.4), SOAP ABCH/Sharing, IDCRL, WebSocket/HTTPS tunnel Working front/msn/
Windows Live Sync 2009 FolderShare C++ Binary Protocol (24/7 CTN TLS + P2P TCP + Google Drive Offload + /sync) Working 24/7 tools/ctn_logger.py, core/sync_portal.py
Windows Live Photo Gallery & Movie Maker SkyDrive AtomPub / OData XML → Google Drive v3 OAuth2 Working core/skydrive.py, core/moviemaker.py
Windows Live Spaces & Writer MetaWeblog XML-RPC, RSD discovery, Web Spaces Portal Working core/spaces.py
Windows Live Mail Local IMAP/SMTP/POP3 → Modern TLS 1.2/1.3 & OAuth2 Proxy Working mail_bridge/

2. Client Patching & TLS 1.2/1.3 Bridge

Legacy Windows Live 2009 binaries hardcode Microsoft hostnames (login.live.com, messenger.hotmail.com, contacts.msn.com, skydrive.live.com, connect.sync.live.net) and on older OSes (XP/Vista/7) lack modern TLS 1.2/1.3 cipher suites.

2.1 One-Click Patching (RE_LIVE_Patcher.exe)

  1. Install Windows Live Essentials 2009 (build 14.0.8117.0416).
  2. Download RE_LIVE_Patcher.exe and run it as Administrator.
  3. The patcher automatically:
    • Installs the RE_LIVE Root CA certificate into LocalMachine\Root so WinINet/Schannel trusts the local proxy.
    • Redirects Windows Live endpoints via hosts / DLL routing to the RE_LIVE local TLS bridge (127.77.0.1).
    • Starts the integrated TLS 1.2/1.3 forwarder + Mail Bridge (compatible from Windows XP SP3 up to Windows 11).

2.2 Connecting Windows Live Sync (24/7 Cloud Server)

Download the 1-click launcher RE_LIVE_Sync_Launcher.bat from /sync, or launch WindowsLiveSync.exe manually pointing to the live 24/7 RE_LIVE Sync server:

& "C:\Program Files (x86)\Windows Live\Sync\WindowsLiveSync.exe" /servername s16.serv00.com /serverport 3407 /ignorecert
FlagPurpose
/servername <host>Overrides the default FolderShare redirector host (s16.serv00.com)
/serverport <port>Overrides the default redirector port (3407)
/ignorecertAllows the CTN TLS node certificate on port 10821

3. IDCRL Authentication (msidcrl40.dll & RST.srf)

All Wave 3 apps share Windows Live Sign-in Assistant (IDCRL) to obtain service-specific binary tickets via SOAP POST /RST.srf (WS-Trust RequestSecurityToken).

HRESULT / ErrorMeaningResolution
0x8004882e Cached IDCRL credential expired or missing (LogonIdentityEx failure). Sync logs out user immediately with error 16. Sign in again via the tray menu (Sign in...) and check "Remember my password" so IDCRL caches a fresh token.
0x80048820 TLS/SSL handshake failure reaching RST.srf. Ensure the RE_LIVE Root CA is trusted and the patcher TLS bridge is running.

4. Windows Live Sync 2009 — FolderShare CTN/NTC Protocol

Discovery Summary: By disassembling WindowsLiveSync.exe (build 14.0.8117.0416), we mapped the complete FolderShare Client-To-Node (CTN) and Node-To-Client (NTC) binary state machine, enabling both the First Run Wizard and persistent Online (SC_CONNECTED = 9) sessions with multi-PC installID tracking and shared libraries.

4.1 Stage 1 — HTTP Redirector

The client opens a plain TCP connection to /servername:/serverport and sends:

GET / HTTP/1.0\r\n\r\n

The redirector responds with XML pointing to the TLS CTN node:

HTTP/1.0 200 OK
Content-Type: text/xml
Content-Length: 27

<node>127.0.0.1:8090</node>

4.2 Stage 2 — Binary Framing & Data Types

Every packet over the TLS socket (port 8090) uses a 5-byte header:

[0..1]  0x45 0x5F     Magic bytes ("E_")
[2..3]  uint16_be     Total packet length (including the 5-byte header)
[4]     uint8         Message type ID (CTN_* or NTC_*)
[5..]   bytes         Message payload (total_len - 5 bytes)
  • Integers: Strictly Big-Endian (>H, >I, >i).
  • Strings (readString @ 0x4cb000): Always prefixed with a 2-byte Big-Endian uint16 length followed by raw UTF-8/ASCII bytes (no null terminator). Omitting the length prefix causes buffer underflow (0x80040403) and crashes assert(SUCCEEDED(hr))!

4.3 Server Connection State Machine (pSConn->state)

State 1: SC_NOT_CONNECTED / SC_INIT
   |  (TCP + TLS connected, client sends CTN_SEND_MAGIC = 2)
   v
State 3: SC_WAITING_FOR_MAGIC
   |  <-- Server sends NTC_TAKE_MAGIC (1) [handleNtcTakeMagic @ 0x48ee44]
   v
State 4: SC_TESTING_PORTS
   |  --> Client sends CTN_LIVEID_HELLO (76) + CTN_CERT_REQUEST (32)
   |  <-- Server sends NTC_CERT (41) + NTC_TAKE_INSTALL_ID (4)
   |  <-- Server sends NTC_SEQUENCE_IDS_REQUEST (85) [0x4c0584]   <== CRITICAL BRIDGE!
   v
State 5: SC_WAITING_FOR_FILE_LIST_REQUEST
   |  --> Client replies CTN_SEQUENCE_IDS_RESPONSE (73) [0x4bfd21]
   |  <-- Server sends NTC_SYNC_COMPLETE (12) [handleNtcSyncComplete @ 0x48f38a]
   v
State 9: SC_CONNECTED  ("Online" / "In linea" — Blue Sync Icon Active!)
   |  <-- Server pushes NTC_AVAIL_DRIVE (8) [handleNtcAvailDrive @ 0x487d50]
   |  <-> CTN_KEEP_ALIVE (21) every 60s / NTC_KEEP_ALIVE (42) resets 300s timer
Important Assert: Sending NTC_SYNC_COMPLETE (12) while the client is still in State 3 or 4 triggers FAILED: assert(pSConn->state == SC_WAITING_FOR_FILE_LIST_REQUEST) and crashes the client. You must transition 4 → 5 first with NTC_SEQUENCE_IDS_REQUEST (85)!

5. CTN/NTC Binary Packet Layouts & Binary Offsets

NTC dispatcher jump table in WindowsLiveSync.exe (14.0.8117.0416): Jump table VA 0x48fb61 (file offset 0x8ef61), index byte array VA 0x48fc61 (file offset 0x8f061).

IDMessageHandler VAExact Binary Payload Layout
NTC 2 NTC_ACCOUNT_STATUS 0x48b25c int32(status=1) + int32(user_id) + int32(avail_drives=0) + int16(flag=0) + bytes(16) (30B payload, 35B total). Completes First Run Wizard.
NTC 1 NTC_TAKE_MAGIC 0x48ee44 uint16_be(len) + ascii_magic (e.g. 32-char hex string). Moves state 3 → 4.
CTN 76 CTN_LIVEID_HELLO — uint32(build=7) + str(device_key) + uint32(tlen) + bytes(liveid_ticket) + str(local_ip) + str(host_name) + uint32(os_type) + uint32(install_id) + str(install_name) + ... + str(locale) + uint32(codepage)
NTC 41 NTC_CERT 0x48c01b int32_be(len(der)) + raw_x509_der_bytes. Validates peer certificate.
NTC 4 NTC_TAKE_INSTALL_ID 0x486cf1 uint32_be(install_id). Client persists this ID into %LOCALAPPDATA%\Microsoft\Windows Live Sync\settings\1.ini.
NTC 85 NTC_SEQUENCE_IDS_REQUEST 0x4c0584 Empty payload (5B total: 45 5f 00 05 55). Moves state 4 → 5 and triggers CTN 73.
CTN 73 CTN_SEQUENCE_IDS_RESPONSE 0x4bfd21 uint32(libraries_count) + ... (9B when 0 libraries).
NTC 12 NTC_SYNC_COMPLETE 0x48f38a Empty payload (5B total: 45 5f 00 05 0c). Requires state 5; moves state 5 → 9 (Online).
NTC 8 NTC_AVAIL_DRIVE 0x487d50 u32(driveID) + u8(perms) + str(name≤31) + str(owner≤26) + str(hint≤257) + u8(nRep) + u8[nRep] + u32(size) + u8(cat) + u32(0) + u32(0) + u32(libType=0) + u32(libCreator) + u32(libFlags) + u32(eventId). With libType=0, Sync auto-creates & mounts %USERPROFILE%\<name> and replies CTN 8 + CTN 29!
CTN 8 / 29 CTN_DRIVE_ADDED / CTN_DRIVE_MOUNT_DETAILS — Client confirms mounting a drive (u32(driveID) + u32(repType)) and reports its local folder path (CTN 29).
NTC 81 NTC_NEW_FOLDER_SEQ 0x48e205 / 0x4d0a49 u32(driveID) + u32(folderID=1) + u32(parentID=0) + u32(createIfMissing=1) + str(name="") + u32(seq=1). Required before NTC 22 to satisfy assert(pDrive->numFolders > 0) in initDriveScan!
NTC 22 NTC_DRIVE_SYNC_COMPLETE 0x487aff u32(driveID) + u8(perms=3) + u8(repType=3) (6B payload). Activates the folder in the Windows Live Sync UI!
CTN 21 / NTC 42 CTN_KEEP_ALIVE / NTC_KEEP_ALIVE 0x48f7e9 Empty payload (5B: 45 5f 00 05 15 / 45 5f 00 05 2a). Resets pSConn->lastUpdated ([esi+0x34]) so the 300s idle timer never fires.

6. Windows 11 Compatibility & Binary Patch Notes

On Windows 11, Shell_NotifyIconW(NIM_ADD) inside addShellIcon can return E_FAIL (-2147467259) if Explorer still holds a stale tray handle or if Sync is launched from a non-interactive session. After 6–8 failed attempts, wWinMain exits silently.

  • Clean workaround: Always launch WindowsLiveSync.exe from your interactive desktop PowerShell (with &), or restart explorer.exe if a previous Sync process was force-killed.
  • Optional binary patch (WindowsLiveSync.exe 14.0.8117.0416): At file offset 0x64788, change 75 2d (jne +0x2d) to eb 2d (jmp +0x2d) to prevent silent exit when Shell_NotifyIconW returns an error.

7. Windows Live Messenger (MSNP15–MSNP22 / 2009 & 2012)

RE_LIVE implements Notification Server (NS), Switchboard (SB), Address Book Clearing House (ABCH), Sharing Service, Roaming Profile / Storage Service, Offline Instant Messages (OIM), nudges, display pictures, and personal status messages for both Windows Live Messenger 2009 (v14.0, MSNP15–18) and Windows Live Messenger 2012 (v16.4, MSNP21–22).

  • Cloud tunneling: Because PaaS hosts like Render expose only one HTTP/HTTPS port, the RE_LIVE patcher can tunnel raw MSNP TCP traffic over HTTPS/WebSocket to the server seamlessly.
  • Password hashing: Accounts store salted modern hashes alongside legacy MSNP/MD5 digests (_set_passwords) so both web and Messenger 2009 clients authenticate identically.

8. SkyDrive AtomPub/OData → Google Drive Bridge

Windows Live Photo Gallery and Windows Live Movie Maker upload albums and videos using legacy SkyDrive AtomPub/OData XML feeds authenticated with WLID tokens.

  • RE_LIVE implements the full AtomPub feed endpoints (core/skydrive.py) and translates album creation, photo uploads, and downloads directly into Google Drive v3 API calls.
  • Each user connects their own free 15 GB Google Drive with the minimal drive.file OAuth2 scope (see Google Drive Guide).

9. Spaces, Windows Live Writer & Cloud Backup

Windows Live Spaces (/spaces) and Windows Live Writer 2009 communicate via MetaWeblog XML-RPC (metaWeblog.newPost, editPost, newMediaObject, getRecentPosts). Spaces also includes a Private Photo Gallery (web album creation, multi-photo upload, Lightbox + Slideshow, and strict owner-only privacy).

Automatic Google Drive Persistence (core/gdrive_backup.py)

To survive ephemeral container restarts on free cloud hosts, RE_LIVE includes automatic cloud persistence:

  • On startup (before SQLAlchemy opens the DB): Downloads RE_LIVE_ServerBackup/relive_backup.zip and atomically restores dialtone.sqlite, storage/spaces/, and storage/skydrive/.
  • On every DB write / media upload: Debounced 5-second online snapshot via sqlite3.Connection.backup() + PATCH upload to Google Drive.
  • Periodic & shutdown safety: Runs automatically every 60 minutes and flushes pending changes via atexit.

10. Windows Live Mail & Mail Bridge

Windows Live Mail 2009 fails to connect to modern email servers (Gmail, Outlook, Aruba, TIM, Libero) because it uses legacy TLS 1.0/1.1. RE_LIVE_MailBridge.exe runs a lightweight local IMAP/POP3/SMTP proxy that accepts plaintext/legacy TLS from Live Mail 2009 and upgrades upstream connections to modern TLS 1.2/1.3.

11. Self-Hosting & Troubleshooting

Running the CTN Sync Server Locally

python tools\ctn_logger.py 8089 8090

Port 8089 serves both the FolderShare HTTP Redirector (GET /) and the live Device & Shared Folder Control Panel (http://127.0.0.1:8089/ui). Port 8090 serves the TLS CTN protocol. Device installIDs and libraries persist in tools/sync_state.json.

Useful Log Locations

  • Windows Live Sync logs: %LOCALAPPDATA%\Microsoft\Windows Live Sync\logs\
  • Windows Live Sync settings: %LOCALAPPDATA%\Microsoft\Windows Live Sync\settings\1.ini