Function at 0x41caaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
dec eax
mov esi, dword [ebp + 0x10]
shr eax, 0x1f
mov ecx, dword [esi + 4]
lea edi, [eax - 1]
mov eax, dword [edx + 4]
mov edx, eax
xor edx, ecx
mov ecx, dword [ebp + 0xc]
and edx, edi
xor eax, edx
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
xor eax, edx
mov dword [esi + 4], eax
cmp dword [ebp + 0x14], 0xa
jbe 0x41cc50
cmp dword [ebp + 0x14], 0xa
jle case.0x41cc53.10
mov dword [ebp - 0x10], 0xa
lea esi, [esi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
shl ecx, 2
mov eax, dword [edx]
mov ebx, ecx
mov edx, dword [esi]
add ebx, eax
mov edx, dword [edx + ecx]
mov eax, dword [ebx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ebx], eax
mov eax, dword [esi]
add ecx, eax
mov eax, dword [ecx]
xor eax, edx
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ecx
jne 0x41cac0
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx + 0x24]
add ecx, 0x24
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 0x24
mov ebx, dword [eax]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [esi]
add ecx, 0x20
mov edx, dword [edx + 0x20]
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 0x20
mov ecx, dword [eax]
xor ecx, edx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx + 0x1c]
add ecx, 0x1c
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 0x1c
mov ebx, dword [eax]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [esi]
add ecx, 0x18
mov edx, dword [edx + 0x18]
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 0x18
mov ecx, dword [eax]
xor ecx, edx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx + 0x14]
add ecx, 0x14
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 0x14
mov ebx, dword [eax]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [esi]
add ecx, 0x10
mov edx, dword [edx + 0x10]
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 0x10
mov ecx, dword [eax]
xor ecx, edx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx + 0xc]
add ecx, 0xc
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 0xc
mov ebx, dword [eax]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [esi]
add ecx, 8
mov edx, dword [edx + 8]
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 8
mov ecx, dword [eax]
xor ecx, edx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx + 4]
add ecx, 4
mov eax, dword [ecx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
add eax, 4
mov ebx, dword [eax]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [edx]
xor edx, eax
and edx, edi
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [eax]
xor ecx, edx
mov dword [eax], ecx
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x14]
jmp dword [eax*4 + 0x4b2180]