Skip to main content
Back to challenges

Malware Development · Programming

Implement API Hashing Resolver

Advanced · 4/5
Paid planSpecialist rank required100 points on first solo solve

Challenge brief

Implement a function name resolver using the ROR13 hashing algorithm commonly used in shellcode.

ROR13 Algorithm

hash = 0
for each char in string:
    hash = ror(hash, 13)
    hash += char

Where ror(value, bits) rotates right within 32 bits.

Given a hash and a list of API names, find the matching function.

Input

Line 1: Target hash (hex, e.g., 0x7c0dfcaa) Line 2: Comma-separated function names

Output

The matching function name or "NOT_FOUND"

Solo practice

Sign in to submit an answer and save your progress.

Sign in to practice