Function at 0x4ff5d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, 8
call fcn.004a72f0
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ebx
push ebp
mov ebx, eax
ror ebx, 8
and ebx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ebx, eax
mov eax, ecx
push esi
mov esi, dword [esp + 0x20]
xor ebx, dword [esi]
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov ecx, dword [edx + 8]
xor eax, dword [esi + 4]
push edi
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov ecx, dword [edx + 0xc]
xor edi, dword [esi + 8]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
xor edx, dword [esi + 0xc]
mov ebp, edi
shr ebp, 8
and ebp, 0xff
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5664a0]
xor ecx, dword [ebp*4 + 0x5668a0]
mov ebp, ebx
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x5660a0]
mov dword [esp + 0x10], edx
shr edx, 8
mov ebp, eax
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x566ca0]
and edx, 0xff
mov edx, dword [edx*4 + 0x5668a0]
xor ecx, dword [esi + 0x10]
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
xor edx, dword [ebp*4 + 0x5664a0]
mov ebp, eax
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x5660a0]
mov ebp, edi
and ebp, 0xff
xor edx, dword [ebp*4 + 0x566ca0]
mov ebp, ebx
xor edx, dword [esi + 0x14]
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5664a0]
shr ebp, 8
and ebp, 0xff
xor esi, dword [ebp*4 + 0x5668a0]
mov ebp, edi
mov dword [esp + 0x1c], ecx
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x5660a0]
mov ebp, dword [esp + 0x10]
and ebp, 0xff
xor esi, dword [ebp*4 + 0x566ca0]
mov ebp, dword [esp + 0x24]
xor esi, dword [ebp + 0x18]
shr eax, 8
and eax, 0xff
shr edi, 0x10
and edi, 0xff
mov ebp, dword [edi*4 + 0x5664a0]
xor ebp, dword [eax*4 + 0x5668a0]
mov eax, dword [esp + 0x10]
shr eax, 0x18
xor ebp, dword [eax*4 + 0x5660a0]
mov eax, dword [esp + 0x24]
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x566ca0]
lea ebx, [eax + 0x20]
xor ebp, dword [eax + 0x1c]
mov eax, dword [eax + 0xf0]
sar eax, 1
dec eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], eax
je 0x4ff9bc
nop
mov edi, esi
mov eax, ebp
shr eax, 0x10
and eax, 0xff
shr edi, 8
and edi, 0xff
mov dword [esp + 0x14], edi
mov edi, dword [eax*4 + 0x5664a0]
mov eax, dword [esp + 0x14]
xor edi, dword [eax*4 + 0x5668a0]
mov eax, ecx
shr eax, 0x18
xor edi, dword [eax*4 + 0x5660a0]
mov eax, edx
and eax, 0xff
xor edi, dword [eax*4 + 0x566ca0]
mov eax, ebp
xor edi, dword [ebx]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x5668a0]
xor eax, dword [ebx*4 + 0x5664a0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5660a0]
mov ebx, esi
and ebx, 0xff
xor eax, dword [ebx*4 + 0x566ca0]
mov ebx, dword [esp + 0x24]
xor eax, dword [ebx + 4]
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx*4 + 0x5664a0]
mov ebx, dword [esp + 0x14]
xor ecx, dword [ebx*4 + 0x5668a0]
mov ebx, esi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x5660a0]
mov ebx, ebp
shr esi, 0x10
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x566ca0]
mov ebx, dword [esp + 0x24]
xor ecx, dword [ebx + 8]
and esi, 0xff
mov ebx, dword [esi*4 + 0x5664a0]
shr edx, 8
shr ebp, 0x18
and edx, 0xff
xor ebx, dword [edx*4 + 0x5668a0]
mov edx, dword [esp + 0x1c]
xor ebx, dword [ebp*4 + 0x5660a0]
and edx, 0xff
xor ebx, dword [edx*4 + 0x566ca0]
mov edx, dword [esp + 0x24]
xor ebx, dword [edx + 0xc]
mov ebp, ecx
shr ebp, 8
mov esi, ebx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5664a0]
and ebp, 0xff
xor esi, dword [ebp*4 + 0x5668a0]
mov ebp, edi
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x5660a0]
mov ebp, eax
and ebp, 0xff
xor esi, dword [ebp*4 + 0x566ca0]
xor esi, dword [edx + 0x10]
mov dword [esp + 0x1c], esi
mov esi, ebx
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x5668a0]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xff
xor esi, dword [ebp*4 + 0x5664a0]
mov ebp, eax
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x5660a0]
mov ebp, ecx
and ebp, 0xff
xor esi, dword [ebp*4 + 0x566ca0]
mov ebp, edi
xor esi, dword [edx + 0x14]
shr ebp, 8
mov edx, esi
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x5664a0]
and ebp, 0xff
xor esi, dword [ebp*4 + 0x5668a0]
mov ebp, ecx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5664a0]
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x5660a0]
shr eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5668a0]
mov ebp, ebx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x5660a0]
and ebp, 0xff
xor esi, dword [ebp*4 + 0x566ca0]
mov ebp, dword [esp + 0x24]
xor esi, dword [ebp + 0x18]
add dword [esp + 0x24], 0x20
mov ebx, dword [esp + 0x24]
and edi, 0xff
xor ecx, dword [edi*4 + 0x566ca0]
xor ecx, dword [ebp + 0x1c]
dec dword [esp + 0x10]
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
jne 0x4ff780
mov eax, ebp
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x5670a0]
mov edi, ecx
shr edi, 0x18
movzx edi, byte [edi + 0x5670a0]
shl edi, 8
xor eax, edi
shl eax, 8
mov edi, esi
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x5670a0]
xor eax, edi
shl eax, 8
mov edi, edx
and edi, 0xff
movzx edi, byte [edi + 0x5670a0]
xor eax, edi
xor eax, dword [ebx]
mov edi, eax
ror edi, 8
and edi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [eax], edi
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x5670a0]
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + 0x5670a0]
shl edi, 8
xor eax, edi
shl eax, 8
mov edi, ebp
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x5670a0]
xor eax, edi
shl eax, 8
mov edi, esi
and edi, 0xff
movzx edi, byte [edi + 0x5670a0]
xor eax, edi
xor eax, dword [ebx + 4]
mov edi, eax
ror edi, 8
and edi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [eax + 4], edi
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x5670a0]
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi + 0x5670a0]
shl edi, 8
xor eax, edi
mov edi, ecx
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x5670a0]
shl eax, 8
xor eax, edi
mov edi, ebp
and edi, 0xff
movzx edi, byte [edi + 0x5670a0]
shl eax, 8
xor eax, edi
xor eax, dword [ebx + 8]
mov edi, eax
ror edi, 8
and edi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edi, eax
shr esi, 0x10
and esi, 0xff
mov eax, edi
mov edi, dword [esp + 0x20]
mov dword [edi + 8], eax
movzx eax, byte [esi + 0x5670a0]
shr ebp, 0x18
movzx esi, byte [ebp + 0x5670a0]
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x5670a0]
shl esi, 8
xor eax, esi
shl eax, 8
xor eax, edx
and ecx, 0xff
movzx ecx, byte [ecx + 0x5670a0]
shl eax, 8
xor eax, ecx
xor eax, dword [ebx + 0xc]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret