Function at 0x470345
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
lea eax, [edi - 2]
and eax, 3
mov edx, dword [ecx + eax*4 + 0xbec]
mov dword [esp + 0x1c], edx
mov eax, ebp
rol eax, 0xb
add eax, ebx
xor eax, edx
mov edx, eax
shr edx, 0x10
and edx, 0xff
movzx esi, byte [edx + ecx + 0xaec]
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + ecx + 0xaec]
shl edx, 8
or esi, edx
mov edx, eax
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + ecx + 0xaec]
and eax, 0xff
movzx eax, byte [eax + ecx + 0xaec]
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
xor esi, dword [esp + 0x10]
mov eax, ebx
ror eax, 0xf
xor eax, ebp
add eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx ebp, byte [ecx + ebp + 0xaec]
and edx, 0xff
movzx edx, byte [edx + ecx + 0xaec]
shl ebp, 8
or edx, ebp
mov ebp, eax
shr ebp, 8
and eax, 0xff
movzx eax, byte [eax + ecx + 0xaec]
and ebp, 0xff
movzx ebp, byte [ecx + ebp + 0xaec]
shl edx, 8
or edx, ebp
shl edx, 8
or edx, eax
xor edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [edi - 1]
and eax, 3
lea ebx, [ecx + eax*4 + 0xbec]
mov eax, edx
rol eax, 0xb
add eax, esi
xor eax, dword [ebx]
mov ebp, esi
mov dword [esp + 0x1c], ebx
mov esi, eax
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + ecx + 0xaec]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + ecx + 0xaec]
shl ebx, 8
or esi, ebx
mov ebx, eax
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + ecx + 0xaec]
shl esi, 8
or esi, ebx
mov dword [esp + 0x18], edx
shl esi, 8
and eax, 0xff
movzx eax, byte [eax + ecx + 0xaec]
or esi, eax
xor esi, dword [esp + 0x10]
mov eax, ebp
ror eax, 0xf
xor eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx]
mov dword [esp + 0x10], ebp
mov edx, eax
shr edx, 0x10
mov ebx, eax
and edx, 0xff
movzx edx, byte [edx + ecx + 0xaec]
shr ebx, 0x18
movzx ebx, byte [ebx + ecx + 0xaec]
shl ebx, 8
or edx, ebx
mov ebx, eax
and eax, 0xff
movzx eax, byte [eax + ecx + 0xaec]
shl edx, 8
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + ecx + 0xaec]
or edx, ebx
shl edx, 8
or edx, eax
xor edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, edi
and eax, 3
lea ebp, [ecx + eax*4 + 0xbec]
mov dword [esp + 0x1c], ebp
mov eax, edx
rol eax, 0xb
add eax, esi
xor eax, dword [ebp]
mov ebx, esi
mov esi, eax
shr esi, 0x10
mov ebp, eax
shr ebp, 0x18
movzx ebp, byte [ecx + ebp + 0xaec]
shl ebp, 8
and esi, 0xff
inc dword [eax]
add byte [eax], al
movzx esi, byte [esi + ecx + 0xaec]
or esi, ebp
mov ebp, eax
shr ebp, 8
and ebp, 0xff
movzx ebp, byte [ecx + ebp + 0xaec]
shl esi, 8
or esi, ebp
and eax, 0xff
movzx eax, byte [eax + ecx + 0xaec]
shl esi, 8
or esi, eax
xor esi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov eax, ebx
ror eax, 0xf
xor eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx]
mov edx, eax
shr edx, 0x10
mov ebp, eax
shr ebp, 0x18
movzx ebp, byte [ecx + ebp + 0xaec]
and edx, 0xff
movzx edx, byte [edx + ecx + 0xaec]
shl ebp, 8
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x18]
xor edx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
lea eax, [edi + 2]
cmp eax, 0x20
mov ebp, edx
mov ebx, esi
mov dword [esp + 0x18], ebp
jl 0x46ffb9
mov edi, dword [ecx + 0xbec]
mov eax, dword [esp + 0x28]
xor edi, esi