Skip to content

Instantly share code, notes, and snippets.

[013] - Weedle
[014] - Kakuna
[015] - Beedrill
[016] - Pidgey
[017] - Pidgeotto
[018] - Pidgeot
[019] - Rattata
[020] - Raticate
[021] - Spearow
[022] - Fearow
This file has been truncated, but you can view the full file.
======
001 - Bulbasaur (Stage: 1)
======
Galar Dex: Foreign
Base Stats: 45.49.49.65.65.45 (BST: 318)
EV Yield: 0.0.0.1.0.0
Gender Ratio: 31
Catch Rate: 45
Abilities: Overgrow (1) | Overgrow (2) | Chlorophyll (H)
Type: Grass / Poison
//
// +-------------------------------------------------------------------------+
// | This file was generated by The Interactive Disassembler (IDA) |
// | Copyright (c) 2020 Hex-Rays, <support@hex-rays.com> |
// +-------------------------------------------------------------------------+
//
//
// This file should be used in the following way:
// - reload executable into IDA with using switch -c
// - use File, Load IDC file and load this file.
This file has been truncated, but you can view the full file.
//
// +-------------------------------------------------------------------------+
// | This file was generated by The Interactive Disassembler (IDA) |
// | Copyright (c) 2019 Hex-Rays, <support@hex-rays.com> |
// +-------------------------------------------------------------------------+
//
//
// This file should be used in the following way:
// - reload executable into IDA with using switch -c
// - use File, Load IDC file and load this file.
from idautils import *
from idaapi import *
from ida_name import *
from idc import *
from ida_hexrays import *
from ida_frame import *
from ida_struct import *
INHERITANCE = {
# Auto Object base classes.
#define UNLOADED_FILE 1
#include <idc.idc>
static main(void)
{
// set 'loading idc file' mode
set_inf_attr(INF_GENFLAGS, INFFL_LOADIDC|get_inf_attr(INF_GENFLAGS));
GenInfo(); // various settings
Segments(); // segmentation
Enums(); // enumerations
from Crypto.Cipher import AES
import json, string, zlib, hashlib
# NOTE: You must set these as global variables ahead of time.
# TODO: Accept as parameters to API, have a stateful class or something
server_secret = ''
client_secret = ''
# Usage notes:
# Initially, communications only have request crypto, and payloads are plaintext gzip
pml::pokepara::Accessor function notes, Sword 1.1.0 -> HOME 1.0.0
Added functions in HOME 1.0.0:
void pml::pokepara::Accessor::SetBlockD_3D(uint64_t value) // Sets unknown 64-bit identifier
uint64_t pml::pokepara::Accessor::GetBlockD_3D() const // Gets unknown 64-bit identifier
void pml::pokepara::Accessor::SetHtID(uint16_t id) // Sets the handler trainer ID
void pml::pokepara::Accessor::SetRibbonValues(uint32_t a, uint32_t b) // Sets ribbon A and ribbon B directly
void pml::pokepara::Accessor::SetLumpRibbon(uint32_t which, uint32_t val) // Sets either lump A or lump B to val
uint8_t pml::pokepara::Accessor::GetBlockIndex(uint32_t encryption_constant, uint32_t which) const // Gets the index of a shuffled block, used to access older pml library blocks
@SciresM
SciresM / kernel_svc_tables.py
Last active September 4, 2020 05:23
Script for automatically identifying + labeling the Nintendo Switch SVC tables.
from idautils import *
from idaapi import *
from idc import *
from ida_hexrays import *
from ida_bytes import *
from ida_funcs import *
SVC_MAPPINGS = {
0x01 : ("SetHeapSize", "Result %s(uintptr_t *out_address, size_t size);"),
0x02 : ("SetMemoryPermission", "Result %s(uintptr_t address, size_t size, MemoryPermission perm);"),
from idautils import *
from idaapi import *
from idc import *
from ida_hexrays import *
START_100 = 0x7100770C10
END_100 = 0x710077FC60
START_110 = 0x7100770E30