def parse_acl(input_buffer):
    """
    Parses ACL from SDDL.

    Returns a list of ACEs.
    """
    out = dict()
    fields = ("Revision", "Size", "Num ACEs")

    for k, v in zip(fields, unpack("<HHI", input_buffer[:8])):
        out[k] = v

    out["ACEs"] = parse_aces(input_buffer[8 : 8 + out["Size"]], out["Num ACEs"])
    return out

    Parses ACL from SDDL.

    Returns a list of ACEs.
    
ldeep/utils/sddl.py