Format a dword as a hex string.
String toHex32(int value) => (value & 0xFFFFFFFF).toRadixString(16).padLeft(8, '0');