Tags: reversing 

Rating: 0

# Used Ghidra to disasemble and decompile the complete file.
# The flag is decoded by the function 'printFlag'
# Just simply copy the pseudo-decompiled-C code, and use it to print our flag ==>

#include "stdio.h"
#include "stdint.h"

void printFlag(char *param_1)
{
char *__dest;
size_t sVar1;
int local_30;

__dest = (char *)malloc(0x40);
memset(__dest,0,0x40);
strcpy(__dest,param_1);
sVar1 = strlen(__dest);
local_30 = 0;
while (local_30 < (int)sVar1) {
__dest[local_30] = (char)((int)((((int)__dest[local_30] ^ 0xfU) - 0x1d) * 8) % 0x5f) + ' ';
local_30 = local_30 + 1;
}
puts(__dest);
return;
}

int main()
{
printFlag("\\PJ\\fC|)L0LTw@Yt@;Twmq0Lw|qw@w2$a@0;w|)@awmLL|Tw|)LwZL2lhhL0k");
return 0;
}