Function at 0x506f0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, 0x6276d0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov edi, eax
shr edi, 8
mov edx, dword [ebp + 0xc]
shr esi, 0x18
and edi, 0xff00
and esi, 0xff
add esi, edi
mov edi, eax
and edi, 0xff00
and eax, 0xff
shl edi, 8
shl eax, 0x18
add esi, edi
add esi, eax
mov eax, esi
not eax
jmp 0x506f6f
movzx edi, byte [edx]
mov esi, eax
inc edx
shr esi, 0x18
xor esi, edi
shl eax, 8
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, eax
dec ebx
mov eax, esi
test ebx, ebx
je 0x506f78
test dl, 3
jne 0x506f55
sub edx, 4
cmp ebx, 0x20
jb 0x5071b0
add edx, 4
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
mov eax, esi
xor eax, dword [edx]
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
sub ebx, 0x20
mov eax, esi
cmp ebx, 0x20
jae 0x506f84
cmp ebx, 4
jb 0x507201
add edx, 4
xor eax, dword [edx]
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, dword [ecx + edi*4 + 0x1400]
mov edi, eax
shr edi, 0x10
and edi, 0xff
shr eax, 0x18
xor esi, dword [ecx + edi*4 + 0x1800]
xor esi, dword [ecx + eax*4 + 0x1c00]
sub ebx, 4
mov eax, esi
cmp ebx, 4
jae 0x5071b5
add edx, 4
test ebx, ebx
je 0x507224
movzx edi, byte [edx]
mov esi, eax
shr esi, 0x18
xor esi, edi
shl eax, 8
mov esi, dword [ecx + esi*4 + 0x1000]
xor esi, eax
inc edx
mov eax, esi
dec ebx
jne 0x507208
not eax
mov edx, eax
mov ecx, eax
shr ecx, 8
shr edx, 0x18
and ecx, 0xff00
and edx, 0xff
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 edi
pop esi
pop ebx
pop ebp
ret