def GetEntryPoint(payload_file):
    'Read entry point from payload EC image.'
    with open(payload_file, 'rb') as f:
        f.seek(4)
        s = f.read(4)
    return struct.unpack('<I', s)[0]
Read entry point from payload EC image.
def GetEntryPoint(payload_file):
    
    with open(payload_file, 'rb') as f:
        f.seek(4)
        s = f.read(4)
    return struct.unpack('<I', s)[0]