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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov eax, dword [ebx]
mov esi, dword [esp + 0x24]
mov edx, eax
push edi
mov edi, dword [esi]
mov ecx, dword [ebx + 8]
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, dword [ebx + 4]
xor edx, edi
mov edi, eax
ror edi, 8
and edi, 0xff00ff00
mov ebx, dword [ebx + 0xc]
rol eax, 8
and eax, 0xff00ff
mov dword [esp + 0x1c], edx
or edi, eax
mov eax, dword [esi + 4]
xor edi, eax
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
mov dword [esp + 0x18], edi
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov ecx, dword [esi + 8]
xor eax, ecx
mov ecx, ebx
ror ecx, 8
and ecx, 0xff00ff00
mov dword [esp + 0x30], eax
rol ebx, 8
and ebx, 0xff00ff
or ecx, ebx
mov ebx, dword [esi + 0xc]
xor ecx, ebx
xor ebx, ebx
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cl, byte [esp + 0x2a]
mov bl, ah
mov eax, dword [ecx*4 + 0x4b26f0]
mov ecx, dword [ebx*4 + 0x4b2af0]
xor eax, ecx
mov ecx, edx
shr ecx, 0x18
mov ebx, dword [ecx*4 + 0x4b22f0]
mov ecx, edi
and ecx, 0xff
xor eax, ebx
shr edi, 0x18
mov ebx, dword [ecx*4 + 0x4b2ef0]
mov ecx, dword [esi + 0x10]
xor eax, ebx
xor ebx, ebx
mov bl, byte [esp + 0x1e]
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov cl, byte [esp + 0x29]
mov ebp, dword [ebx*4 + 0x4b26f0]
mov ebx, dword [edi*4 + 0x4b22f0]
mov edi, dword [esp + 0x30]
mov ecx, dword [ecx*4 + 0x4b2af0]
and edi, 0xff
xor ecx, ebp
xor ecx, ebx
mov ebx, dword [edi*4 + 0x4b2ef0]
mov edi, dword [esi + 0x14]
xor ecx, ebx
xor ecx, edi
mov dword [esp + 0x14], ecx
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esp + 0x1a]
mov bl, dh
mov edx, dword [esp + 0x30]
add esi, 0x20
mov ecx, dword [ecx*4 + 0x4b26f0]
mov ebp, dword [ebx*4 + 0x4b2af0]
shr edx, 0x18
xor ecx, ebp
mov ebp, dword [edx*4 + 0x4b22f0]
mov edx, dword [esp + 0x28]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [esi - 8]
mov edi, dword [edx*4 + 0x4b2ef0]
xor edx, edx
mov dl, byte [esp + 0x19]
xor ecx, edi
xor ecx, ebp
mov ebx, dword [edx*4 + 0x4b2af0]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cl, byte [esp + 0x32]
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x4b26f0]
mov ebp, dword [edx*4 + 0x4b22f0]
mov edx, dword [esp + 0x1c]
and edx, 0xff
xor ecx, ebx
xor ecx, ebp
mov edi, dword [edx*4 + 0x4b2ef0]
mov edx, dword [esi - 4]
xor ecx, edi
xor ecx, edx
mov edx, dword [esp + 0x2c]
sar edx, 1
dec edx
mov dword [esp + 0x28], ecx
je 0x4a003e
mov ebp, edx
xor edx, edx
xor ecx, ecx
mov dl, byte [esp + 0x11]
mov cl, byte [esp + 0x2a]
mov edi, dword [edx*4 + 0x4b2af0]
mov ecx, dword [ecx*4 + 0x4b26f0]
mov edx, eax
xor ecx, edi
shr edx, 0x18
mov edi, dword [edx*4 + 0x4b22f0]
mov edx, dword [esp + 0x14]
xor ecx, edi
mov edi, edx
and edi, 0xff
mov ebx, dword [edi*4 + 0x4b2ef0]
xor ecx, ebx
mov ebx, dword [esi]
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esp + 0x22]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov cl, byte [esp + 0x29]
mov edi, dword [ebx*4 + 0x4b26f0]
mov ecx, dword [ecx*4 + 0x4b2af0]
xor ecx, edi
mov edi, edx
shr edi, 0x18
mov ebx, dword [edi*4 + 0x4b22f0]
mov edi, dword [esp + 0x10]
and edi, 0xff
xor ecx, ebx
mov ebx, dword [edi*4 + 0x4b2ef0]
xor ecx, ebx
mov ebx, dword [esi + 4]
xor ecx, ebx
xor ebx, ebx
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov cl, byte [esp + 0x16]
mov bl, ah
and eax, 0xff
mov ecx, dword [ecx*4 + 0x4b26f0]
mov edi, dword [ebx*4 + 0x4b2af0]
xor ecx, edi
mov edi, dword [esp + 0x10]
shr edi, 0x18
mov ebx, dword [edi*4 + 0x4b22f0]
mov edi, dword [esp + 0x28]
and edi, 0xff
xor ecx, ebx
mov ebx, dword [edi*4 + 0x4b2ef0]
mov edi, dword [esi + 8]
xor ecx, ebx
xor ebx, ebx
xor ecx, edi
mov bl, dh
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov cl, byte [esp + 0x12]
mov edx, dword [ebx*4 + 0x4b2af0]
mov ecx, dword [ecx*4 + 0x4b26f0]
xor ecx, edx
mov edx, dword [esp + 0x28]
shr edx, 0x18
mov ebx, dword [edx*4 + 0x4b22f0]
mov edx, dword [eax*4 + 0x4b2ef0]
xor ecx, ebx
mov ebx, dword [esi + 0xc]
xor ecx, edx
xor eax, eax
xor ecx, ebx
xor edx, edx
mov dl, byte [esp + 0x31]
mov dword [esp + 0x28], ecx
mov al, byte [esp + 0x2a]
mov edi, dword [edx*4 + 0x4b2af0]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax*4 + 0x4b26f0]
xor eax, edi
mov edi, edx
shr edi, 0x18
add esi, 0x20
mov ebx, dword [edi*4 + 0x4b22f0]
mov edi, dword [esp + 0x18]
xor eax, ebx
mov ebx, edi
and ebx, 0xff
shr edi, 0x18
xor eax, dword [ebx*4 + 0x4b2ef0]
mov ebx, dword [esi - 0x10]
xor eax, ebx
xor ebx, ebx
mov bl, ch
xor ecx, ecx
mov cl, byte [esp + 0x1e]
mov dword [esp + 0x20], eax
mov ebx, dword [ebx*4 + 0x4b2af0]
xor ebx, dword [ecx*4 + 0x4b26f0]
mov ecx, dword [edi*4 + 0x4b22f0]
xor ebx, ecx
mov ecx, dword [esp + 0x30]
and ecx, 0xff
mov edi, dword [ecx*4 + 0x4b2ef0]
xor ecx, ecx
mov cl, byte [esp + 0x1a]
xor ebx, edi
mov edi, dword [esi - 0xc]
xor ebx, edi
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov bl, dh
mov edx, dword [ecx*4 + 0x4b26f0]
mov ecx, dword [ebx*4 + 0x4b2af0]
mov ebx, dword [esi - 8]
xor edx, ecx
mov ecx, dword [esp + 0x30]
shr ecx, 0x18
mov edi, dword [ecx*4 + 0x4b22f0]
mov ecx, dword [esp + 0x28]
and ecx, 0xff
xor edx, edi
mov edi, dword [ecx*4 + 0x4b2ef0]
xor ecx, ecx
mov cl, byte [esp + 0x19]
xor edx, edi
xor edx, ebx
mov ebx, dword [esi - 4]
mov edi, dword [ecx*4 + 0x4b2af0]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [esp + 0x32]
shr ecx, 0x18
mov edx, dword [edx*4 + 0x4b26f0]
xor edx, edi
mov edi, dword [ecx*4 + 0x4b22f0]
mov ecx, dword [esp + 0x1c]
xor edx, edi
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4b2ef0]
xor edx, ebx
dec ebp
mov ecx, edx
mov dword [esp + 0x28], ecx
jne 0x49fe08
xor edx, edx
xor ebx, ebx
mov dl, byte [esp + 0x2a]
mov ebp, dword [esp + 0x34]
mov edi, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
mov edx, dword [esp + 0x10]
mov bl, dh
and edi, 0xff0000
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor edi, ebx
mov ebx, eax
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
mov ebx, dword [esp + 0x14]
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff
xor edi, ebx
mov ebx, dword [esi]
xor edi, ebx
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [esp + 0x22]
mov edi, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor ebx, ebx
mov bl, ch
and edi, 0xff0000
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [esp + 0x14]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
mov ebx, edx
and ebx, 0xff
shr edx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff
xor edi, ebx
mov ebx, dword [esi + 4]
xor edi, ebx
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov dword [ebp + 4], ebx
xor ebx, ebx
mov bl, byte [esp + 0x16]
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff000000
mov edi, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor ebx, ebx
mov bl, ah
and edi, 0xff0000
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor edi, ebx
xor edi, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff
xor edi, edx
mov edx, dword [esi + 8]
xor edi, edx
mov edx, edi
ror edx, 8
and edx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
and eax, 0xff
or edx, edi
mov dword [ebp + 8], edx
xor edx, edx
mov dl, byte [esp + 0x12]
shr ecx, 0x18
mov edi, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
xor edx, edx
mov dl, byte [esp + 0x15]
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
and ecx, 0xff000000
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff00
xor edi, edx
mov edx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ecx
and edx, 0xff
xor edi, edx
mov edx, dword [esi + 0xc]
xor edi, edx
mov eax, edi
ror eax, 8
and eax, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or eax, edi
pop edi
mov dword [ebp + 0xc], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret