Function at 0x40e0e0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, edx
mov edx, ebx
shr edx, 3
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], edx
je 0x40e2d9
nop
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add edi, 1
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
add ecx, 1
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
add ecx, 1
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add edi, 1
add ecx, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
add ecx, 1
add edi, 1
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
add ecx, 1
add esi, 1
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add edi, 1
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add ecx, 1
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
add ecx, 1
mov byte [ecx], dl
add ecx, 1
add esi, 1
sub dword [esp + 0x10], 1
jne 0x40e100
mov ebx, dword [esp + 0x18]
and ebx, 7
mov dword [esp + 0x10], ebx
je 0x40e501
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
je 0x40e501
lea esp, [esp]
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
je 0x40e501
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
je 0x40e501
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
je 0x40e501
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
je 0x40e501
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
je 0x40e501
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
je 0x40e501
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x10], 1
jne 0x40e330
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
pop ecx
ret