Function at 0x40f600
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, 2
lea ecx, [eax + 0x1000]
movzx ebp, word [eax + 0x1c22]
lea esi, [edi - 2]
mov ebx, esi
and ebx, 1
mov edx, ebx
add ebx, 2
add ebx, ebx
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
neg edx
and edx, 0x7f0
xor edx, ebp
shr esi, 1
shr ebx, 4
mov ebp, esi
and ebp, 1
mov dword [esp + 0x14], ebp
neg ebp
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
mov ebp, dword [esp + 0x14]
shr edx, 4
mov edx, dword [eax + edx*4 + 0x550]
add edx, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
add ebx, ebp
add ebx, ebx
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
shr esi, 1
and esi, 1
shr ebx, 4
mov ebp, esi
neg ebp
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
add ebx, esi
movzx esi, word [eax + ebx*2 + 0x1c20]
mov ebx, esi
shr ebx, 4
mov ebx, dword [eax + ebx*4 + 0x550]
add ebx, edx
mov dword [ecx - 0x20], ebx
xor esi, 0x7f0
shr esi, 4
mov esi, dword [eax + esi*4 + 0x550]
add esi, edx
mov dword [ecx], esi
movzx ebp, word [eax + 0x1c22]
lea esi, [edi - 1]
mov ebx, esi
and ebx, 1
mov edx, ebx
neg edx
and edx, 0x7f0
xor edx, ebp
add ebx, 2
shr esi, 1
add ebx, ebx
mov ebp, esi
and ebp, 1
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
mov dword [esp + 0x14], ebp
neg ebp
shr ebp, 4
shr ebx, 4
shr edx, 4
mov edx, dword [eax + edx*4 + 0x550]
and ebp, 0x7f
xor ebx, ebp
add edx, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
shr esi, 1
add ebx, ebp
and esi, 1
add ebx, ebx
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
shr ebx, 4
mov ebp, esi
neg ebp
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
add ebx, esi
movzx esi, word [eax + ebx*2 + 0x1c20]
mov ebx, esi
shr ebx, 4
mov ebx, dword [eax + ebx*4 + 0x550]
add ebx, edx
mov dword [ecx - 0x1c], ebx
xor esi, 0x7f0
shr esi, 4
mov esi, dword [eax + esi*4 + 0x550]
add esi, edx
mov dword [ecx + 4], esi
movzx ebp, word [eax + 0x1c22]
mov ebx, edi
and ebx, 1
mov esi, ebx
add ebx, 2
add ebx, ebx
neg esi
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
and esi, 0x7f0
xor esi, ebp
shr ebx, 4
mov edx, edi
shr edx, 1
mov ebp, edx
and ebp, 1
mov dword [esp + 0x14], ebp
neg ebp
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
mov ebp, dword [esp + 0x14]
shr esi, 4
mov esi, dword [eax + esi*4 + 0x550]
add esi, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
add ebx, ebp
add ebx, ebx
shr edx, 1
and edx, 1
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
mov ebp, edx
shr ebx, 4
neg ebp
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
add esi, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
add ebx, edx
movzx edx, word [eax + ebx*2 + 0x1c20]
mov ebx, edx
shr ebx, 4
mov ebx, dword [eax + ebx*4 + 0x550]
add ebx, esi
xor edx, 0x7f0
shr edx, 4
mov dword [ecx - 0x18], ebx
mov edx, dword [eax + edx*4 + 0x550]
add edx, esi
lea esi, [edi + 1]
mov ebx, esi
and ebx, 1
mov dword [ecx + 8], edx
mov edx, ebx
shr esi, 1
neg edx
movzx ebp, word [eax + 0x1c22]
add ebx, 2
add ebx, ebx
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
and edx, 0x7f0
xor edx, ebp
mov ebp, esi
and ebp, 1
shr ebx, 4
mov dword [esp + 0x14], ebp
neg ebp
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
mov ebp, dword [esp + 0x14]
shr edx, 4
mov edx, dword [eax + edx*4 + 0x550]
add edx, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
add ebx, ebp
add ebx, ebx
shr esi, 1
and esi, 1
mov dword [esp + 0x10], ebx
movzx ebx, word [ebx + eax + 0x1c20]
mov ebp, esi
shr ebx, 4
neg ebp
shr ebp, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [eax + ebx*4 + 0x550]
mov ebx, dword [esp + 0x10]
add ebx, esi
movzx esi, word [eax + ebx*2 + 0x1c20]
mov ebx, esi
shr ebx, 4
mov ebx, dword [eax + ebx*4 + 0x550]
xor esi, 0x7f0
add ebx, edx
shr esi, 4
mov dword [ecx - 0x14], ebx
mov esi, dword [eax + esi*4 + 0x550]
add esi, edx
add edi, 4
mov dword [ecx + 0xc], esi
lea edx, [edi - 2]
add ecx, 0x10
cmp edx, 8
jb 0x40f612
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret