Function at 0x6e5870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov ebx, eax
shr esi, 8
mov edx, dword [ebp + 0xc]
shr ebx, 0x18
and esi, 0xff00
add ebx, esi
mov esi, eax
and esi, 0xff00
and eax, 0xff
shl esi, 8
shl eax, 0x18
add ebx, esi
add ebx, eax
mov eax, ebx
not eax
jmp 0x6e58c7
movzx esi, byte [edx]
mov ebx, eax
inc edx
shr ebx, 0x18
xor ebx, esi
shl eax, 8
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, eax
dec ecx
mov eax, ebx
test ecx, ecx
je 0x6e58d0
test dl, 3
jne 0x6e58ad
sub edx, 4
cmp ecx, 0x20
jb 0x6e5b18
add edx, 4
sub ecx, 0x20
xor eax, dword [edx]
add edx, 4
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
mov eax, ebx
xor eax, dword [edx]
add edx, 4
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
mov eax, ebx
xor eax, dword [edx]
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
cmp ecx, 0x20
mov eax, ebx
jae 0x6e58dc
cmp ecx, 4
jb 0x6e5b6b
add edx, 4
sub ecx, 4
xor eax, dword [edx]
mov esi, eax
mov ebx, eax
shr esi, 8
and ebx, 0xff
and esi, 0xff
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, dword [esi*4 + 0x78b3a8]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x78b7a8]
mov esi, dword [eax*4 + 0x78bba8]
xor ebx, esi
cmp ecx, 4
mov eax, ebx
jae 0x6e5b1d
add edx, 4
test ecx, ecx
je 0x6e5b8e
movzx esi, byte [edx]
mov ebx, eax
inc edx
shr ebx, 0x18
xor ebx, esi
shl eax, 8
mov ebx, dword [ebx*4 + 0x78afa8]
xor ebx, eax
dec ecx
mov eax, ebx
jne 0x6e5b72
not eax
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0x18
and ecx, 0xff00
add edx, ecx
mov ecx, eax
and ecx, 0xff00
and eax, 0xff
shl ecx, 8
shl eax, 0x18
add edx, ecx
add edx, eax
mov eax, edx
pop esi
pop ebx
pop ebp
ret