Function at 0x4f6ac4
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x100]
mov ecx, edx
shl ecx, 4
sub esp, 0x24
add ecx, eax
test byte [eax + 0x104], 2
jne 0x4f6aed
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx]
xor esi, dword [eax]
push edi
mov dword [ebp - 0x10], esi
mov esi, dword [ecx + 4]
xor esi, dword [eax + 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ecx + 8]
xor esi, dword [eax + 8]
mov dword [ebp - 8], esi
mov esi, dword [ecx + 0xc]
xor esi, dword [eax + 0xc]
add edx, 0xffffffff
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
lea esi, [ebp - 0x24]
mov dword [ebp + 0x10], edx
je 0x4f6c2c
mov edx, dword [eax + 8]
mov edi, dword [eax + 4]
shr edi, 0x18
mov edi, dword [edi*4 + 0x100d7d0]
shr edx, 0x10
movzx edx, dl
xor edi, dword [edx*4 + 0x100d3d0]
mov edx, dword [eax + 0xc]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x100cfd0]
movzx edx, byte [eax]
xor edi, dword [edx*4 + 0x100cbd0]
sub ecx, 0x10
xor edi, dword [ecx]
mov dword [esi], edi
mov ebx, dword [eax]
mov edi, dword [eax + 8]
mov edx, dword [eax + 0xc]
shr edi, 0x18
mov edi, dword [edi*4 + 0x100d7d0]
shr edx, 0x10
movzx edx, dl
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100cfd0]
xor edi, dword [edx*4 + 0x100d3d0]
movzx edx, byte [eax + 4]
xor edi, dword [edx*4 + 0x100cbd0]
xor edi, dword [ecx + 4]
mov dword [esi + 4], edi
mov ebx, dword [eax + 4]
mov edi, dword [eax + 0xc]
mov edx, dword [eax]
shr edi, 0x18
mov edi, dword [edi*4 + 0x100d7d0]
shr edx, 0x10
movzx edx, dl
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x100cfd0]
xor edi, dword [edx*4 + 0x100d3d0]
movzx edx, byte [eax + 8]
xor edi, dword [edx*4 + 0x100cbd0]
xor edi, dword [ecx + 8]
mov dword [esi + 8], edi
mov edx, dword [eax + 4]
mov edi, dword [eax]
shr edx, 0x10
shr edi, 0x18
mov edi, dword [edi*4 + 0x100d7d0]
movzx edx, dl
xor edi, dword [edx*4 + 0x100d3d0]
mov edx, dword [eax + 8]
shr edx, 8
movzx edx, dl
xor edi, dword [edx*4 + 0x100cfd0]
movzx edx, byte [eax + 0xc]
xor edi, dword [edx*4 + 0x100cbd0]
mov edx, eax
xor edi, dword [ecx + 0xc]
sub dword [ebp + 0x10], 1
mov dword [esi + 0xc], edi
mov eax, esi
mov esi, edx
jne 0x4f6b27
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
mov edi, dword [ebp - 0x18]
movzx edx, dl
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x100b258]
shl eax, 8
xor eax, dword [edx*4 + 0x100b258]
mov edx, edi
shr edx, 8
movzx edx, dl
shl eax, 8
xor eax, dword [edx*4 + 0x100b258]
movzx edx, byte [ebp - 0x24]
shl eax, 8
xor eax, dword [edx*4 + 0x100b258]
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
mov esi, dword [edx*4 + 0x100b258]
mov edx, edi
shr edx, 0x10
movzx edx, dl
shl esi, 8
xor esi, dword [edx*4 + 0x100b258]
mov edx, dword [ebp - 0x24]
shr edx, 8
movzx edx, dl
shl esi, 8
xor esi, dword [edx*4 + 0x100b258]
movzx edx, bl
shr edi, 0x18
mov edi, dword [edi*4 + 0x100b258]
shl esi, 8
xor esi, dword [edx*4 + 0x100b258]
mov edx, dword [ebp - 0x24]
shr edx, 0x10
movzx edx, dl
shl edi, 8
xor edi, dword [edx*4 + 0x100b258]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor eax, dword [ecx - 0x10]
xor esi, dword [ecx - 0xc]
shl edi, 8
xor edi, dword [edx*4 + 0x100b258]
movzx edx, byte [ebp - 0x1c]
shl edi, 8
xor edi, dword [edx*4 + 0x100b258]
mov edx, dword [ebp - 0x24]
xor edi, dword [ecx - 8]
shr edx, 0x18
mov edx, dword [edx*4 + 0x100b258]
shr ebx, 0x10
movzx ebx, bl
shl edx, 8
xor edx, dword [ebx*4 + 0x100b258]
mov ebx, dword [ebp - 0x1c]
shr ebx, 8
movzx ebx, bl
shl edx, 8
xor edx, dword [ebx*4 + 0x100b258]
movzx ebx, byte [ebp - 0x18]
sub ecx, 0x10
shl edx, 8
xor edx, dword [ebx*4 + 0x100b258]
xor edx, dword [ecx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], edi
pop edi
mov dword [ecx + 4], esi
pop esi
mov dword [ecx], eax
mov dword [ecx + 0xc], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc