Function at 0x402f00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, ecx
shr edx, 4
xor edx, eax
and edx, 0xf0f0f0f
xor eax, edx
shl edx, 4
xor ecx, edx
mov edx, eax
shr edx, 0x10
xor edx, ecx
and edx, 0xffff
xor ecx, edx
shl edx, 0x10
xor eax, edx
mov edx, ecx
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor ecx, edx
mov edx, eax
shr edx, 8
xor edx, ecx
and edx, 0xff00ff
xor ecx, edx
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 1
xor edx, eax
and edx, 0x55555555
xor eax, edx
add edx, edx
xor edx, ecx
rol edx, 1
rol eax, 1
cmp dword [esp + 0x18], 0
mov esi, eax
je 0x4030aa
lea ebx, [edi + 8]
mov dword [esp + 0x18], 8
mov edi, edi
mov edi, dword [ebx - 4]
mov ecx, dword [ebx - 8]
xor edi, esi
mov eax, edi
shr edi, 4
xor ecx, esi
shl eax, 0x1c
add eax, edi
mov edi, ecx
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x472400]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472200]
mov ebp, ecx
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472000]
mov ebp, eax
shr ebp, 0x18
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472500]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472300]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472100]
and ecx, 0x3f
or edi, dword [ecx*4 + 0x471e00]
mov ecx, dword [ebx]
and eax, 0x3f
or edi, dword [eax*4 + 0x471f00]
add ebx, 0x10
xor edx, edi
mov edi, dword [ebx - 0xc]
xor edi, edx
mov eax, edi
shr edi, 4
xor ecx, edx
shl eax, 0x1c
add eax, edi
mov edi, ecx
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x472400]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472200]
mov ebp, ecx
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472000]
mov ebp, eax
shr ebp, 0x18
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472500]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472300]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472100]
and ecx, 0x3f
or edi, dword [ecx*4 + 0x471e00]
and eax, 0x3f
or edi, dword [eax*4 + 0x471f00]
xor esi, edi
sub dword [esp + 0x18], 1
jne 0x402f90
jmp 0x4031ca
lea ebx, [edi + 0x70]
mov dword [esp + 0x18], 8
mov edi, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
xor edi, esi
mov eax, edi
shr edi, 4
xor ecx, esi
shl eax, 0x1c
add eax, edi
mov edi, ecx
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x472400]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472200]
mov ebp, ecx
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472000]
mov ebp, eax
shr ebp, 0x18
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472500]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472300]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472100]
and ecx, 0x3f
or edi, dword [ecx*4 + 0x471e00]
mov ecx, dword [ebx]
and eax, 0x3f
or edi, dword [eax*4 + 0x471f00]
sub ebx, 0x10
xor edx, edi
mov edi, dword [ebx + 0x14]
xor edi, edx
mov eax, edi
shr edi, 4
xor ecx, edx
shl eax, 0x1c
add eax, edi
mov edi, ecx
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x472400]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472200]
mov ebp, ecx
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472000]
mov ebp, eax
shr ebp, 0x18
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472500]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472300]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or edi, dword [ebp*4 + 0x472100]
and ecx, 0x3f
or edi, dword [ecx*4 + 0x471e00]
and eax, 0x3f
or edi, dword [eax*4 + 0x471f00]
xor esi, edi
sub dword [esp + 0x18], 1
jne 0x4030b5
ror edx, 1
ror esi, 1
mov eax, esi
shr eax, 1
xor eax, edx
and eax, 0x55555555
xor edx, eax
add eax, eax
xor esi, eax
mov eax, edx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor esi, eax
shl eax, 8
xor edx, eax
mov eax, esi
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
lea ecx, [eax*4]
xor esi, ecx
mov ecx, dword [esp + 0x14]
mov eax, edx
shr eax, 0x10
xor eax, esi
and eax, 0xffff
xor esi, eax
shl eax, 0x10
xor edx, eax
mov eax, esi
shr eax, 4
xor eax, edx
and eax, 0xf0f0f0f
mov edi, eax
xor edi, edx
mov dword [ecx], edi
pop edi
shl eax, 4
xor eax, esi
pop esi
pop ebp
mov dword [ecx + 4], eax
pop ebx
ret