Function at 0x407590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
shl eax, 5
lea edi, [ecx + eax]
mov eax, dword [ebp + 0x10]
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x10]
mov ebx, dword [edi + 0x18]
xor ecx, dword [eax]
xor edx, dword [eax + 0xc]
xor ebx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 0x14]
sub edi, 0x10
xor ecx, dword [eax + 4]
mov eax, edx
shr eax, 8
mov dword [ebp - 0x14], ecx
movzx ecx, al
mov eax, ebx
mov esi, dword [ebp - 0x14]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x596fc0]
xor ecx, dword [eax*4 + 0x5973c0]
mov eax, esi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5977c0]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x596bc0]
mov eax, esi
xor ecx, dword [edi + 0x10]
shr eax, 8
movzx eax, al
mov dword [ebp - 0x10], ecx
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x5977c0]
xor ecx, dword [eax*4 + 0x596fc0]
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x5973c0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x596bc0]
mov eax, ebx
xor ecx, dword [edi + 0x18]
shr eax, 8
mov dword [ebp + 8], ecx
movzx ecx, al
mov eax, esi
shr eax, 0x10
movzx eax, al
shr ebx, 0x18
mov ecx, dword [ecx*4 + 0x596fc0]
xor ecx, dword [eax*4 + 0x5973c0]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 8]
mov eax, ecx
mov esi, dword [ebp + 0x10]
shr eax, 0x18
xor esi, dword [eax*4 + 0x5977c0]
movzx eax, dl
shr edx, 0x10
xor esi, dword [eax*4 + 0x596bc0]
mov eax, esi
mov dword [ebp + 0x10], esi
xor eax, dword [edi + 0x1c]
mov dword [ebp + 0x10], eax
movzx eax, dl
mov eax, dword [eax*4 + 0x5973c0]
xor eax, dword [ebx*4 + 0x5977c0]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
shr ecx, 8
movzx eax, cl
xor ebx, dword [eax*4 + 0x596fc0]
mov eax, dword [ebp - 0x14]
movzx eax, al
xor ebx, dword [eax*4 + 0x596bc0]
xor ebx, dword [edi + 0x14]
dec dword [ebp - 0xc]
mov dword [ebp - 4], ebx
je 0x4078d6
mov eax, dword [ebp + 0x10]
mov ecx, ebx
shr eax, 8
movzx eax, al
mov ebx, dword [ebp - 0x10]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x5977c0]
xor ecx, dword [eax*4 + 0x596fc0]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x5973c0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x596bc0]
xor ecx, dword [edi]
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x10]
shr ecx, 0x18
mov edx, dword [eax*4 + 0x596fc0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor edx, dword [ecx*4 + 0x5977c0]
xor edx, dword [eax*4 + 0x5973c0]
mov eax, dword [ebp + 8]
movzx eax, al
xor edx, dword [eax*4 + 0x596bc0]
xor edx, dword [edi + 8]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx ecx, al
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
mov eax, edx
shr eax, 8
mov ebx, dword [ecx*4 + 0x5973c0]
mov ecx, dword [ebp - 0x10]
movzx eax, al
shr edx, 0x18
mov dword [ebp + 8], edx
xor ebx, dword [eax*4 + 0x596fc0]
mov eax, ecx
shr eax, 0x18
shr ecx, 8
xor ebx, dword [eax*4 + 0x5977c0]
mov eax, dword [ebp + 0x10]
movzx eax, al
xor ebx, dword [eax*4 + 0x596bc0]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movzx eax, al
xor ebx, dword [edi + 0xc]
mov edx, dword [eax*4 + 0x5973c0]
mov eax, dword [ebp + 8]
xor edx, dword [eax*4 + 0x5977c0]
movzx eax, cl
xor edx, dword [eax*4 + 0x596fc0]
mov eax, dword [ebp - 4]
movzx eax, al
xor edx, dword [eax*4 + 0x596bc0]
mov eax, ebx
xor edx, dword [edi + 4]
sub edi, 0x20
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0x14]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x596fc0]
xor ecx, dword [eax*4 + 0x5973c0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5977c0]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x596bc0]
xor ecx, dword [edi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, ebx
mov eax, edx
shr eax, 8
movzx eax, al
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x5977c0]
xor ecx, dword [eax*4 + 0x596fc0]
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x5973c0]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
movzx eax, cl
xor esi, dword [eax*4 + 0x596bc0]
mov eax, esi
mov dword [ebp + 8], esi
xor eax, dword [edi + 0x18]
mov dword [ebp + 8], eax
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x596fc0]
xor ecx, dword [eax*4 + 0x5973c0]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5977c0]
movzx eax, bl
shr ebx, 0x10
xor ecx, dword [eax*4 + 0x596bc0]
xor ecx, dword [edi + 0x1c]
movzx eax, bl
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
mov ebx, dword [eax*4 + 0x5973c0]
mov eax, dword [ebp - 8]
shr eax, 8
xor ebx, dword [ecx*4 + 0x5977c0]
movzx eax, al
xor ebx, dword [eax*4 + 0x596fc0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x596bc0]
xor ebx, dword [edi + 0x14]
dec dword [ebp - 0xc]
mov dword [ebp - 4], ebx
jne 0x4076d3
mov eax, ebx
mov edx, dword [ebp + 0xc]
shr eax, 0x18
mov ebx, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x597bc0]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, dword [edi]
shr eax, 0x18
mov dword [edx], ecx
movzx ecx, byte [eax + 0x597bc0]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp - 4]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp + 0x10]
xor ecx, dword [edi + 4]
shr eax, 0x18
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 0x597bc0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl ecx, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp - 4]
xor ecx, dword [edi + 8]
shr eax, 0x10
movzx eax, al
mov dword [edx + 8], ecx
movzx ecx, byte [ebx + 0x597bc0]
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
mov eax, dword [ebp + 0x10]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x597bc0]
or ecx, eax
xor ecx, dword [edi + 0xc]
pop edi
pop esi
mov dword [edx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret