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

Disassembly:
xor eax, eax
sub esp, 0xc
cmp dword [0x5a8908], eax
je 0x4fada8
push ebx
mov dword [0x5a8908], eax
push esi
jmp 0x4fa860
mov bl, byte [eax + 0x5a8708]
mov cl, bl
and cl, 2
neg cl
sbb cl, cl
and cl, 0xb4
mov dl, bl
and dl, 1
mov byte [esp + 0xb], dl
neg dl
sbb dl, dl
and dl, 0x5a
mov byte [esp + 9], dl
mov dl, bl
shr dl, 2
xor dl, byte [esp + 9]
xor dl, cl
xor dl, bl
mov byte [esp + 0xc], dl
mov dl, bl
shr dl, 1
xor dl, bl
mov bl, byte [esp + 0xb]
shr dl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor dl, bl
xor dl, byte [esp + 9]
mov bl, byte [eax + 0x5a8808]
xor dl, cl
xor dl, byte [eax + 0x5a8708]
mov cl, bl
and cl, 2
neg cl
sbb cl, cl
and cl, 0xb4
mov byte [esp + 0xa], cl
mov cl, bl
and cl, 1
mov byte [esp + 0xb], cl
neg cl
sbb cl, cl
and cl, 0x5a
mov byte [esp + 9], cl
mov cl, bl
shr cl, 2
xor cl, byte [esp + 9]
xor cl, byte [esp + 0xa]
xor cl, bl
mov byte [esp + 0xd], cl
mov cl, bl
shr cl, 1
xor cl, bl
mov bl, byte [esp + 0xb]
shr cl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor cl, bl
xor cl, byte [esp + 9]
mov bl, byte [eax + 0x5a8808]
xor cl, byte [esp + 0xa]
mov byte [esp + 0x10], bl
xor cl, bl
movzx ebx, byte [esp + 0xd]
mov byte [esp + 0x11], bl
movzx ebx, byte [esp + 0xc]
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
mov esi, dword [esp + 0x10]
mov byte [esp + 0x12], bl
mov bl, byte [eax + 0x5a8708]
mov byte [esp + 0x13], bl
movzx ebx, byte [esp + 0xd]
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], dl
mov dword [eax*4 + 0x6004b8], esi
mov esi, dword [esp + 0x10]
mov dword [eax*4 + 0x6008b8], esi
mov byte [esp + 0x10], bl
mov bl, byte [eax + 0x5a8808]
mov byte [esp + 0x11], cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], bl
mov ecx, dword [esp + 0x10]
mov bl, byte [esp + 0xc]
mov dword [eax*4 + 0x600cb8], ecx
mov cl, byte [eax + 0x5a8708]
mov byte [esp + 0x11], cl
mov cl, byte [eax + 0x5a8709]
mov byte [esp + 0x12], dl
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], bl
mov edx, dword [esp + 0x10]
mov dword [eax*4 + 0x6010b8], edx
mov dl, cl
and dl, 2
neg dl
sbb dl, dl
and dl, 0xb4
mov byte [esp + 0xa], dl
mov dl, cl
and dl, 1
mov byte [esp + 0xb], dl
neg dl
sbb dl, dl
and dl, 0x5a
mov bl, byte [esp + 0xb]
mov byte [esp + 9], dl
mov dl, cl
shr dl, 2
xor dl, byte [esp + 9]
xor dl, byte [esp + 0xa]
xor dl, cl
mov byte [esp + 0xc], dl
mov dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor dl, bl
xor dl, byte [esp + 9]
mov bl, byte [eax + 0x5a8809]
xor dl, byte [esp + 0xa]
xor dl, cl
mov cl, bl
and cl, 2
neg cl
sbb cl, cl
and cl, 0xb4
mov byte [esp + 0xa], cl
mov cl, bl
and cl, 1
mov byte [esp + 0xb], cl
neg cl
sbb cl, cl
and cl, 0x5a
mov byte [esp + 9], cl
mov cl, bl
shr cl, 2
xor cl, byte [esp + 9]
xor cl, byte [esp + 0xa]
xor cl, bl
mov byte [esp + 0xd], cl
mov cl, bl
shr cl, 1
xor cl, bl
mov bl, byte [esp + 0xb]
shr cl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor cl, bl
xor cl, byte [esp + 9]
mov bl, byte [eax + 0x5a8809]
xor cl, byte [esp + 0xa]
mov byte [esp + 0x10], bl
xor cl, bl
movzx ebx, byte [esp + 0xd]
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x11], bl
mov esi, dword [esp + 0x10]
movzx ebx, byte [esp + 0xc]
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], bl
mov bl, byte [eax + 0x5a8709]
mov byte [esp + 0x13], bl
movzx ebx, byte [esp + 0xd]
mov dword [eax*4 + 0x6004bc], esi
mov esi, dword [esp + 0x10]
mov byte [esp + 0x11], cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x10], bl
mov bl, byte [eax + 0x5a8809]
mov byte [esp + 0x12], bl
mov ecx, dword [esp + 0x10]
mov bl, byte [esp + 0xc]
mov byte [esp + 0x12], dl
mov dword [eax*4 + 0x600cbc], ecx
mov cl, byte [eax + 0x5a8709]
mov byte [esp + 0x11], cl
mov cl, byte [eax + 0x5a870a]
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], bl
mov edx, dword [esp + 0x10]
mov dword [eax*4 + 0x6010bc], edx
mov dl, cl
and dl, 2
neg dl
sbb dl, dl
and dl, 0xb4
mov byte [esp + 0xa], dl
mov dl, cl
and dl, 1
mov byte [esp + 0xb], dl
neg dl
sbb dl, dl
and dl, 0x5a
mov bl, byte [esp + 0xb]
mov byte [esp + 9], dl
mov dl, cl
shr dl, 2
xor dl, byte [esp + 9]
mov dword [eax*4 + 0x6008bc], esi
xor dl, byte [esp + 0xa]
xor dl, cl
mov byte [esp + 0xc], dl
mov dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor dl, bl
xor dl, byte [esp + 9]
mov bl, byte [eax + 0x5a880a]
xor dl, byte [esp + 0xa]
xor dl, cl
mov cl, bl
and cl, 2
neg cl
sbb cl, cl
and cl, 0xb4
mov byte [esp + 0xa], cl
mov cl, bl
and cl, 1
mov byte [esp + 0xb], cl
neg cl
sbb cl, cl
and cl, 0x5a
mov byte [esp + 9], cl
mov cl, bl
shr cl, 2
xor cl, byte [esp + 9]
xor cl, byte [esp + 0xa]
xor cl, bl
mov byte [esp + 0xd], cl
mov cl, bl
shr cl, 1
xor cl, bl
mov bl, byte [esp + 0xb]
shr cl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor cl, bl
xor cl, byte [esp + 9]
mov bl, byte [eax + 0x5a880a]
xor cl, byte [esp + 0xa]
mov byte [esp + 0x10], bl
xor cl, bl
movzx ebx, byte [esp + 0xd]
mov byte [esp + 0x11], bl
movzx ebx, byte [esp + 0xc]
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
mov esi, dword [esp + 0x10]
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], bl
mov bl, byte [eax + 0x5a870a]
mov byte [esp + 0x13], bl
movzx ebx, byte [esp + 0xd]
mov dword [eax*4 + 0x6004c0], esi
mov esi, dword [esp + 0x10]
mov byte [esp + 0x10], bl
mov bl, byte [eax + 0x5a880a]
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], bl
mov bl, byte [esp + 0xc]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x12], dl
mov dword [eax*4 + 0x600cc0], ecx
mov cl, byte [eax + 0x5a870a]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], cl
mov cl, byte [eax + 0x5a870b]
mov byte [esp + 0x13], bl
mov edx, dword [esp + 0x10]
mov dword [eax*4 + 0x6010c0], edx
mov dl, cl
and dl, 2
neg dl
sbb dl, dl
and dl, 0xb4
mov byte [esp + 0xa], dl
mov dl, cl
and dl, 1
mov byte [esp + 0xb], dl
neg dl
sbb dl, dl
and dl, 0x5a
mov bl, byte [esp + 0xb]
mov byte [esp + 9], dl
mov dl, cl
shr dl, 2
xor dl, byte [esp + 9]
mov dword [eax*4 + 0x6008c0], esi
xor dl, byte [esp + 0xa]
xor dl, cl
mov byte [esp + 0xc], dl
mov dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor dl, bl
xor dl, byte [esp + 9]
mov bl, byte [eax + 0x5a880b]
xor dl, byte [esp + 0xa]
xor dl, cl
mov cl, bl
and cl, 2
neg cl
sbb cl, cl
and cl, 0xb4
mov byte [esp + 0xa], cl
mov cl, bl
and cl, 1
mov byte [esp + 0xb], cl
neg cl
sbb cl, cl
and cl, 0x5a
mov byte [esp + 9], cl
mov cl, bl
shr cl, 2
xor cl, byte [esp + 9]
xor cl, byte [esp + 0xa]
xor cl, bl
mov byte [esp + 0xd], cl
mov cl, bl
shr cl, 1
xor cl, bl
mov bl, byte [esp + 0xb]
shr cl, 1
neg bl
sbb bl, bl
and bl, 0xb4
xor cl, bl
xor cl, byte [esp + 9]
mov bl, byte [eax + 0x5a880b]
xor cl, byte [esp + 0xa]
mov byte [esp + 0x10], bl
xor cl, bl
movzx ebx, byte [esp + 0xd]
mov byte [esp + 0x11], bl
movzx ebx, byte [esp + 0xc]
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
mov esi, dword [esp + 0x10]
mov byte [esp + 0x12], bl
mov bl, byte [eax + 0x5a870b]
mov byte [esp + 0x13], bl
movzx ebx, byte [esp + 0xd]
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], dl
mov dword [eax*4 + 0x6004c4], esi
mov esi, dword [esp + 0x10]
mov byte [esp + 0x10], bl
mov bl, byte [eax + 0x5a880b]
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], bl
mov bl, byte [esp + 0xc]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x10]
mov dword [eax*4 + 0x600cc4], ecx
mov cl, byte [eax + 0x5a870b]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], bl
mov edx, dword [esp + 0x10]
mov dword [eax*4 + 0x6008c4], esi
mov dword [eax*4 + 0x6010c4], edx
add eax, 4
cmp eax, 0x100
jl 0x4fa860
pop esi
pop ebx
add esp, 0xc
ret