parameters: (executable)
return_statement: return (bits & reqbits) == reqbits
docstring: PIE: DllCharacteristics bit 0x20 signifies high-entropy ASLR
docstring_summary: PIE: DllCharacteristics bit 0x20 signifies high-entropy ASLR
docstring_tokens: PIE : DllCharacteristics bit 0x20 signifies high - entropy ASLR
function: def check_PE_HIGH_ENTROPY_VA(executable):
      '''PIE: DllCharacteristics bit 0x20 signifies high-entropy ASLR'''
      (arch,bits) = get_PE_dll_characteristics(executable)
      if arch == 'i386:x86-64':
          reqbits = IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA
      else: # Unnecessary on 32-bit
          assert(arch == 'i386')
          reqbits = 0
      return (bits & reqbits) == reqbits
function_tokens: def check_PE_HIGH_ENTROPY_VA ( executable ) : ( arch , bits ) = get_PE_dll_characteristics ( executable ) if arch == 'i386:x86-64' : reqbits = IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA else : # Unnecessary on 32-bit assert ( arch == 'i386' ) reqbits = 0 return ( bits & reqbits ) == reqbits