Function at 0x40c8df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
shl eax, 4
lea eax, [eax + edi + 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040c65d
movzx eax, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x4333a0]
movzx ecx, byte [ebp - 3]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 9]
xor eax, dword [ecx*4 + 0x4327a0]
mov esi, dword [ebp + 0xc]
movzx ecx, byte [ebp - 0xf]
mov dword [esi], eax
movzx eax, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x4333a0]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 2]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 5]
xor eax, dword [ecx*4 + 0x4327a0]
movzx ecx, byte [ebp - 0xb]
mov dword [esi + 4], eax
movzx eax, byte [ebp - 8]
mov eax, dword [eax*4 + 0x4333a0]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 0xe]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 1]
xor eax, dword [ecx*4 + 0x4327a0]
movzx ecx, byte [ebp - 7]
mov dword [esi + 8], eax
movzx eax, byte [ebp - 4]
mov eax, dword [eax*4 + 0x4333a0]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 0xa]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 0xd]
xor eax, dword [ecx*4 + 0x4327a0]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
dec eax
cmp eax, 1
jle 0x40caaa
mov ecx, eax
shl ecx, 4
dec eax
push ebx
lea ebx, [ecx + edi + 0x14]
mov dword [ebp + 8], eax
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0040c65d
movzx eax, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x4333a0]
movzx ecx, byte [ebp - 3]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 9]
xor eax, dword [ecx*4 + 0x4327a0]
movzx ecx, byte [ebp - 0xf]
mov dword [esi], eax
movzx eax, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x4333a0]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 2]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 5]
xor eax, dword [ecx*4 + 0x4327a0]
movzx ecx, byte [ebp - 0xb]
mov dword [esi + 4], eax
movzx eax, byte [ebp - 8]
mov eax, dword [eax*4 + 0x4333a0]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 0xe]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 1]
xor eax, dword [ecx*4 + 0x4327a0]
movzx ecx, byte [ebp - 7]
mov dword [esi + 8], eax
movzx eax, byte [ebp - 4]
mov eax, dword [eax*4 + 0x4333a0]
xor eax, dword [ecx*4 + 0x432fa0]
movzx ecx, byte [ebp - 0xa]
xor eax, dword [ecx*4 + 0x432ba0]
movzx ecx, byte [ebp - 0xd]
xor eax, dword [ecx*4 + 0x4327a0]
sub ebx, 0x10
dec dword [ebp + 8]
mov dword [esi + 0xc], eax
jne 0x40c9d7
pop ebx
lea eax, [edi + 0x24]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0040c65d
movzx eax, byte [ebp - 0x10]
mov al, byte [eax + 0x4347c0]
mov byte [esi], al
movzx eax, byte [ebp - 3]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 1], al
movzx eax, byte [ebp - 6]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 2], al
movzx eax, byte [ebp - 9]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 3], al
movzx eax, byte [ebp - 0xc]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 4], al
movzx eax, byte [ebp - 0xf]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 5], al
movzx eax, byte [ebp - 2]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 6], al
movzx eax, byte [ebp - 5]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 7], al
movzx eax, byte [ebp - 8]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 8], al
movzx eax, byte [ebp - 0xb]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 9], al
movzx eax, byte [ebp - 0xe]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 0xa], al
movzx eax, byte [ebp - 1]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 0xb], al
movzx eax, byte [ebp - 4]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 0xc], al
movzx eax, byte [ebp - 7]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 0xd], al
movzx eax, byte [ebp - 0xa]
mov al, byte [eax + 0x4347c0]
mov byte [esi + 0xe], al
movzx eax, byte [ebp - 0xd]
mov al, byte [eax + 0x4347c0]
add edi, 0x14
push edi
push esi
push esi
mov byte [esi + 0xf], al
call fcn.0040c65d
pop edi
pop esi
leave
ret 8