Untitled

mail@pastecode.io avatar
unknown
c_cpp
17 days ago
1.2 kB
80
Indexable
Never
int64_t __convention("gocall") main.a(char* checksum, int64_t checksum_size)
    void* r14
    
    if (&__return_addr u<= *(r14 + 0x10))
        checksum_1 = checksum
        checksum_size_1 = checksum_size
        runtime.morestack_noctxt()
        noreturn
    
    checksum_1 = checksum
    
    if (checksum == 0)
        checksum = &runtime.noptrbss
    
    char* challenge_hash = runtime.makeslice(&buf, checksum_size, checksum_size)
    
    for (int64_t idx = 0; checksum_size s> idx; idx += 1)
        int64_t rax_1
        int64_t rdx_2
        multiplied:rax_1 = muls.dp.q(0x5d1745d1745d1746, idx)
        int64_t key_idx = idx - (multiplied s>> 2) * 0xb
        
        if (key_idx u>= 11)
            runtime.panicIndex(key_idx, idx, 0xb)
            noreturn
        
        challenge_hash[idx] = checksum[idx] ^ "FlareOn2024"[key_idx]
    
    void* base64_encoded_hash
    int64_t err
    base64_encoded_hash, err = encoding/base64.(*Encoding).EncodeToString(encoding/base64.StdEncoding, challenge_hash, checksum_size)
    
    if (err == 0x58)
        return runtime.memequal(base64_encoded_hash, "cQoFRQErX1YAVw1zVQdFUSxfAQNRBXUN…", 0x58)
    
    return 0
Leave a Comment