Function at 0x401330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 0x20]
push ebx
push esi
mov esi, dword [ecx + 0x24]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], 1
mov ebx, dword [edi]
mov edx, dword [edi + 4]
xor eax, ebx
mov ebx, dword [ecx + 0x28]
xor edx, esi
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
xor esi, ebx
mov ebx, dword [ecx + 0x2c]
mov dword [ebp - 0xc], esi
xor edi, ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 5]
mov ebx, dword [ebp - 0xa]
and edi, 0xff
and ebx, 0xff
and eax, 0xff
and edx, 0xff
mov edi, dword [edi*4 + 0x44dd90]
and esi, 0xff
xor edi, dword [ebx*4 + 0x44d990]
mov ebx, dword [ebp - 0xf]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44d590]
mov ebx, dword [eax*4 + 0x44d190]
mov eax, dword [ebp + 0xc]
xor edi, ebx
mov ebx, dword [ebp - 6]
mov dword [eax], edi
mov edi, dword [ebp - 0x11]
and edi, 0xff
and ebx, 0xff
mov edi, dword [edi*4 + 0x44dd90]
xor edi, dword [ebx*4 + 0x44d990]
mov ebx, dword [ebp - 0xb]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44d590]
mov ebx, dword [edx*4 + 0x44d190]
mov edx, dword [ebp - 0xd]
xor edi, ebx
and edx, 0xff
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x12]
mov edx, dword [edx*4 + 0x44dd90]
and edi, 0xff
mov ebx, dword [edi*4 + 0x44d990]
mov edi, dword [ebp - 7]
and edi, 0xff
xor edx, ebx
mov ebx, dword [edi*4 + 0x44d590]
mov edi, dword [esi*4 + 0x44d190]
xor edx, ebx
mov esi, dword [ebp - 0xe]
xor edx, edi
and esi, 0xff
mov dword [eax + 8], edx
mov edx, dword [ebp - 9]
mov ebx, dword [esi*4 + 0x44d990]
and edx, 0xff
mov edi, dword [edx*4 + 0x44dd90]
mov edx, dword [ebp - 0x13]
and edx, 0xff
xor edi, ebx
mov ebx, dword [edx*4 + 0x44d590]
mov edx, dword [ebp - 8]
and edx, 0xff
xor edi, ebx
xor edi, dword [edx*4 + 0x44d190]
mov dword [eax + 0xc], edi
mov edx, dword [ecx + 0x1c]
dec edx
cmp edx, 1
jbe 0x4015f0
lea edi, [ecx + 0x34]
mov dword [ebp + 0xc], edi
mov edx, dword [edi - 4]
mov esi, dword [eax]
mov ebx, dword [edi]
xor edx, esi
mov esi, dword [eax + 4]
mov dword [ebp - 0x14], edx
xor esi, ebx
mov ebx, dword [edi + 4]
xor ebx, dword [eax + 8]
mov edi, dword [edi + 8]
mov dword [ebp - 0x10], esi
and edx, 0xff
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0xc]
xor edi, ebx
and esi, 0xff
mov dword [ebp - 8], edi
mov edi, dword [ebp - 5]
mov ebx, dword [ebp - 0xa]
and edi, 0xff
and ebx, 0xff
mov edi, dword [edi*4 + 0x44dd90]
xor edi, dword [ebx*4 + 0x44d990]
mov ebx, dword [ebp - 0xf]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44d590]
mov ebx, dword [edx*4 + 0x44d190]
mov edx, dword [ebp - 0x11]
xor edi, ebx
and edx, 0xff
mov dword [eax], edi
mov edi, dword [ebp - 6]
mov edx, dword [edx*4 + 0x44dd90]
and edi, 0xff
mov ebx, dword [edi*4 + 0x44d990]
mov edi, dword [ebp - 0xb]
and edi, 0xff
xor edx, ebx
mov ebx, dword [edi*4 + 0x44d590]
mov edi, dword [esi*4 + 0x44d190]
mov esi, dword [ebp - 0x12]
xor edx, ebx
xor edx, edi
and esi, 0xff
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xd]
and edx, 0xff
mov edi, dword [edx*4 + 0x44dd90]
mov edx, dword [esi*4 + 0x44d990]
xor edi, edx
mov edx, dword [ebp - 7]
and edx, 0xff
mov esi, dword [edx*4 + 0x44d590]
mov edx, dword [ebp - 0xc]
and edx, 0xff
xor edi, esi
mov esi, dword [edx*4 + 0x44d190]
mov edx, dword [ebp - 9]
xor edi, esi
mov esi, dword [ebp - 0xe]
and edx, 0xff
mov dword [eax + 8], edi
and esi, 0xff
mov edi, dword [edx*4 + 0x44dd90]
mov edx, dword [ebp - 0x13]
mov ebx, dword [esi*4 + 0x44d990]
and edx, 0xff
xor edi, ebx
mov ebx, dword [edx*4 + 0x44d590]
mov edx, dword [ebp - 8]
and edx, 0xff
xor edi, ebx
mov ebx, dword [edx*4 + 0x44d190]
mov edx, dword [ebp + 8]
xor edi, ebx
inc edx
mov dword [eax + 0xc], edi
mov edi, dword [ebp + 0xc]
add edi, 0x10
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
mov esi, dword [ecx + 0x1c]
dec esi
cmp edx, esi
jb 0x401493
mov edx, dword [ecx + 0x1c]
mov ebx, dword [eax]
lea esi, [edx + 1]
shl esi, 4
shl edx, 4
mov esi, dword [esi + ecx]
mov edi, dword [edx + ecx + 0x14]
xor esi, ebx
lea ebx, [edx + ecx]
mov edx, dword [eax + 4]
xor edi, edx
mov dword [ebp - 0x14], esi
mov edx, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x1c]
xor edx, dword [eax + 8]
xor ebx, dword [eax + 0xc]
and esi, 0xff
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
mov bl, byte [esi*4 + 0x44d191]
mov esi, dword [ebp - 0xf]
and esi, 0xff
mov byte [eax], bl
and edi, 0xff
and edx, 0xff
mov bl, byte [esi*4 + 0x44d191]
mov esi, dword [ebp - 0xa]
and esi, 0xff
mov byte [eax + 1], bl
mov bl, byte [esi*4 + 0x44d191]
mov esi, dword [ebp - 5]
and esi, 0xff
mov byte [eax + 2], bl
mov bl, byte [esi*4 + 0x44d191]
mov esi, dword [ebp - 0xb]
mov byte [eax + 3], bl
mov bl, byte [edi*4 + 0x44d191]
and esi, 0xff
mov byte [eax + 4], bl
mov bl, byte [esi*4 + 0x44d191]
mov esi, dword [ebp - 6]
and esi, 0xff
mov byte [eax + 5], bl
mov bl, byte [esi*4 + 0x44d191]
mov esi, dword [ebp - 0x11]
and esi, 0xff
mov byte [eax + 6], bl
mov bl, byte [esi*4 + 0x44d191]
mov esi, dword [ebp - 8]
mov byte [eax + 7], bl
mov dl, byte [edx*4 + 0x44d191]
mov byte [eax + 8], dl
mov edx, dword [ebp - 7]
and edx, 0xff
and esi, 0xff
mov dl, byte [edx*4 + 0x44d191]
mov byte [eax + 9], dl
mov edx, dword [ebp - 0x12]
and edx, 0xff
mov dl, byte [edx*4 + 0x44d191]
mov byte [eax + 0xa], dl
mov edx, dword [ebp - 0xd]
and edx, 0xff
mov dl, byte [edx*4 + 0x44d191]
mov byte [eax + 0xb], dl
mov dl, byte [esi*4 + 0x44d191]
mov byte [eax + 0xc], dl
mov edx, dword [ebp - 0x13]
and edx, 0xff
mov dl, byte [edx*4 + 0x44d191]
mov byte [eax + 0xd], dl
mov edx, dword [ebp - 0xe]
and edx, 0xff
mov dl, byte [edx*4 + 0x44d191]
mov byte [eax + 0xe], dl
mov edx, dword [ebp - 9]
and edx, 0xff
mov dl, byte [edx*4 + 0x44d191]
mov byte [eax + 0xf], dl
mov edx, dword [ecx + 0x1c]
mov ebx, dword [eax]
add edx, 2
shl edx, 4
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov edx, dword [edx + ecx]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ecx + 0x1c]
shl edx, 4
mov edx, dword [edx + ecx + 0x24]
xor esi, edx
mov dword [eax + 4], esi
mov edx, dword [ecx + 0x1c]
shl edx, 4
mov edx, dword [edx + ecx + 0x28]
xor edi, edx
mov dword [eax + 8], edi
mov edx, dword [ecx + 0x1c]
shl edx, 4
pop edi
pop esi
mov ecx, dword [edx + ecx + 0x2c]
mov edx, dword [eax + 0xc]
xor edx, ecx
pop ebx
mov dword [eax + 0xc], edx
mov esp, ebp
pop ebp
ret 8