Function at 0x1004f281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
not ebx
push edi
mov edi, 0xff
test esi, esi
je 0x1004f2b2
test dl, 3
je 0x1004f2b2
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
and eax, edi
xor ebx, dword [eax*4 + 0x100c3660]
inc edx
dec esi
jne 0x1004f298
cmp esi, 0x20
jb 0x1004f4aa
mov eax, esi
shr eax, 5
mov dword [ebp - 4], eax
xor ebx, dword [edx]
add edx, 4
mov ecx, ebx
mov dword [ebp + 8], edx
shr ecx, 0x10
mov eax, ebx
shr eax, 8
and ecx, edi
and eax, edi
mov edi, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x100c3a60]
xor edx, dword [eax*4 + 0x100c3e60]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x100c3660]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x100c4260]
xor edx, dword [edi]
mov ecx, edx
mov eax, edx
shr eax, 8
and eax, ebx
shr ecx, 0x10
and ecx, ebx
mov ebx, dword [ecx*4 + 0x100c3a60]
xor ebx, dword [eax*4 + 0x100c3e60]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x100c3660]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x100c4260]
xor ebx, dword [edi + 4]
mov ecx, ebx
mov eax, ebx
shr eax, 8
and eax, edx
shr ecx, 0x10
and ecx, edx
mov edx, dword [ecx*4 + 0x100c3a60]
xor edx, dword [eax*4 + 0x100c3e60]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x100c3660]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x100c4260]
xor edx, dword [edi + 8]
mov ecx, edx
mov eax, edx
shr eax, 8
and eax, ebx
shr ecx, 0x10
and ecx, ebx
mov ebx, dword [ecx*4 + 0x100c3a60]
xor ebx, dword [eax*4 + 0x100c3e60]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x100c3660]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x100c4260]
xor ebx, dword [edi + 0xc]
mov ecx, ebx
mov eax, ebx
shr ecx, 0x10
and ecx, edx
shr eax, 8
and eax, edx
mov edx, dword [ecx*4 + 0x100c3a60]
xor edx, dword [eax*4 + 0x100c3e60]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x100c3660]
movzx eax, bl
mov ebx, 0xff
xor edx, dword [eax*4 + 0x100c4260]
xor edx, dword [edi + 0x10]
mov ecx, edx
shr ecx, 0x10
and ecx, ebx
mov eax, edx
shr eax, 8
sub esi, 0x20
and eax, ebx
mov ebx, dword [ecx*4 + 0x100c3a60]
xor ebx, dword [eax*4 + 0x100c3e60]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x100c3660]
movzx eax, dl
mov edx, 0xff
xor ebx, dword [eax*4 + 0x100c4260]
xor ebx, dword [edi + 0x14]
mov ecx, ebx
mov eax, ebx
shr eax, 8
and eax, edx
shr ecx, 0x10
and ecx, edx
mov edx, dword [ecx*4 + 0x100c3a60]
xor edx, dword [eax*4 + 0x100c3e60]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x100c3660]
movzx eax, bl
xor edx, dword [eax*4 + 0x100c4260]
xor edx, dword [edi + 0x18]
add edi, 0x1c
mov ecx, edx
mov dword [ebp + 8], edi
shr ecx, 0x10
mov edi, 0xff
mov eax, edx
and ecx, edi
shr eax, 8
and eax, edi
mov ebx, dword [ecx*4 + 0x100c3a60]
xor ebx, dword [eax*4 + 0x100c3e60]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x100c3660]
movzx eax, dl
mov edx, dword [ebp + 8]
xor ebx, dword [eax*4 + 0x100c4260]
dec dword [ebp - 4]
jne 0x1004f2c3
cmp esi, 4
jb 0x1004f4fa
mov edi, esi
shr edi, 2
xor ebx, dword [edx]
sub esi, 4
mov ecx, ebx
mov eax, ebx
shr ecx, 0x10
add edx, 4
and ecx, 0xff
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x100c3a60]
xor ecx, dword [eax*4 + 0x100c3e60]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x100c3660]
movzx eax, bl
xor ecx, dword [eax*4 + 0x100c4260]
mov ebx, ecx
dec edi
jne 0x1004f4b4
test esi, esi
je 0x1004f516
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x100c3660]
inc edx
dec esi
jne 0x1004f4fe
pop edi
not ebx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret