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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, dword [edi + 0xf0]
shr eax, 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
cmp eax, 7
ja 0x418a14
test eax, eax
je 0x418a14
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
mov ebx, eax
rol eax, 8
and eax, 0xff00ff
ror ebx, 8
and ebx, 0xff00ff00
or ebx, eax
xor ebx, dword [edi]
mov eax, ecx
mov dword [ebp - 0x1c], ebx
mov ebx, edx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
rol edx, 8
xor eax, dword [edi + 4]
and edx, 0xff00ff
ror ebx, 8
mov dword [ebp - 0x14], eax
and ebx, 0xff00ff00
or ebx, edx
xor ebx, dword [edi + 8]
mov edx, esi
ror edx, 8
and edx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or edx, esi
xor edx, dword [edi + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov ecx, dword [ecx*4 + 0x43d1e0]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43d5e0]
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43cde0]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
movzx eax, cl
shr ecx, 0x18
xor edi, dword [eax*4 + 0x43d9e0]
mov dword [ebp - 4], edi
mov eax, edi
mov edi, dword [ebp - 0x20]
xor eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x43d5e0]
xor eax, dword [ecx*4 + 0x43cde0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43d1e0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43d9e0]
mov eax, dword [ebp - 0x14]
xor ecx, dword [edi + 0x14]
shr eax, 0x10
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x18
movzx eax, al
mov ecx, dword [ecx*4 + 0x43cde0]
xor ecx, dword [eax*4 + 0x43d1e0]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
mov eax, ecx
shr eax, 8
movzx eax, al
shr ebx, 0x10
xor esi, dword [eax*4 + 0x43d5e0]
movzx eax, dl
shr edx, 0x18
xor esi, dword [eax*4 + 0x43d9e0]
mov edx, dword [edx*4 + 0x43cde0]
mov eax, esi
xor eax, dword [edi + 0x18]
mov dword [ebp - 8], esi
mov dword [ebp - 8], eax
movzx eax, bl
add edi, 0x20
xor edx, dword [eax*4 + 0x43d1e0]
mov eax, dword [ebp - 0x14]
shr eax, 8
movzx eax, al
mov dword [ebp - 0x10], edi
xor edx, dword [eax*4 + 0x43d5e0]
movzx eax, cl
xor edx, dword [eax*4 + 0x43d9e0]
xor edx, dword [edi - 4]
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
je 0x418864
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 8]
mov ecx, dword [ecx*4 + 0x43d1e0]
shr eax, 8
movzx eax, al
mov esi, dword [ebp - 0x10]
xor ecx, dword [eax*4 + 0x43d5e0]
mov eax, edi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43cde0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43d9e0]
mov eax, edx
xor ecx, dword [esi]
shr eax, 8
movzx eax, al
mov dword [ebp - 0x20], ecx
mov edx, dword [eax*4 + 0x43d5e0]
mov ecx, ebx
shr ecx, 0x18
mov eax, edi
xor edx, dword [ecx*4 + 0x43cde0]
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x43d1e0]
mov eax, dword [ebp - 8]
movzx eax, al
xor edx, dword [eax*4 + 0x43d9e0]
mov eax, ebx
xor edx, dword [esi + 4]
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 8]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
mov ebx, dword [ecx*4 + 0x43cde0]
xor ebx, dword [eax*4 + 0x43d1e0]
mov ecx, dword [ebp - 0x14]
mov eax, edi
shr eax, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x43d5e0]
movzx eax, cl
shr ecx, 0x18
xor ebx, dword [eax*4 + 0x43d9e0]
movzx eax, dl
mov edx, dword [ecx*4 + 0x43cde0]
xor edx, dword [eax*4 + 0x43d1e0]
mov eax, dword [ebp - 0xc]
shr eax, 8
xor ebx, dword [esi + 8]
movzx eax, al
xor edx, dword [eax*4 + 0x43d5e0]
mov eax, edi
movzx eax, al
xor edx, dword [eax*4 + 0x43d9e0]
xor edx, dword [esi + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov ecx, dword [ecx*4 + 0x43d1e0]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43d5e0]
mov eax, dword [ebp - 0x20]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43cde0]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
movzx eax, cl
xor edi, dword [eax*4 + 0x43d9e0]
mov dword [ebp - 4], edi
mov eax, edi
mov edi, esi
shr ecx, 0x18
xor eax, dword [edi + 0x10]
add edi, 0x20
mov dword [ebp - 4], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp - 0x10], edi
mov eax, dword [eax*4 + 0x43d5e0]
xor eax, dword [ecx*4 + 0x43cde0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43d1e0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43d9e0]
mov eax, dword [ebp - 0x1c]
xor ecx, dword [edi - 0xc]
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0x18
shr ebx, 0x10
mov ecx, dword [ecx*4 + 0x43cde0]
xor ecx, dword [eax*4 + 0x43d1e0]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
mov eax, ecx
shr eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x43d5e0]
movzx eax, dl
shr edx, 0x18
xor esi, dword [eax*4 + 0x43d9e0]
mov edx, dword [edx*4 + 0x43cde0]
mov eax, esi
xor eax, dword [edi - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 8], eax
movzx eax, bl
xor edx, dword [eax*4 + 0x43d1e0]
mov eax, dword [ebp - 0x1c]
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x43d5e0]
movzx eax, cl
xor edx, dword [eax*4 + 0x43d9e0]
xor edx, dword [edi - 4]
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
jne 0x418658
mov eax, edx
shr eax, 0x10
movzx eax, al
mov edx, dword [ebp - 8]
mov ecx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
mov ebx, dword [ebp - 0xc]
mov eax, edx
shr eax, 8
movzx eax, al
and ecx, 0xff0000
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff00
xor ecx, eax
mov eax, dword [ebp - 4]
shr eax, 0x18
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff000000
xor ecx, eax
movzx eax, bl
movzx eax, byte [eax*4 + str.RRRR_t_t_t_tjjjj]
xor ecx, eax
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi]
mov edi, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
mov eax, dword [ebp - 0x14]
shr eax, 8
movzx eax, al
and edi, 0xff0000
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff00
xor edi, eax
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff000000
xor edi, eax
movzx eax, dl
movzx eax, byte [eax*4 + str.RRRR_t_t_t_tjjjj]
xor edi, eax
mov eax, dword [ebp - 0x10]
xor edi, dword [eax + 4]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
mov esi, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
mov eax, edx
shr eax, 0x18
and esi, 0xff0000
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff000000
xor esi, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
shr edx, 0x10
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff00
xor esi, eax
mov eax, dword [ebp - 0x14]
movzx eax, al
movzx eax, byte [eax*4 + str.RRRR_t_t_t_tjjjj]
xor esi, eax
mov eax, dword [ebp - 0x10]
xor esi, dword [eax + 8]
movzx eax, dl
mov edx, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
mov eax, dword [ebp - 0x14]
shr eax, 0x18
and edx, 0xff0000
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff000000
xor edx, eax
movzx eax, bl
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff00
xor edx, eax
mov eax, dword [ebp - 4]
movzx eax, al
movzx eax, byte [eax*4 + str.RRRR_t_t_t_tjjjj]
xor edx, eax
mov eax, dword [ebp - 0x10]
pop ebx
xor edx, dword [eax + 0xc]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, edi
ror eax, 8
and eax, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or eax, edi
mov dword [ecx + 4], eax
mov eax, esi
ror eax, 8
and eax, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or eax, esi
mov dword [ecx + 8], eax
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov dword [ecx + 0xc], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret