How to integrate MSDM-table in UEFI-bios?

Discussion in 'BIOS Mods' started by Lutschpuppe, Jan 21, 2024.

  1. Lutschpuppe

    Lutschpuppe MDL Member

    Dec 23, 2014
    228
    61
    10
  2. Lutschpuppe

    Lutschpuppe MDL Member

    Dec 23, 2014
    228
    61
    10
    #2 Lutschpuppe, Jan 22, 2024
    Last edited: Jan 22, 2024
    (OP)
    Success! :cool:

    I compared 2 different OA3-PE-images in IDA and found some similarities, but wasn't able to find the location for key-insertion or structure. Fortunately, i have the matching bios-dump containing the correct structure, so it might work to copy it to the right offset.

    This is what i found in IDA Pro:
    ida-pro.JPG

    Corresponding RW-report after modding my own machine, i added a generic key for MS Windows 10 Pro:
    rw-msdm.JPG

    The key-string has to be added inside padding-area (AMI-bios), address found in IDA:
    uefi-tool-padding.JPG
    Take care to find the correct offset ; my first attempt was also succesful, but the address was not at the beginning of pad-area, because i worked with rom with empty NVRAM, so the free space was added on-top to the whole padding-area and i had to calculate the offset inside the pad-area.

    I don't know if this mod is permanent and will survive updates, but i guess it will.
    I'm sure most AMI-bios containing the same or similar OA3-module could be modded this way.
     
  3. Voltolini

    Voltolini MDL Novice

    Mar 13, 2024
    3
    0
    0
    Hi! Sorry if I'm noob on this, but should I be able to inject a windows product key on BIOS using this method? I have an AMI DS200913 and I've been looking for a way to inject the product key in this one computer for a few days, but no success so far.
     
  4. Lutschpuppe

    Lutschpuppe MDL Member

    Dec 23, 2014
    228
    61
    10
    Perhaps, if yours has the same structure.

    But there are countless methods to integrate MSDM (or something else) to bios code, so my findings will only cover a very small part.
     
  5. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,970
    913
    60
    What is the purpose of injecting these keys? 3V66T is the standard Pro Retail key which ships in the ISO's as default. The only keys that need to be injected are unused OEM-DM (OA3) keys that windows reads during installation.
    Each manufacturer uses their own tools along with the Microsoft OA3Tools from the ADK.
    ie, Gigabyte uses WinOA30_64, Asus uses SLPBuilderX64, MSI uses OA30W_64, etc
    I think these are customized AMI Tools...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Voltolini

    Voltolini MDL Novice

    Mar 13, 2024
    3
    0
    0

    In my case, a client has asked for this key and he can't be convinced otherwise. I think he wants to have the possibility of, after formatting his computer, to not need to look in the tag for the windows key, but he really only asked me for the "wmic path softwarelicensingservice get oa3originalproductkey" command to return his product key. I've been looking for a solution for a whole week now and can't find a way to inject this BIOS with the product key. I have the computer, the COEM key, and I already have the xml and bin from AO3 for checking with Microsoft, but I can't seem to find a way to injet the windows key on the BIOS.
     
  7. Lutschpuppe

    Lutschpuppe MDL Member

    Dec 23, 2014
    228
    61
    10
    Please upload the bios or post the link to the factory bios.
     
  8. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,970
    913
    60
    The 1st time you go online and Windows get's activated with the "COEM key ", a hardware ID has been established on the Microsoft Activation Server. The next time you re-install from the ISO, it will activate with the default Retail key that's bundled with the OS.
    ie, the 3V66T Retail key. You don't need to re-enter the COEM key...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,970
    913
    60
    Is this an Intel NUC? Your probably better off looking at a full bios not a partial from the dump.
    They should be at ASUS for download as Intel no longer do them...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,970
    913
    60
    If this is an Intel Nuc your better off looking at the full bios , not the partial dump. You should be able to find it at ASUS...
    Code:
    Intel® AptioV Integrator Tools are designed to assist integrators (who usually work in manufacturing or enterprise environments) with the process of BIOS/SMBIOS customization, OEM Windows* product key injection (OEM Activation 3.0, OA3), changing the Logo, etc. for Intel® NUC AptioV based products.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. haber123

    haber123 MDL Junior Member

    Nov 5, 2009
    57
    22
    0
    This is most informative. Reading on Intel's tool “-o” is the flag for the OEM Windows Product Key Injection feature.

    Is this how Deleted member's "EzWindSLIC" work?