This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "binio" | |
local caddr, daddr, log | |
os.execute("mkdir dumps_dir") | |
logpath = "dumps_dir\\data.log" | |
dumppath = "dumps_dir\\dump_%06X.bin" | |
local START_ADDR_1 = 0x1C6DEE | |
local END_ADDR_1 = 0x1C6F4A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <ida.hpp> | |
#include <kernwin.hpp> | |
#include <diskio.hpp> | |
#include <regex> | |
#include "ida_fd.h" | |
#include "sysdeps.h" | |
#include "memory.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for seg_ea in Segments(): | |
for ea in Heads(seg_ea, get_segm_end(seg_ea)): | |
if is_code(get_full_flags(ea)): | |
n = 0 | |
while n < 6: | |
t = get_operand_type(ea, n) | |
if (t == -1): | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import path | |
PAL_MASK_L = 0xF1 | |
PAL_MASK_R = 0x11 | |
PAL_SIZE = 16 * 2 | |
PAL_THRESHOLD = 10 | |
def find_palette(data, count=4): | |
l = len(data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATTERN = '? 7C ? ? ? ? 00 20' | |
ea = 0 | |
old = list() | |
while True: | |
ea = FindBinary(ea, SEARCH_DOWN, PATTERN) | |
if ea == BADADDR: | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open('rnc_list.txt', 'r') as f: | |
lines = f.readlines() | |
for line in lines: | |
line = line.rstrip() | |
# RNC archive found: 0x01aea8 (010054/017280 bytes) | |
offset = int(line[19:19+8].replace('0x', ''), 16) | |
csize = int(line[29:29+6]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sega | |
OpOffEx(0x6560, 0, REF_OFF32, -1, 0, -4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import struct | |
def calc_crc(data): | |
crc = 0 | |
for i in xrange(0x200, 0x40000, 2): | |
w = struct.unpack_from('>H', data, i)[0] | |
crc = (crc + w) & 0xFFFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table = 0x20000 | |
item_size = 3 * 4 | |
table_end = Dword(table + 2) + table | |
items = (table_end - table + 2) // item_size | |
print 'Items count = %d' % items | |
for i in xrange(items): | |
item_addr = table + 2 + item_size * i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2012 the V8 project authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
// This file defines all of the flags. It is separated into different section, | |
// for Debug, Release, Logging and Profiling, etc. To add a new flag, find the | |
// correct section, and use one of the DEFINE_ macros, without a trailing ';'. | |
// | |
// This include does not have a guard, because it is a template-style include, | |
// which can be included multiple times in different modes. It expects to have |
OlderNewer