Function at 0x470310
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, 0x484704
lea eax, [ebp - 0x20c]
call fcn.0046ff40
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 + 0x484704]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x470339
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.0046ff40
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 + 0x484604]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x484604]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x484804]
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 0x470395
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 8
mov edx, 0x484604
lea eax, [ebp - 0x20c]
call fcn.0046ff40
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 + 0x484704]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x4703f6
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.0046ff40
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 + 0x484704]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x484604]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x484c04]
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 0x470455
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x10
mov edx, 0x484604
lea eax, [ebp - 0x20c]
call fcn.0046ff40
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 + 0x484604]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x4704ba
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.0046ff40
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 + 0x484604]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x484704]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x485004]
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 0x470519
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x18
mov edx, 0x484704
lea eax, [ebp - 0x20c]
call fcn.0046ff40
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 + 0x484604]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x47057e
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.0046ff40
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 + 0x484704]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x484704]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x485404]
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 0x4705dd
mov esp, ebp
pop ebp
ret