from idautils import *
from idaapi import *

'''
l = XrefsTo(0x100163CC) # gethostbyname
sum = 0
print "------"

for xref in l:
    sum += 1
    print XrefTypeName(xref.type),                          'from', hex(xref.frm), 'to', hex(xref.to)
    
print "sum is %d"%sum


addr = 0x1000D02E

for x in Functions():
    l = XrefsTo(x)
    for xref in l:
        if get_func_name(xref.frm) == get_func_name(addr):
            print get_func_name(x)
            break

addr = 0x100192AC

print Byte(addr+13)
'''

addr = 0x10010000
for i in range(0x6000):
    if Byte(addr+i) == 0xed:
        print hex(addr+i)
    #print code