Function at 0x401520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 0xc], eax
push ebx
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + 4]
mov eax, edi
shr eax, 4
xor eax, esi
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor edi, eax
mov eax, esi
shr eax, 0x10
xor eax, edi
movzx eax, ax
xor edi, eax
shl eax, 0x10
xor esi, eax
mov eax, edi
shr eax, 2
xor eax, esi
and eax, 0x33333333
xor esi, eax
shl eax, 2
xor edi, eax
mov eax, esi
shr eax, 8
xor eax, edi
and eax, 0xff00ff
xor edi, eax
shl eax, 8
xor esi, eax
mov ecx, edi
shr ecx, 1
xor ecx, esi
and ecx, 0x55555555
mov eax, ecx
xor eax, esi
ror eax, 0x1d
lea ebx, [ecx + ecx]
xor ebx, edi
ror ebx, 0x1d
cmp dword [ebp + 8], 0
je 0x4017c4
lea ecx, [edx + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 4], ecx
nop
mov esi, dword [ecx - 4]
mov edi, dword [ecx - 8]
xor esi, eax
ror esi, 4
xor edi, eax
mov edx, esi
mov ecx, esi
shr ecx, 0xa
and ecx, 0x3f
shr edx, 0x12
and edx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov esi, dword [ebp - 4]
xor ebx, edx
mov edi, dword [esi]
mov esi, dword [esi + 4]
xor edi, ebx
xor esi, ebx
ror esi, 4
mov edx, esi
mov ecx, esi
shr ecx, 0xa
shr edx, 0x12
and ecx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov ecx, dword [ebp - 4]
xor eax, edx
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
xor esi, eax
ror esi, 4
xor edi, eax
mov edx, esi
mov ecx, esi
shr edx, 0x12
shr ecx, 0xa
and edx, 0x3f
and ecx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov ecx, dword [ebp - 4]
xor ebx, edx
mov esi, dword [ecx + 0x14]
mov edi, dword [ecx + 0x10]
xor esi, ebx
ror esi, 4
xor edi, ebx
mov edx, esi
mov ecx, esi
shr ecx, 0xa
and ecx, 0x3f
shr edx, 0x12
and edx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov ecx, dword [ebp - 4]
xor eax, edx
add ecx, 0x20
sub dword [ebp - 8], 1
mov dword [ebp - 4], ecx
jne 0x4015b0
jmp 0x4019e0
lea ecx, [edx + 0x70]
mov dword [ebp - 8], 4
mov dword [ebp - 4], ecx
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
xor esi, eax
ror esi, 4
xor edi, eax
mov edx, esi
mov ecx, esi
shr ecx, 0xa
and ecx, 0x3f
shr edx, 0x12
and edx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov esi, dword [ebp - 4]
xor ebx, edx
mov edi, dword [esi]
mov esi, dword [esi + 4]
xor edi, ebx
xor esi, ebx
ror esi, 4
mov edx, esi
mov ecx, esi
shr ecx, 0xa
shr edx, 0x12
and ecx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov ecx, dword [ebp - 4]
xor eax, edx
mov esi, dword [ecx - 4]
mov edi, dword [ecx - 8]
xor esi, eax
ror esi, 4
xor edi, eax
mov edx, esi
mov ecx, esi
shr edx, 0x12
shr ecx, 0xa
and edx, 0x3f
and ecx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov ecx, dword [ebp - 4]
xor ebx, edx
mov esi, dword [ecx - 0xc]
mov edi, dword [ecx - 0x10]
xor esi, ebx
ror esi, 4
xor edi, ebx
mov edx, esi
mov ecx, esi
shr ecx, 0xa
and ecx, 0x3f
shr edx, 0x12
and edx, 0x3f
mov edx, dword [edx*4 + 0x462bc0]
xor edx, dword [ecx*4 + 0x4629c0]
mov ecx, esi
shr ecx, 2
and ecx, 0x3f
shr esi, 0x1a
xor edx, dword [ecx*4 + 0x4627c0]
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x462ac0]
mov ecx, edi
shr ecx, 0xa
and ecx, 0x3f
xor edx, dword [ecx*4 + 0x4628c0]
mov ecx, edi
shr ecx, 2
and ecx, 0x3f
shr edi, 0x1a
xor edx, dword [ecx*4 + 0x4626c0]
xor edx, dword [esi*4 + 0x462dc0]
xor edx, dword [edi*4 + 0x462cc0]
mov ecx, dword [ebp - 4]
xor eax, edx
sub ecx, 0x20
sub dword [ebp - 8], 1
mov dword [ebp - 4], ecx
jne 0x4017d1
ror eax, 3
ror ebx, 3
mov ecx, eax
shr ecx, 1
xor ecx, ebx
mov esi, dword [ebp - 0xc]
and ecx, 0x55555555
xor ebx, ecx
add ecx, ecx
xor eax, ecx
mov ecx, ebx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ebx, ecx
mov ecx, eax
shr ecx, 2
xor ecx, ebx
and ecx, 0x33333333
xor ebx, ecx
shl ecx, 2
xor eax, ecx
mov ecx, ebx
shr ecx, 0x10
xor ecx, eax
movzx ecx, cx
xor eax, ecx
shl ecx, 0x10
xor ebx, ecx
mov edx, eax
shr edx, 4
xor edx, ebx
and edx, 0xf0f0f0f
mov ecx, edx
shl edx, 4
xor ecx, ebx
xor edx, eax
pop edi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret