Function at 0x408eb1
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 8
and eax, 0xff00
add ecx, eax
mov eax, edx
and eax, 0xff00
shl eax, 8
add ecx, eax
and edx, 0xff
shl edx, 0x18
mov edi, ecx
add edi, edx
not edi
jmp 0x408f0d
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov edx, edi
shr edx, 0x18
movzx ecx, byte [eax]
xor edx, ecx
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shl ecx, 8
mov edi, edx
xor edi, ecx
dec ebx
or ebx, ebx
je 0x408f18
test byte [esp + 0x14], 3
jne 0x408eea
mov esi, dword [esp + 0x14]
add esi, 0xfffffffc
jmp 0x40917f
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
sub ebx, 0x20
cmp ebx, 0x20
jae 0x408f24
jmp 0x4091d8
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x415fb0]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4163b0]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4167b0]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x416bb0]
sub ebx, 4
cmp ebx, 4
jae 0x40918a
add esi, 4
mov dword [esp + 0x14], esi
or ebx, ebx
je 0x409211
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov esi, edi
shr esi, 0x18
movzx edx, byte [eax]
xor esi, edx
mov esi, dword [esi*4 + 0x415fb0]
mov edx, edi
shl edx, 8
mov edi, esi
xor edi, edx
mov eax, ebx
dec eax
mov ebx, eax
jne 0x4091e8
not edi
mov esi, edi
shr esi, 0x18
mov ebx, edi
shr ebx, 8
and ebx, 0xff00
add esi, ebx
mov ebx, edi
and ebx, 0xff00
shl ebx, 8
add esi, ebx
mov ebx, edi
and ebx, 0xff
shl ebx, 0x18
mov eax, esi
add eax, ebx
pop edi
pop esi
pop ebx
ret