Compare commits

...

1 Commits

Author SHA1 Message Date
coah
a8e84358c1 RevoEX round 2: md5 3/4, d_nhttp_private 6/7 (worker 5ffa5e9e) 2026-09-30 07:44:06 +00:00
8 changed files with 314 additions and 29 deletions

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 93.26% | 82.01% | 57.21% | 89.10% |
| 93.26% | 82.03% | 57.21% | 89.10% |
units 768/1027 complete, functions 11877/12563 matched.
units 768/1027 complete, functions 11879/12563 matched.
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
<!-- progress:end -->

View File

@@ -173,6 +173,8 @@ static const u32 AESiDecryptTable[] = {
#define DECRYPT(a,b,c,d) (ROTATE(AESiDecryptTable[(a)>>24],24) ^ ROTATE(AESiDecryptTable[((b)>>16)&255],16) ^ ROTATE(AESiDecryptTable[((c)>>8)&255],8) ^ AESiDecryptTable[(d)&255])
#define SUBSTITUTE(table,a,b,c,d) (((u32)table[(a)>>24]<<24) | ((u32)table[((b)>>16)&255]<<16) | ((u32)table[((c)>>8)&255]<<8) | table[(d)&255])
#define SUBSTITUTE_XOR(table,a,b,c,d) (((u32)table[(a)>>24]<<24) ^ ((u32)table[((b)>>16)&255]<<16) ^ ((u32)table[((c)>>8)&255]<<8) ^ table[(d)&255])
void AESiEncryptBlock(AESContext* context, u32* output, const u32* input) {
u32 rounds = context->rounds;
const u32* key = context->keys + 4;
@@ -224,10 +226,10 @@ void AESiDecryptBlock(AESContext* context, u32* output, const u32* input) {
a=nextA; b=nextB; c=nextC; d=nextD;
key-=4;
}
output[0]=SUBSTITUTE(AESiInvSubShiftTable,a,d,c,b)^key[0];
output[1]=SUBSTITUTE(AESiInvSubShiftTable,b,a,d,c)^key[1];
output[2]=SUBSTITUTE(AESiInvSubShiftTable,c,b,a,d)^key[2];
output[3]=SUBSTITUTE(AESiInvSubShiftTable,d,c,b,a)^key[3];
output[0]=SUBSTITUTE_XOR(AESiInvSubShiftTable,a,d,c,b)^key[0];
output[1]=SUBSTITUTE_XOR(AESiInvSubShiftTable,b,a,d,c)^key[1];
output[2]=SUBSTITUTE_XOR(AESiInvSubShiftTable,c,b,a,d)^key[2];
output[3]=SUBSTITUTE_XOR(AESiInvSubShiftTable,d,c,b,a)^key[3];
}
BOOL NETAESCreateEx(AESContext* context, const void* key, u32 keyLength, const void* iv, const AESBlockMode* mode) {
@@ -247,9 +249,9 @@ BOOL NETAESCreateEx(AESContext* context, const void* key, u32 keyLength, const v
value=schedule[words-1];
for(index=words; index<(context->rounds+1)*4; ++index) {
if (index%words == 0) {
value=SUBSTITUTE(AESiSubShiftTable,value<<8,value<<8,value<<8, value>>24) ^ ((u32)AESiRoundKeyRcon0[index/words-1]<<24);
value=SUBSTITUTE_XOR(AESiSubShiftTable,value<<8,value<<8,value<<8,value>>24) ^ ((u32)AESiRoundKeyRcon0[index/words-1]<<24);
} else if(words>6 && index%words==4) {
value=SUBSTITUTE(AESiSubShiftTable,value,value,value,value);
value=SUBSTITUTE_XOR(AESiSubShiftTable,value,value,value,value);
}
value ^= schedule[index-words];
schedule[index]=value;

View File

@@ -39,7 +39,7 @@ void NETMD5Update(NETMD5Context* context, const void* input, u32 length) {
}
}
#define SWAP32(x) (((((x) << 8) | ((x) >> 24)) & 0x00ff00ff) | ((((x) << 24) | ((x) >> 8)) & 0xff00ff00))
#define SWAP32(x) ((((((x) << 24) | ((x) >> 8)) & 0xff000000) | ((((x) << 8) | ((x) >> 24)) & 0x00ff0000)) | (((((x) << 8) | ((x) >> 24)) & 0x000000ff) | ((((x) << 24) | ((x) >> 8)) & 0x0000ff00)))
void NETMD5GetDigest(NETMD5Context* context, void* digest) {
static u8 endMarker = 0x80;
@@ -75,11 +75,15 @@ static void ProcessBlock(NETMD5Context* context) {
static u32 constants[64] = {0xD76AA478, 0xE8C7B756, 0x242070DB, 0xC1BDCEEE, 0xF57C0FAF, 0x4787C62A, 0xA8304613, 0xFD469501, 0x698098D8, 0x8B44F7AF, 0xFFFF5BB1, 0x895CD7BE, 0x6B901122, 0xFD987193, 0xA679438E, 0x49B40821, 0xF61E2562, 0xC040B340, 0x265E5A51, 0xE9B6C7AA, 0xD62F105D, 0x02441453, 0xD8A1E681, 0xE7D3FBC8, 0x21E1CDE6, 0xC33707D6, 0xF4D50D87, 0x455A14ED, 0xA9E3E905, 0xFCEFA3F8, 0x676F02D9, 0x8D2A4C8A, 0xFFFA3942, 0x8771F681, 0x6D9D6122, 0xFDE5380C, 0xA4BEEA44, 0x4BDECFA9, 0xF6BB4B60, 0xBEBFBC70, 0x289B7EC6, 0xEAA127FA, 0xD4EF3085, 0x04881D05, 0xD9D4D039, 0xE6DB99E5, 0x1FA27CF8, 0xC4AC5665, 0xF4292244, 0x432AFF97, 0xAB9423A7, 0xFC93A039, 0x655B59C3, 0x8F0CCC92, 0xFFEFF47D, 0x85845DD1, 0x6FA87E4F, 0xFE2CE6E0, 0xA3014314, 0x4E0811A1, 0xF7537E82, 0xBD3AF235, 0x2AD7D2BB, 0xEB86D391};
static u32 indices[48] = {0x00000001, 0x00000006, 0x0000000B, 0x00000000, 0x00000005, 0x0000000A, 0x0000000F, 0x00000004, 0x00000009, 0x0000000E, 0x00000003, 0x00000008, 0x0000000D, 0x00000002, 0x00000007, 0x0000000C, 0x00000005, 0x00000008, 0x0000000B, 0x0000000E, 0x00000001, 0x00000004, 0x00000007, 0x0000000A, 0x0000000D, 0x00000000, 0x00000003, 0x00000006, 0x00000009, 0x0000000C, 0x0000000F, 0x00000002, 0x00000000, 0x00000007, 0x0000000E, 0x00000005, 0x0000000C, 0x00000003, 0x0000000A, 0x00000001, 0x00000008, 0x0000000F, 0x00000006, 0x0000000D, 0x00000004, 0x0000000B, 0x00000002, 0x00000009};
u32 a = context->a, b = context->b, c = context->c, d = context->d;
u32* block = context->buffer32;
u32* word = block;
u32* constant = constants;
u32* index = indices;
u32* word;
u32* constant;
u32* index;
int round;
u32* block;
block = context->buffer32;
word = block;
constant = constants;
index = indices;
for (round = 0; round < 4; ++round) {
STEP(a,b,c,d,(b & c) | (~b & d),word,7); ++word; ++constant;
STEP(d,a,b,c,(a & b) | (~a & c),word,12); ++word; ++constant;

View File

@@ -64,10 +64,11 @@ s32 NHTTPi_encodeUrlChar(char* destination, s8 character) {
}
s32 NHTTPi_strToHex(const char* string, s32 length) {
s32 value=0;
BOOL started=FALSE;
s32 value;
BOOL started;
if(length>8) return -1;
if((length==8) & (*string>='7')) return -1;
value=0; started=FALSE;
for(; length>0; --length,++string) {
s8 character=LowerCase(*string);
if(character>='0' && character<='9') { value=(value<<4)+character-'0'; started=TRUE; }
@@ -102,10 +103,13 @@ s32 NHTTPi_strToInt(const char* string, s32 length) {
s32 NHTTPi_intToStr(char* destination, u32 value) {
u32 scales[9]={1000000000,100000000,10000000,1000000,100000,10000,1000,100,10};
char* output=destination;
s32 length=0;
BOOL started=FALSE;
BOOL started;
int digit;
char* output;
s32 length;
output = destination;
length = 0;
started = FALSE;
for(digit=0; digit<9; ++digit) {
if(value>=scales[digit]) {
u32 quotient=value/scales[digit];

View File

@@ -23,11 +23,10 @@ s32 NHTTP_SendRequestAsync(void*, NHTTPRequestInfo*);
void NHTTPi_WaitForCompletion(NHTTPConnectionInfo*);
NHTTPConnectionInfo* NHTTPCreateConnection(const char* url, s32 method, void* buffer, u32 size, NHTTPConnectionCallback callback, void* userParam) {
NHTTPConnectionInfo* connection;
void* mutex;
NHTTPBgnEndInfo* info;
void* system;
void* mutex;
system=NHTTPi_GetSystemInfoP();
info=NHTTPi_GetBgnEndInfoP(system);
mutex=NHTTPi_GetMutexInfoP(system);

View File

@@ -126,13 +126,12 @@ int SOConnect(int socket, void* address) {
}
int SOGetSockName(int socket, void* address) {
SOSockAddr* reply;
NameRequest* request;
int size;
int result;
s32 rm;
SOSockAddr* addr;
SOSockAddr* reply;
NameRequest* request;
addr=address;
if((result=SOiPrepare(NULL,&rm))==0) {
if(!addr || addr->len>8 || addr->len<8) result=-28;
@@ -351,12 +350,11 @@ static int RecvFrom(const char* name, int socket, void* data, int length, int fl
}
static int SendTo(const char* name, int socket, const void* data, int length, int flags, const SOSockAddr* address) {
void* buffer;
SendRequest* request;
BOOL direct;
int result;
s32 rm;
void* buffer;
SendRequest* request;
if((result=SOiPrepare(name,&rm))==0) {
if(address && (address->len>8 || address->len<8)) result=-28;
else if(length<0 || (length>0 && !data)) result=-28;

View File

@@ -48,11 +48,14 @@ s32 SOGetHostID(void) {
}
SOHostEnt* SOGetHostByName(const char* name) {
HostReply* reply;
int result;
int size;
int length;
SOHostEnt* host;
s32 rm;
char* request;
HostReply* reply;
int result,size,length;
SOHostEnt* host=NULL;
host = NULL;
if((result=SOiPrepare(NULL,&rm))==0) {
if(!name) result=-28;
else {

View File

@@ -0,0 +1,275 @@
# RevoEX continuation attempts
so/SOBasic/SOPoll: baseline: instructions 87/87, aligned differences 7
so/SOBasic/SOPoll: local declaration order 1: instructions 87/87, aligned differences 7
so/SOBasic/SOPoll: local declaration order 2: instructions 87/87, aligned differences 21
so/SOBasic/SOPoll: local declaration order 3: instructions 87/87, aligned differences 25
so/SOBasic/SOPoll: local declaration order 4: instructions 87/87, aligned differences 17
so/SOBasic/SOPoll: local declaration order 5: instructions 87/87, aligned differences 21
so/SOBasic/SOPoll: local declaration order 6: instructions 87/87, aligned differences 21
so/SOBasic/SOPoll: local declaration order 7: instructions 87/87, aligned differences 7
so/SOBasic/SOPoll: local declaration order 8: instructions 87/87, aligned differences 16
so/SOBasic/SOPoll: local declaration order 9: instructions 87/87, aligned differences 12
so/SOBasic/SOPoll: local declaration order 10: instructions 87/87, aligned differences 16
so/SOBasic/SOPoll: local declaration order 11: instructions 87/87, aligned differences 16
so/SOBasic/SOPoll: local declaration order 12: instructions 87/87, aligned differences 11
so/SOBasic/SOPoll: local declaration order 13: instructions 87/87, aligned differences 12
so/SOBasic/SOPoll: local declaration order 14: instructions 87/87, aligned differences 21
so/SOBasic/SOPoll: local declaration order 15: instructions 87/87, aligned differences 17
so/SOBasic/SOPoll: local declaration order 16: instructions 87/87, aligned differences 16
so/SOBasic/SOPoll: local declaration order 17: instructions 87/87, aligned differences 21
so/SOBasic/SOPoll: local declaration order 18: instructions 87/87, aligned differences 25
so/SOBasic/SOPoll: retained: instructions 87/87, aligned differences 7
so/SOBasic/SOGetSockName: baseline: instructions 63/63, aligned differences 17
so/SOBasic/SOGetSockName: local declaration order 1: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 2: instructions 63/63, aligned differences 11
so/SOBasic/SOGetSockName: local declaration order 3: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 4: instructions 63/63, aligned differences 21
so/SOBasic/SOGetSockName: local declaration order 5: instructions 63/63, aligned differences 21
so/SOBasic/SOGetSockName: local declaration order 6: instructions 63/63, aligned differences 20
so/SOBasic/SOGetSockName: local declaration order 7: instructions 63/63, aligned differences 17
so/SOBasic/SOGetSockName: local declaration order 8: instructions 63/63, aligned differences 17
so/SOBasic/SOGetSockName: local declaration order 9: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 10: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 11: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 12: instructions 63/63, aligned differences 19
so/SOBasic/SOGetSockName: local declaration order 13: instructions 63/63, aligned differences 19
so/SOBasic/SOGetSockName: local declaration order 14: instructions 63/63, aligned differences 19
so/SOBasic/SOGetSockName: local declaration order 15: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 16: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 17: instructions 63/63, aligned differences 24
so/SOBasic/SOGetSockName: local declaration order 18: instructions 63/63, aligned differences 17
so/SOBasic/SOGetSockName: retained: instructions 63/63, aligned differences 11
so/SOBasic/SOInetPtoN: baseline: instructions 79/80, aligned differences 66
so/SOBasic/SOInetPtoN: local declaration order 1: instructions 79/80, aligned differences 68
so/SOBasic/SOInetPtoN: local declaration order 2: instructions 79/80, aligned differences 66
so/SOBasic/SOInetPtoN: local declaration order 3: instructions 79/80, aligned differences 67
so/SOBasic/SOInetPtoN: retained: instructions 79/80, aligned differences 66
so/SOBasic/RecvFrom: baseline: instructions 174/174, aligned differences 70
so/SOBasic/RecvFrom: local declaration order 1: instructions 174/174, aligned differences 70
so/SOBasic/RecvFrom: local declaration order 2: instructions 174/174, aligned differences 82
so/SOBasic/RecvFrom: local declaration order 3: instructions 174/174, aligned differences 82
so/SOBasic/RecvFrom: retained: instructions 174/174, aligned differences 70
so/SOBasic/SendTo: baseline: instructions 139/139, aligned differences 66
so/SOBasic/SendTo: local declaration order 1: instructions 139/139, aligned differences 68
so/SOBasic/SendTo: local declaration order 2: instructions 139/139, aligned differences 63
so/SOBasic/SendTo: local declaration order 3: instructions 139/139, aligned differences 63
so/SOBasic/SendTo: retained: instructions 139/139, aligned differences 63
net/aes/AESiEncryptBlock: baseline: instructions 158/158, aligned differences 137
net/aes/AESiEncryptBlock: local declaration order 1: instructions 158/158, aligned differences 138
net/aes/AESiEncryptBlock: local declaration order 2: instructions 158/158, aligned differences 138
net/aes/AESiEncryptBlock: retained: instructions 158/158, aligned differences 137
net/aes/AESiDecryptBlock: baseline: instructions 241/251, aligned differences 245
net/aes/AESiDecryptBlock: local declaration order 1: instructions 241/251, aligned differences 245
net/aes/AESiDecryptBlock: local declaration order 2: instructions 241/251, aligned differences 245
net/aes/AESiDecryptBlock: local declaration order 3: instructions 241/251, aligned differences 245
net/aes/AESiDecryptBlock: retained: instructions 241/251, aligned differences 245
net/aes/NETAESCreateEx: baseline: instructions 103/108, aligned differences 82
net/aes/NETAESCreateEx: local declaration order 1: instructions 103/108, aligned differences 82
net/aes/NETAESCreateEx: local declaration order 2: instructions 103/108, aligned differences 82
net/aes/NETAESCreateEx: local declaration order 3: instructions 103/108, aligned differences 82
net/aes/NETAESCreateEx: retained: instructions 103/108, aligned differences 82
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: baseline: instructions 72/73, aligned differences 71
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: local declaration order 1: instructions 72/73, aligned differences 71
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: local declaration order 2: instructions 72/73, aligned differences 71
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: retained: instructions 72/73, aligned differences 71
nhttp/NHTTP_stdlib_RVL/NHTTPi_intToStr: baseline: instructions 95/95, aligned differences 61
nhttp/NHTTP_stdlib_RVL/NHTTPi_intToStr: local declaration order 1: instructions 95/95, aligned differences 65
nhttp/NHTTP_stdlib_RVL/NHTTPi_intToStr: local declaration order 2: instructions 95/95, aligned differences 60
nhttp/NHTTP_stdlib_RVL/NHTTPi_intToStr: local declaration order 3: instructions 95/95, aligned differences 68
nhttp/NHTTP_stdlib_RVL/NHTTPi_intToStr: retained: instructions 95/95, aligned differences 60
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: baseline: instructions 36/36, aligned differences 23
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: local declaration order 1: instructions 36/36, aligned differences 25
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: local declaration order 2: instructions 36/36, aligned differences 23
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: retained: instructions 36/36, aligned differences 23
nhttp/NHTTP_stdlib_RVL/NHTTPi_Base64Encode: baseline: instructions 119/119, aligned differences 58
nhttp/NHTTP_stdlib_RVL/NHTTPi_Base64Encode: local declaration order 1: instructions 119/119, aligned differences 73
nhttp/NHTTP_stdlib_RVL/NHTTPi_Base64Encode: local declaration order 2: instructions 119/119, aligned differences 58
nhttp/NHTTP_stdlib_RVL/NHTTPi_Base64Encode: local declaration order 3: instructions 119/119, aligned differences 58
nhttp/NHTTP_stdlib_RVL/NHTTPi_Base64Encode: retained: instructions 119/119, aligned differences 58
nhttp/NHTTP_recvbuf/NHTTPi_findNextLineHdrRecvBuf: baseline: instructions 125/126, aligned differences 106
nhttp/NHTTP_recvbuf/NHTTPi_findNextLineHdrRecvBuf: local declaration order 1: instructions 125/126, aligned differences 113
nhttp/NHTTP_recvbuf/NHTTPi_findNextLineHdrRecvBuf: local declaration order 2: instructions 125/126, aligned differences 113
nhttp/NHTTP_recvbuf/NHTTPi_findNextLineHdrRecvBuf: local declaration order 3: instructions 125/126, aligned differences 113
nhttp/NHTTP_recvbuf/NHTTPi_findNextLineHdrRecvBuf: retained: instructions 125/126, aligned differences 106
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: baseline: instructions 81/81, aligned differences 57
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: local declaration order 1: instructions 81/81, aligned differences 58
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: retained: instructions 81/81, aligned differences 57
net/md5/NETMD5GetDigest: baseline: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: local declaration order 1: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: local declaration order 2: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: local declaration order 3: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: retained: instructions 74/74, aligned differences 6
net/md5/ProcessBlock: baseline: instructions 294/306, aligned differences 301
net/md5/ProcessBlock: local declaration order 1: instructions 294/306, aligned differences 300
net/md5/ProcessBlock: local declaration order 2: instructions 294/306, aligned differences 302
net/md5/ProcessBlock: local declaration order 3: instructions 294/306, aligned differences 301
net/md5/ProcessBlock: retained: instructions 294/306, aligned differences 300
so/SOInformation/SOGetHostByName: baseline: instructions 80/80, aligned differences 23
so/SOInformation/SOGetHostByName: local declaration order 1: instructions 80/80, aligned differences 23
so/SOInformation/SOGetHostByName: local declaration order 2: instructions 80/80, aligned differences 17
so/SOInformation/SOGetHostByName: local declaration order 3: instructions 80/80, aligned differences 28
so/SOInformation/SOGetHostByName: retained: instructions 80/80, aligned differences 17
so/SOInformation/SOGetAddrInfo: baseline: instructions 183/185, aligned differences 166
so/SOInformation/SOGetAddrInfo: local declaration order 1: instructions 183/185, aligned differences 166
so/SOInformation/SOGetAddrInfo: local declaration order 2: instructions 183/185, aligned differences 166
so/SOInformation/SOGetAddrInfo: local declaration order 3: instructions 183/185, aligned differences 166
so/SOInformation/SOGetAddrInfo: retained: instructions 183/185, aligned differences 166
net/hmac/NETHMACInit: baseline: instructions 143/143, aligned differences 79
net/hmac/NETHMACInit: local declaration order 1: instructions 143/143, aligned differences 79
net/hmac/NETHMACInit: local declaration order 2: instructions 143/143, aligned differences 79
net/hmac/NETHMACInit: local declaration order 3: instructions 143/143, aligned differences 79
net/hmac/NETHMACInit: retained: instructions 143/143, aligned differences 79
net/hmac/NETHMACGetDigest: baseline: instructions 102/105, aligned differences 101
net/hmac/NETHMACGetDigest: local declaration order 1: instructions 102/105, aligned differences 101
net/hmac/NETHMACGetDigest: local declaration order 2: instructions 102/105, aligned differences 101
net/hmac/NETHMACGetDigest: local declaration order 3: instructions 102/105, aligned differences 101
net/hmac/NETHMACGetDigest: retained: instructions 102/105, aligned differences 101
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: baseline: instructions 67/67, aligned differences 4
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: local declaration order 1: instructions 67/67, aligned differences 11
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: local declaration order 2: instructions 67/67, aligned differences 4
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: retained: instructions 67/67, aligned differences 4
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend_sub: baseline: instructions 101/102, aligned differences 67
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend_sub: local declaration order 1: instructions 101/102, aligned differences 75
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend_sub: local declaration order 2: instructions 101/102, aligned differences 67
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend_sub: local declaration order 3: instructions 101/102, aligned differences 75
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend_sub: retained: instructions 101/102, aligned differences 67
so/SOOption/SOGetInterfaceOpt: baseline: instructions 119/119, aligned differences 16
so/SOOption/SOGetInterfaceOpt: local declaration order 1: instructions 119/119, aligned differences 20
so/SOOption/SOGetInterfaceOpt: local declaration order 2: instructions 119/119, aligned differences 16
so/SOOption/SOGetInterfaceOpt: local declaration order 3: instructions 119/119, aligned differences 32
so/SOOption/SOGetInterfaceOpt: retained: instructions 119/119, aligned differences 16
so/SOOption/SOSetInterfaceOpt: baseline: instructions 74/74, aligned differences 14
so/SOOption/SOSetInterfaceOpt: local declaration order 1: instructions 74/74, aligned differences 18
so/SOOption/SOSetInterfaceOpt: local declaration order 2: instructions 74/74, aligned differences 14
so/SOOption/SOSetInterfaceOpt: local declaration order 3: instructions 74/74, aligned differences 22
so/SOOption/SOSetInterfaceOpt: retained: instructions 74/74, aligned differences 14
nhttp/d_nhttp_private/NHTTPCreateConnection: baseline: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 1: instructions 82/82, aligned differences 20
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 2: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 3: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: retained: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPDeleteConnection: baseline: instructions 103/103, aligned differences 11
nhttp/d_nhttp_private/NHTTPDeleteConnection: local declaration order 1: instructions 103/103, aligned differences 17
nhttp/d_nhttp_private/NHTTPDeleteConnection: local declaration order 2: instructions 103/103, aligned differences 36
nhttp/d_nhttp_private/NHTTPDeleteConnection: local declaration order 3: instructions 103/103, aligned differences 30
nhttp/d_nhttp_private/NHTTPDeleteConnection: retained: instructions 103/103, aligned differences 11
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: baseline: instructions 51/51, aligned differences 2
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: explicit character loads and cursor advances: instructions 51/51, aligned differences 6
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: for loop with decrement in iteration clause: instructions 51/51, aligned differences 2
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: inline lowercase comparisons with reversed operands: instructions 51/51, aligned differences 2
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: retained: instructions 51/51, aligned differences 2
nhttp/NHTTP_stdlib_RVL/NHTTPi_compareToken: baseline: instructions 44/45, aligned differences 42
nhttp/NHTTP_stdlib_RVL/NHTTPi_compareToken: evaluate left character first: instructions 44/45, aligned differences 42
nhttp/NHTTP_stdlib_RVL/NHTTPi_compareToken: loop temporaries declared outside loop: instructions 44/45, aligned differences 42
nhttp/NHTTP_stdlib_RVL/NHTTPi_compareToken: do loop with explicit repeated comparison: instructions 44/45, aligned differences 42
nhttp/NHTTP_stdlib_RVL/NHTTPi_compareToken: retained: instructions 44/45, aligned differences 42
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: baseline: instructions 72/73, aligned differences 71
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: defer zero initialization until after range guards: instructions 72/73, aligned differences 63
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: decimal digit comparison as unsigned range: instructions 71/73, aligned differences 71
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: hexadecimal digit comparison as unsigned range: instructions 71/73, aligned differences 71
nhttp/NHTTP_stdlib_RVL/NHTTPi_strToHex: retained: instructions 72/73, aligned differences 63
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: baseline: instructions 36/36, aligned differences 23
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: for loop instead of while: instructions 36/36, aligned differences 23
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: accumulate digit before multiplying contribution: instructions 36/36, aligned differences 23
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: digit range expressed as unsigned subtraction: instructions 27/36, aligned differences 36
nhttp/NHTTP_stdlib_RVL/NHTTPi_strtonum: retained: instructions 36/36, aligned differences 23
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend: baseline: instructions 43/43, aligned differences 3
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend: read ssl id directly from request: instructions 43/43, aligned differences 3
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend: ternary dispatch to ssl or socket writer: instructions 43/43, aligned differences 3
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend: defer ssl local assignment: instructions 43/43, aligned differences 3
nhttp/NHTTP_socket_RVL/NHTTPi_SocSend: retained: instructions 43/43, aligned differences 3
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: baseline: instructions 67/67, aligned differences 4
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: assign recv buffer after received local: instructions 67/67, aligned differences 4
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: use remaining data comparison first: instructions 67/67, aligned differences 6
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: accumulate received before buffer cleanup: instructions 67/67, aligned differences 25
nhttp/NHTTP_socket_RVL/NHTTPi_SocRecv_sub: retained: instructions 67/67, aligned differences 4
nhttp/NHTTP_recvbuf/NHTTPi_RecvBufN: baseline: instructions 14/15, aligned differences 11
nhttp/NHTTP_recvbuf/NHTTPi_RecvBufN: return error through explicit else branch: instructions 14/15, aligned differences 11
nhttp/NHTTP_recvbuf/NHTTPi_RecvBufN: cache receive length before range check: instructions 14/15, aligned differences 11
nhttp/NHTTP_recvbuf/NHTTPi_RecvBufN: ternary remaining length selection: instructions 14/15, aligned differences 11
nhttp/NHTTP_recvbuf/NHTTPi_RecvBufN: retained: instructions 14/15, aligned differences 11
nhttp/NHTTP_recvbuf/NHTTPi_skipSpaceHdrRecvBuf: baseline: instructions 64/62, aligned differences 57
nhttp/NHTTP_recvbuf/NHTTPi_skipSpaceHdrRecvBuf: local declaration order 1: instructions 64/62, aligned differences 57
nhttp/NHTTP_recvbuf/NHTTPi_skipSpaceHdrRecvBuf: character comparison as reversed literal operand: instructions 64/62, aligned differences 58
nhttp/NHTTP_recvbuf/NHTTPi_skipSpaceHdrRecvBuf: postincrement loop counter: instructions 64/62, aligned differences 57
nhttp/NHTTP_recvbuf/NHTTPi_skipSpaceHdrRecvBuf: retained: instructions 64/62, aligned differences 57
nhttp/NHTTP_recvbuf/NHTTPi_compareTokenN_HdrRecvBuf: baseline: instructions 127/124, aligned differences 118
nhttp/NHTTP_recvbuf/NHTTPi_compareTokenN_HdrRecvBuf: local declaration order 1: instructions 127/124, aligned differences 124
nhttp/NHTTP_recvbuf/NHTTPi_compareTokenN_HdrRecvBuf: local declaration order 2: instructions 127/124, aligned differences 118
nhttp/NHTTP_recvbuf/NHTTPi_compareTokenN_HdrRecvBuf: local declaration order 3: instructions 127/124, aligned differences 124
nhttp/NHTTP_recvbuf/NHTTPi_compareTokenN_HdrRecvBuf: retained: instructions 127/124, aligned differences 118
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: baseline: instructions 81/81, aligned differences 57
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: declare copy amount within each block: instructions 81/81, aligned differences 63
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: return early on zero length: instructions 83/81, aligned differences 67
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: remaining bytes checked as positive: instructions 81/81, aligned differences 57
nhttp/NHTTP_recvbuf/NHTTPi_loadFromHdrRecvBuf: retained: instructions 81/81, aligned differences 57
net/md5/NETMD5GetDigest: baseline: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: pair upper bytes and pair lower bytes: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: rotate words with opposite byte masks: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: pair both left shifts then both right shifts: instructions 74/74, aligned differences 4
net/md5/NETMD5GetDigest: retained: instructions 74/74, aligned differences 4
net/aes/AESiEncryptBlock: baseline: instructions 158/158, aligned differences 137
net/aes/AESiEncryptBlock: combine disjoint substituted bytes with xor: instructions 166/158, aligned differences 156
net/aes/AESiEncryptBlock: xor rotated table contributions in target operation order: instructions 158/158, aligned differences 137
net/aes/AESiEncryptBlock: cursor and statement scheduling variation: instructions 158/158, aligned differences 139
net/aes/AESiEncryptBlock: retained: instructions 158/158, aligned differences 137
net/aes/AESiDecryptBlock: baseline: instructions 241/251, aligned differences 245
net/aes/AESiDecryptBlock: combine disjoint substituted bytes with xor: instructions 249/251, aligned differences 244
net/aes/AESiDecryptBlock: xor rotated table contributions in target operation order: instructions 241/251, aligned differences 245
net/aes/AESiDecryptBlock: cursor and statement scheduling variation: instructions 241/251, aligned differences 245
net/aes/AESiDecryptBlock: retained: instructions 249/251, aligned differences 244
net/aes/NETAESCreateEx: baseline: instructions 103/108, aligned differences 82
net/aes/NETAESCreateEx: combine disjoint substituted bytes with xor: instructions 107/108, aligned differences 81
net/aes/NETAESCreateEx: cursor and statement scheduling variation: instructions 103/108, aligned differences 82
net/aes/NETAESCreateEx: retained: instructions 107/108, aligned differences 81
net/md5/NETMD5GetDigest: baseline: instructions 74/74, aligned differences 4
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 1, 2, 3) tree=0: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 1, 2, 3) tree=1: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 1, 3, 2) tree=0: instructions 74/74, aligned differences 4
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 1, 3, 2) tree=1: instructions 74/74, aligned differences 4
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 2, 1, 3) tree=0: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 2, 1, 3) tree=1: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 2, 3, 1) tree=0: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 2, 3, 1) tree=1: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 3, 1, 2) tree=0: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 3, 1, 2) tree=1: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 3, 2, 1) tree=0: instructions 74/74, aligned differences 6
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(0, 3, 2, 1) tree=1: instructions 74/74, aligned differences 8
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(1, 0, 2, 3) tree=0: instructions 74/74, aligned differences 4
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(1, 0, 2, 3) tree=1: instructions 74/74, aligned differences 4
net/md5/NETMD5GetDigest: byte-swap grouping rotate=True order=(1, 0, 3, 2) tree=0: instructions 74/74, aligned differences 0
net/md5/NETMD5GetDigest: retained: instructions 74/74, aligned differences 0
nhttp/d_nhttp_private/NHTTPCreateConnection: baseline: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 1: instructions 82/82, aligned differences 20
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 2: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 3: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 4: instructions 82/82, aligned differences 22
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 5: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 6: instructions 82/82, aligned differences 2
nhttp/d_nhttp_private/NHTTPCreateConnection: local declaration order 7: instructions 82/82, aligned differences 0
nhttp/d_nhttp_private/NHTTPCreateConnection: retained: instructions 82/82, aligned differences 0
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: baseline: instructions 51/51, aligned differences 2
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: uppercase test in descending bound order: instructions 47/51, aligned differences 50
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: zero test formed as conjunction before disjunction: instructions 47/51, aligned differences 39
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: character variables declared outside loop: instructions 51/51, aligned differences 2
nhttp/NHTTP_stdlib_RVL/NHTTPi_strnicmp: retained: instructions 51/51, aligned differences 2
net/aes/NETAESCreateEx: baseline: instructions 107/108, aligned differences 81
net/aes/NETAESCreateEx: signed shift for round count bit field: instructions 112/108, aligned differences 109
net/aes/NETAESCreateEx: advance expanded key cursor separately from index: instructions 112/108, aligned differences 109
net/aes/NETAESCreateEx: balanced xor groups for substituted schedule words: instructions 112/108, aligned differences 107
net/aes/NETAESCreateEx: retained: instructions 107/108, aligned differences 81
## Data audit
MD5, HMAC and AES pools and every owned data section pass at 100 percent.
SOBasic .data, .bss and .sdata pass at 100 percent. Its original .sbss section is 8 bytes with alignment 8; the source section is 4 bytes with alignment 8. Both contain only zero bytes. The one real flag is a 32-bit int. The extra four bytes have no independent source symbol; changing the flag width or adding another object would invent storage.
NHTTP_stdlib_RVL .data passes at 100 percent. Original .rodata is 40 bytes; the nine real decimal powers occupy 36 bytes and agree byte for byte. The final four original bytes are zero. Source .rodata is 36 bytes with alignment 8. No unsupported tenth table element was added.
The unchanged SHA1 source also has an original 32-byte versus source 28-byte interface extent, consisting of seven real words and a zero tail. It is outside this continuation's ten code units and was not changed.
These extent mismatches remain unresolved. The evidence establishes matching common bytes, not a 100-percent data match; it does not justify fabricating padding or reserved fields.
## Candidate notes
The MD5 rotate-words trial with opposite byte masks was rejected as a non-equivalent byte permutation and was not retained or counted toward the three valid source attempts. The retained byte-swap expression was independently checked with ctxdiff: 74/74 instructions and diffs 0.
NHTTPCreateConnection reached 82/82 instructions and diffs 0 with the declaration order connection, info, system, mutex.
All retained source changes improved exact-name objdiff scores in the full continuation gate. No already exact function was changed or lost. Every remaining function has at least three distinct new source trials recorded above; unchanged trials were restored.