CodeEngn Logo

Challenges : Malware 03


Author : CodeEngn

Korean :
다음은 악성코드 소스의 일부분이다.
무엇을 하는 함수인가
(정답은 모두 소문자, 띄어쓰기 없음)

English :
This file is a source code of a malware
What does this function do
(Answer must be all in lowercase, with no spaces)

u_short Malware_L03(u_short * data,u_short length) 
{
        register long value;
        u_short i;
        for(i=0;i<(length>>1);i++)
                value+=data[i];
        if((length&1)==1)
                value+=(data[i]<<8);
        value=(value&65535)+(value>>16);
        return(~value);
}


Linode is a privately owned virtual private server provider based in Galloway, New Jerse