Function at 0x304765a4
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, 0x304b8714
lea eax, [ebp - 0x20c]
call fcn.304761d4
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 + 0x304b8714]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x304765cd
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.304761d4
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 + 0x304b8614]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x304b8614]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x304b8814]
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 0x30476629
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 8
mov edx, 0x304b8614
lea eax, [ebp - 0x20c]
call fcn.304761d4
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 + 0x304b8714]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x3047668a
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.304761d4
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 + 0x304b8714]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x304b8614]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x304b8c14]
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 0x304766e9
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x10
mov edx, 0x304b8614
lea eax, [ebp - 0x20c]
call fcn.304761d4
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 + 0x304b8614]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x3047674e
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.304761d4
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 + 0x304b8614]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x304b8714]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x304b9014]
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 0x304767ad
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x18
mov edx, 0x304b8714
lea eax, [ebp - 0x20c]
call fcn.304761d4
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 + 0x304b8614]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x10c], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jne 0x30476812
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.304761d4
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 + 0x304b8714]
xor eax, dword [ebp - 8]
movzx eax, byte [eax + 0x304b8714]
xor eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x304b9414]
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 0x30476871
mov esp, ebp
pop ebp
ret