Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void GetHWID(byte *hwidBuffer)
- {
- short sVar1;
- char cVar2;
- int iVar3;
- ulonglong NetworkAdapter;
- short *psVar5;
- ushort uVar6;
- undefined auStack1656 [32];
- undefined *puStack1624;
- undefined *puStack1616;
- undefined *puStack1608;
- undefined4 uStack1600;
- int garbage;
- uint HDDSerialBuffer;
- undefined auStack1584 [4];
- undefined auStack1580 [4];
- undefined auStack1576 [6];
- undefined2 uStack1570;
- undefined uStack1568;
- uint uStack1567;
- undefined uStack1563;
- undefined uStack1562;
- undefined uStack1561;
- undefined cWindowsDir [3];
- undefined uStack1557;
- undefined auStack1048 [512];
- undefined auStack536 [512];
- ulonglong uStack24;
- ulonglong uVar4;
- uint HDDSerial;
- uStack24 = _DAT_18000f000 ^ (ulonglong)auStack1656;
- uVar4 = 0;
- auStack1576[0] = 0;
- auStack1576._1_5_ = 0;
- uStack1570 = 0;
- uStack1568 = 0;
- uStack1567 = 0;
- uStack1563 = 0;
- uStack1562 = 0;
- uStack1561 = 0;
- garbage = 0;
- iVar3 = GetAdaptersInfo(0,&garbage);
- NetworkAdapter = uVar4;
- if ((iVar3 == 0x6f) && (garbage != 0)) {
- NetworkAdapter = func_0x000180005d88(garbage);
- iVar3 = GetAdaptersInfo(NetworkAdapter,&garbage);
- if (iVar3 != 0) {
- func_0x000180005d48(NetworkAdapter);
- NetworkAdapter = 0;
- }
- }
- cVar2 = func_0x000180001020(NetworkAdapter,6,auStack1576);
- if (cVar2 == '\0') {
- func_0x000180001020(NetworkAdapter,0x47,auStack1576);
- }
- if (NetworkAdapter != 0) {
- func_0x000180005d48(NetworkAdapter);
- }
- GetWindowsDirectoryA(cWindowsDir,0x200);
- uStack1600 = 0x200;
- puStack1608 = auStack1048;
- puStack1616 = auStack1580;
- puStack1624 = auStack1584;
- uStack1557 = 0;
- iVar3 = GetVolumeInformationA(cWindowsDir,auStack536,0x200,&HDDSerialBuffer);
- HDDSerial = CONCAT13((undefined)uStack1567,CONCAT12(uStack1568,uStack1570));
- if (iVar3 == 1) {
- HDDSerial = HDDSerialBuffer;
- }
- uStack1570 = (undefined2)HDDSerial;
- uStack1568 = (undefined)(HDDSerial >> 0x10);
- uStack1567 = uStack1567 & 0xffffff00 | HDDSerial >> 0x18;
- psVar5 = (short *)auStack1576;
- NetworkAdapter = uVar4;
- do {
- sVar1 = (short)uVar4;
- HDDSerial = (int)uVar4 + 1;
- uVar4 = (ulonglong)HDDSerial;
- uVar6 = (short)NetworkAdapter + (sVar1 + 3) * *psVar5;
- NetworkAdapter = (ulonglong)uVar6;
- psVar5 = psVar5 + 1;
- } while (HDDSerial < 6);
- uStack1562 = (undefined)uVar6;
- uStack1561 = (undefined)(uVar6 >> 8);
- *(ulonglong *)hwidBuffer = CONCAT26(uStack1570,CONCAT51(auStack1576._1_5_,auStack1576[0]));
- *(ulonglong *)(hwidBuffer + 8) =
- CONCAT17(uStack1561,CONCAT16(uStack1562,CONCAT15(uStack1563,CONCAT41(uStack1567,uStack1568)))
- );
- func_0x000180005e50(uStack24 ^ (ulonglong)auStack1656);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement