Function at 0x50bed0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov edx, 0x71c290
lea eax, [ebp - 0x20c]
call fcn.0050bb00
pop ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x20c]
mov al, byte [eax + 0x71c290]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50bef9
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x10c]
call fcn.0050bb00
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x14]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x71c190]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x71c190]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x71c390]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50bf55
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 8
mov edx, 0x71c190
lea eax, [ebp - 0x20c]
call fcn.0050bb00
pop ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x20c]
mov al, byte [eax + 0x71c290]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50bfb6
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 8
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x10c]
call fcn.0050bb00
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x17]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x13]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x71c290]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x71c190]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x71c790]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x400], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50c015
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x10
mov edx, 0x71c190
lea eax, [ebp - 0x20c]
call fcn.0050bb00
pop ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x20c]
mov al, byte [eax + 0x71c190]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50c07a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x10
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x10c]
call fcn.0050bb00
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x16]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x12]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x71c190]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x71c290]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x71cb90]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x800], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50c0d9
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x18
mov edx, 0x71c290
lea eax, [ebp - 0x20c]
call fcn.0050bb00
pop ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x20c]
mov al, byte [eax + 0x71c190]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50c13e
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x18
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x10c]
call fcn.0050bb00
pop ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x15]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x11]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x10c]
movzx eax, byte [eax + 0x71c290]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x71c290]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x71cf90]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0xc00], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x50c19d
mov esp, ebp
pop ebp
ret