Skip to content

Instantly share code, notes, and snippets.

@Auscitte
Auscitte / ServerDllInitialization_snowman.c
Created November 27, 2020 18:57
basesrv::ServerDllInitialization() decompiled by snowman plugin for radare2
struct s0 {
struct s0* f0;
signed char[3] pad4;
struct s0* f4;
signed char[1] pad6;
uint16_t f6;
struct s0* f8;
signed char[3] pad12;
struct s0* f12;
signed char[3] pad16;
@Auscitte
Auscitte / ServerDllInitialization_ghidra.c
Created November 27, 2020 18:52
basesrv::ServerDllInitialization() decompiled by ghidra plugin for radare2
// WARNING: Could not reconcile some variable overlaps
// WARNING: Unknown calling convention yet parameter storage is locked
// WARNING: [r2ghidra] Matching calling convention amd64 of function ServerDllInitialization failed, args may be
// inaccurate.
// WARNING: [r2ghidra] Var arg_10h is stack pointer based, which is not supported for decompilation.
// WARNING: [r2ghidra] Var arg_18h is stack pointer based, which is not supported for decompilation.
// WARNING: [r2ghidra] Var arg_20h is stack pointer based, which is not supported for decompilation.
// WARNING: [r2ghidra] Matching calling convention amd64 of function pdb.RtlStringCchPrintfW failed, args may be
// inaccurate.
@Auscitte
Auscitte / gdata.py
Last active July 9, 2021 18:09
Retrieving types and variables from a pdb file
# This file is a copy of gdata.py from pdbparse library ver. 1.5
# (see https://github.com/moyix/pdbparse)
# with a few mofifications that are necessary for my scripts to work correctly
# Ry Auscitte
# Python 2 and 3
from construct import *
gsym = Struct(