Skip to content

Instantly share code, notes, and snippets.

@odzhan
odzhan / bce32.asm
Last active September 20, 2021 19:57
Benny's Compression Engine
; млллллм млллллм млллллм
; кФ Benny's Compression Engine for Win32 ФП ллл ллл ллл ллл ллл ллл
; Г by Г мммллп плллллл ллллллл
; РФФФФФФФФФФФФФ Benny / 29A ФФФФФФФФФФФФФФй лллмммм ммммллл ллл ллл
; ллллллл ллллллп ллл ллл
;
;
;
;Hello everybody,
;
@odzhan
odzhan / bnce32.asm
Created December 7, 2019 14:50
Bit Nibble Compression Engine
; BNCE - BlueOwls Nibble Compression Engine
; *****************************************
;
; Introduction
; ************
;
; I made this engine for virusses which want to use some algorithm to make
; themselves or something else smaller (obviously), but i wanted the
; algorithm to be small too, because if it isn't it would have little use
@odzhan
odzhan / lzce32.asm
Last active November 18, 2021 18:56
LZCE32 Compression Engine
;
; LZCE32 by Sexy Dufus released in ca. 2000
;
; disassembly by odzhan
; 12-07-2019
;
; Compression ratio is typically ~36% for 1MB EXE
bits 32
@odzhan
odzhan / jqwerty.c
Created December 7, 2019 09:09
Jacky Qwerty/29A Compression Algorithm
//
// Jacky Qwerty/29A compression algorithm, by Matt Mahoney
// modified by odzhan
// 2019-12-07
//
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
@odzhan
odzhan / kitty.c
Created December 7, 2019 08:56
KITTY Compression Algorithm
//
// KITTY compression algorithm, by snowcat
// converted to C, by odzhan
// 2019-12-07
//
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
@odzhan
odzhan / winflate.c
Last active March 30, 2024 01:39
Deflate Compression On Windows
/**
BSD 3-Clause License
Copyright (c) 2019 Odzhan. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
@odzhan
odzhan / xpress.c
Last active May 25, 2025 04:58
Xpress Compression Utility
/**
BSD 3-Clause License
Copyright (c) 2019 Odzhan. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
// DYNAMIC HUFFMAN ENCODING
// copyright (c) 1998 by Z0MBiE/29A
// 28-12-98 15:10:33
//
// 26-11-2019 - added code to test compression ratio.
// typically ~20% for a 1MB EXE file
// odzhan
//
#include <stdint.h>
#include <stdio.h>
@odzhan
odzhan / hash_file.c
Last active October 18, 2020 03:53
Derive a cryptographic hash from file using Windows Crypto API
/**
BSD 3-Clause License
Copyright (c) 2016 Odzhan. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
@odzhan
odzhan / base64_encode.c
Last active October 18, 2020 03:53
Compact implementation of Base64 encoding in C
/**
BSD 3-Clause License
Copyright (c) 2019 Odzhan. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.