(prot)
return [0x01, 0x02, None, 0x04, 0x10, 0x20, None, 0x40][prot]
Convert from a angr bitmask to a windows memory protection constant
Convert from a angr bitmask to a windows memory protection constant
Convert from a angr bitmask to a windows memory protection constant
def deconvert_prot(prot):
    """
    Convert from a angr bitmask to a windows memory protection constant
    """
    if prot in (2, 6):
        raise angr.errors.SimValueError("Invalid memory protection for windows process")
    return [0x01, 0x02, None, 0x04, 0x10, 0x20, None, 0x40][prot]
def deconvert_prot ( prot ) : if prot in ( 2 , 6 ) : raise angr . errors . SimValueError ( "Invalid memory protection for windows process" ) return [ 0x01 , 0x02 , None , 0x04 , 0x10 , 0x20 , None , 0x40 ] [ prot ]