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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
xor ecx, dword [ebx]
mov eax, dword [edi + 4]
mov esi, eax
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
xor esi, dword [ebx + 4]
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
xor edx, dword [ebx + 8]
mov eax, edi
ror eax, 8
and eax, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or eax, edi
xor eax, dword [ebx + 0xc]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x42ef10]
xor edi, dword [ebx*4 + 0x42f310]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42eb10]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x42f710]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ebx + 0x10]
mov dword [ebp - 4], eax
shr eax, 8
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
and eax, 0xff
mov eax, dword [eax*4 + 0x42f310]
xor eax, dword [ebx*4 + 0x42ef10]
mov ebx, esi
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x42eb10]
mov ebx, edx
and ebx, 0xff
xor eax, dword [ebx*4 + 0x42f710]
mov ebx, dword [ebp + 0x10]
xor eax, dword [ebx + 0x14]
mov dword [ebp + 8], ecx
shr ecx, 8
mov ebx, esi
shr ebx, 0x10
and ecx, 0xff
and ebx, 0xff
mov dword [ebp - 8], ecx
mov ecx, dword [ebx*4 + 0x42ef10]
mov ebx, dword [ebp - 8]
xor ecx, dword [ebx*4 + 0x42f310]
mov ebx, edx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x42eb10]
mov ebx, dword [ebp - 4]
shr edx, 0x10
shr esi, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x42ef10]
and esi, 0xff
xor edx, dword [esi*4 + 0x42f310]
mov esi, dword [ebp - 4]
shr esi, 0x18
xor edx, dword [esi*4 + 0x42eb10]
mov esi, dword [ebp + 8]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x42f710]
mov ebx, dword [ebp + 0x10]
xor ecx, dword [ebx + 0x18]
and esi, 0xff
xor edx, dword [esi*4 + 0x42f710]
lea esi, [ebx + 0x20]
xor edx, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0xf0]
sar ebx, 1
dec ebx
mov dword [ebp - 4], edx
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], ebx
je 0x414b52
jmp 0x414920
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x42ef10]
xor esi, dword [ebx*4 + 0x42f310]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x42eb10]
mov ebx, eax
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42f710]
mov ebx, dword [ebp + 0x10]
xor esi, dword [ebx]
shr edx, 8
mov dword [ebp + 8], esi
mov esi, edi
shr esi, 0x10
and esi, 0xff
and edx, 0xff
mov edx, dword [edx*4 + 0x42f310]
xor edx, dword [esi*4 + 0x42ef10]
mov esi, eax
shr esi, 0x18
xor edx, dword [esi*4 + 0x42eb10]
mov esi, ecx
and esi, 0xff
xor edx, dword [esi*4 + 0x42f710]
mov esi, eax
xor edx, dword [ebx + 4]
mov ebx, edi
shr esi, 0x10
shr ebx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x42ef10]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42f310]
mov ebx, ecx
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ecx*4 + 0x42ef10]
mov ecx, dword [ebp - 0xc]
xor eax, dword [ecx*4 + 0x42f310]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x42eb10]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x42eb10]
mov ebx, dword [ebp - 4]
and edi, 0xff
xor eax, dword [edi*4 + 0x42f710]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x42f710]
mov ebx, dword [ebp + 0x10]
xor eax, dword [ebx + 0xc]
xor esi, dword [ebx + 8]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42ef10]
mov edi, esi
shr edi, 8
and edi, 0xff
xor ecx, dword [edi*4 + 0x42f310]
mov edi, dword [ebp + 8]
shr edi, 0x18
xor ecx, dword [edi*4 + 0x42eb10]
mov edi, edx
and edi, 0xff
xor ecx, dword [edi*4 + 0x42f710]
mov dword [ebp - 4], eax
xor ecx, dword [ebx + 0x10]
shr eax, 8
mov edi, ecx
mov ecx, dword [ebp + 8]
and eax, 0xff
mov eax, dword [eax*4 + 0x42f310]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x42ef10]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x42eb10]
mov ecx, esi
and ecx, 0xff
xor eax, dword [ecx*4 + 0x42f710]
mov ecx, edx
xor eax, dword [ebx + 0x14]
mov ebx, dword [ebp + 8]
shr ecx, 0x10
shr ebx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42ef10]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x42f310]
mov ebx, esi
shr esi, 0x10
shr edx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x42ef10]
and edx, 0xff
xor esi, dword [edx*4 + 0x42f310]
mov edx, dword [ebp - 4]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x42eb10]
mov ebx, dword [ebp - 4]
shr edx, 0x18
xor esi, dword [edx*4 + 0x42eb10]
mov edx, dword [ebp + 8]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x42f710]
mov ebx, dword [ebp + 0x10]
xor ecx, dword [ebx + 0x18]
and edx, 0xff
xor esi, dword [edx*4 + 0x42f710]
add ebx, 0x20
xor esi, dword [ebx - 4]
dec dword [ebp - 8]
mov edx, esi
mov dword [ebp - 4], edx
mov dword [ebp + 0x10], ebx
jne 0x414920
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
and esi, 0xff0000
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor esi, ebx
mov ebx, edi
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor esi, ebx
mov ebx, eax
and ebx, 0xff
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ebx
mov ebx, dword [ebp + 0x10]
xor esi, dword [ebx]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
mov esi, dword [ebp + 0xc]
mov dword [esi], ebx
mov esi, edi
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
and esi, 0xff0000
mov ebx, edx
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor esi, ebx
mov ebx, eax
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor esi, ebx
mov ebx, ecx
and ebx, 0xff
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ebx
mov ebx, dword [ebp + 0x10]
xor esi, dword [ebx + 4]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 4], ebx
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + str.RRRR_t_t_t_tjjjj]
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
and esi, 0xff0000
xor esi, ebx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor esi, ebx
mov ebx, edx
and ebx, 0xff
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor esi, ebx
mov ebx, dword [ebp + 0x10]
xor esi, dword [ebx + 8]
shr ecx, 0x10
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
shr eax, 8
and esi, 0xff00ff
and ecx, 0xff
or ebx, esi
mov esi, dword [ebp + 0xc]
and eax, 0xff
mov dword [esi + 8], ebx
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff0000
and eax, 0xff00
xor ecx, eax
shr edx, 0x18
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff
movzx eax, byte [edi*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff000000
xor ecx, edx
mov edx, dword [ebp + 0x10]
xor ecx, eax
xor ecx, dword [edx + 0xc]
pop edi
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [esi + 0xc], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret