Function at 0x40ef80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebp
mov ebp, dword [edx + 0x100]
mov ecx, ebp
shl ecx, 4
add ecx, edx
test byte [edx + 0x104], 2
jne 0x40efa1
xor eax, eax
pop ebp
add esp, 0x24
ret
xor edx, edx
mov dh, byte [eax + 3]
push ebx
push edi
movzx edi, byte [eax + 1]
mov dl, byte [eax + 2]
shl edx, 8
or edx, edi
movzx edi, byte [eax]
shl edx, 8
or edx, edi
xor edx, dword [ecx]
movzx edi, byte [eax + 5]
mov dword [esp + 0x20], edx
xor edx, edx
mov dh, byte [eax + 7]
mov dl, byte [eax + 6]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
shl edx, 8
or edx, edi
xor edx, dword [ecx + 4]
movzx edi, byte [eax + 9]
mov dword [esp + 0x24], edx
xor edx, edx
mov dh, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 8]
shl edx, 8
or edx, edi
xor edx, dword [ecx + 8]
movzx edi, byte [eax + 0xd]
mov dword [esp + 0x28], edx
xor edx, edx
mov dh, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
movzx eax, byte [eax + 0xc]
shl edx, 8
or edx, edi
shl edx, 8
or edx, eax
xor edx, dword [ecx + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], edx
lea edx, [ebp - 1]
test edx, edx
lea edi, [esp + 0x10]
jbe 0x40f12a
mov ebp, edx
lea ebx, [ebx]
mov edx, dword [eax + 0xc]
movzx ebx, byte [eax + 0xa]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x424e00]
xor edx, dword [ebx*4 + 0x425200]
movzx ebx, byte [eax + 7]
xor edx, dword [ebx*4 + 0x425600]
movzx ebx, byte [eax]
xor edx, dword [ebx*4 + 0x424a00]
sub ecx, 0x10
xor edx, dword [ecx]
mov dword [edi], edx
mov edx, dword [eax]
movzx ebx, byte [eax + 0xe]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x424e00]
xor edx, dword [ebx*4 + 0x425200]
movzx ebx, byte [eax + 0xb]
xor edx, dword [ebx*4 + 0x425600]
movzx ebx, byte [eax + 4]
xor edx, dword [ebx*4 + 0x424a00]
xor edx, dword [ecx + 4]
mov dword [edi + 4], edx
mov edx, dword [eax + 4]
movzx ebx, byte [eax + 0xf]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x424e00]
xor edx, dword [ebx*4 + 0x425600]
movzx ebx, byte [eax + 2]
xor edx, dword [ebx*4 + 0x425200]
movzx ebx, byte [eax + 8]
xor edx, dword [ebx*4 + 0x424a00]
xor edx, dword [ecx + 8]
mov dword [edi + 8], edx
mov edx, dword [eax + 8]
movzx ebx, byte [eax + 6]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x424e00]
xor edx, dword [ebx*4 + 0x425200]
movzx ebx, byte [eax + 3]
xor edx, dword [ebx*4 + 0x425600]
movzx ebx, byte [eax + 0xc]
xor edx, dword [ebx*4 + 0x424a00]
xor edx, dword [ecx + 0xc]
sub ebp, 1
mov dword [edi + 0xc], edx
mov edx, eax
mov eax, edi
mov edi, edx
jne 0x40f040
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
shr ebx, 0x10
movzx edi, bl
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x422580]
xor eax, dword [edi*4 + 0x422180]
mov ebx, ebp
shr ebx, 8
movzx edi, bl
xor eax, dword [edi*4 + 0x421d80]
movzx edi, byte [esp + 0x10]
xor eax, dword [edi*4 + 0x421980]
mov edi, dword [esp + 0x18]
shr edi, 0x18
mov edi, dword [edi*4 + 0x422580]
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x422180]
mov ebx, dword [esp + 0x10]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x421d80]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x421980]
sub ecx, 0x10
xor edi, dword [ecx + 4]
xor eax, dword [ecx]
mov dword [esp + 0x24], edi
mov ebx, edx
shr ebx, 8
movzx edi, bl
mov edi, dword [edi*4 + 0x421d80]
mov ebx, dword [esp + 0x10]
shr ebx, 0x10
shr ebp, 0x18
xor edi, dword [ebp*4 + 0x422580]
movzx ebx, bl
xor edi, dword [ebx*4 + 0x422180]
mov ebx, dword [esp + 0x18]
movzx ebp, bl
xor edi, dword [ebp*4 + 0x421980]
shr edx, 0x10
xor edi, dword [ecx + 8]
movzx edx, dl
mov edx, dword [edx*4 + 0x422180]
mov dword [esp + 0x28], edi
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x421d80]
mov edi, dword [esp + 0x10]
shr edi, 0x18
xor edx, dword [edi*4 + 0x422580]
mov dword [esp + 0xc], edi
movzx edi, byte [esp + 0x1c]
xor edx, dword [edi*4 + 0x421980]
xor edx, dword [ecx + 0xc]
mov ecx, eax
shr ecx, 8
mov byte [esi + 1], cl
mov ecx, eax
mov byte [esi], al
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [esp + 0x24]
mov byte [esi + 2], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 5], cl
mov ecx, eax
mov byte [esi + 4], al
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + 7], al
mov eax, dword [esp + 0x28]
mov byte [esi + 6], cl
mov byte [esi + 8], al
mov ecx, eax
shr ecx, 8
mov byte [esi + 9], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
mov byte [esi + 0xb], al
mov byte [esi + 0xa], cl
mov eax, edx
mov ecx, edx
shr eax, 8
pop edi
shr ecx, 0x10
mov byte [esi + 0xc], dl
shr edx, 0x18
pop ebx
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], dl
mov eax, 1
pop ebp
add esp, 0x24
ret