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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
add eax, 4
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov ebx, ecx
ror ebx, 8
rol ecx, 8
mov dword [ebp + 0xc], ebx
xor ecx, dword [ebp + 0xc]
mov ebx, edx
ror ebx, 8
push edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
rol edx, 8
mov dword [ebp - 0x10], ebx
mov ebx, edi
xor edx, dword [ebp - 0x10]
ror ebx, 8
rol edi, 8
mov dword [ebp - 8], ebx
xor edi, dword [ebp - 8]
mov ebx, esi
ror ebx, 8
rol esi, 8
mov dword [ebp - 0x14], esi
mov esi, 0xff00ff
and ecx, esi
xor ecx, dword [eax]
and edi, esi
xor ecx, dword [ebp + 0xc]
xor edi, dword [eax + 8]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
xor edi, dword [ebp - 8]
xor ecx, ebx
and ecx, esi
xor ecx, dword [eax + 0xc]
and edx, esi
xor edx, dword [eax + 4]
xor ecx, ebx
xor edx, dword [ebp - 0x10]
mov ebx, ecx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x42f528]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov ebx, edi
shr ebx, 8
movzx edi, bl
xor ecx, dword [edi*4 + 0x42f928]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
shr edi, 0x18
xor ecx, dword [edi*4 + 0x42f128]
movzx edi, dl
xor ecx, dword [edi*4 + 0x42fd28]
mov edi, edx
xor ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [ecx*4 + 0x42f928]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
movzx ecx, cl
shr edi, 0x18
xor edx, dword [edi*4 + 0x42f128]
xor edx, dword [ecx*4 + 0x42f528]
movzx ecx, byte [ebp - 0x10]
xor edx, dword [ecx*4 + 0x42fd28]
mov ecx, dword [ebp - 0x10]
xor edx, dword [eax + 0x14]
shr ecx, 0x18
mov dword [ebp - 0x18], edx
mov edi, dword [ecx*4 + 0x42f128]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
shr edx, 0x10
movzx edx, dl
xor edi, dword [edx*4 + 0x42f528]
mov edx, dword [ebp - 0x18]
xor edi, dword [ecx*4 + 0x42f928]
movzx ecx, bl
xor edi, dword [ecx*4 + 0x42fd28]
mov ecx, dword [ebp - 0x10]
xor edi, dword [eax + 0x18]
shr ecx, 0x10
mov dword [ebp - 4], edi
movzx edi, cl
shr ebx, 0x18
mov ecx, dword [ebx*4 + 0x42f128]
xor ecx, dword [edi*4 + 0x42f528]
mov ebx, dword [ebp - 0xc]
shr ebx, 8
movzx edi, bl
xor ecx, dword [edi*4 + 0x42f928]
movzx edi, byte [ebp + 0xc]
xor ecx, dword [edi*4 + 0x42fd28]
mov edi, dword [ebp + 8]
mov edi, dword [edi]
xor ecx, dword [eax + 0x1c]
shr edi, 1
add eax, 0x20
dec edi
mov dword [ebp - 0x14], edi
je 0x40a732
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x42f528]
mov ebx, dword [ebp - 4]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42f928]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
mov dword [ebp + 8], edi
xor edi, dword [ebx*4 + 0x42f128]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x42fd28]
mov ebx, ecx
xor edi, dword [eax]
shr ebx, 8
mov dword [ebp + 0xc], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x42f928]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42f128]
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], edi
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x42f528]
xor dword [ebp + 8], edi
movzx ebx, byte [ebp - 4]
mov edi, dword [ebp + 8]
xor edi, dword [ebx*4 + 0x42fd28]
mov ebx, edx
xor edi, dword [eax + 4]
shr ebx, 0x10
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
movzx ebx, bl
shr edi, 0x18
mov edi, dword [edi*4 + 0x42f128]
xor edi, dword [ebx*4 + 0x42f528]
mov ebx, dword [ebp - 8]
shr ebx, 8
mov dword [ebp + 8], edi
movzx edi, bl
mov ebx, dword [ebp + 8]
xor ebx, dword [edi*4 + 0x42f928]
movzx edi, cl
xor ebx, dword [edi*4 + 0x42fd28]
shr edx, 8
xor ebx, dword [eax + 8]
movzx edx, dl
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x42f128]
shr ebx, 0x10
movzx edi, bl
xor ecx, dword [edi*4 + 0x42f528]
mov ebx, dword [ebp + 8]
xor ecx, dword [edx*4 + 0x42f928]
movzx edx, byte [ebp - 8]
xor ecx, dword [edx*4 + 0x42fd28]
mov dword [ebp + 8], ebx
xor ecx, dword [eax + 0xc]
shr ebx, 8
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x42f528]
movzx edi, bl
xor edx, dword [edi*4 + 0x42f928]
mov edi, dword [ebp + 0xc]
shr edi, 0x18
xor edx, dword [edi*4 + 0x42f128]
movzx edi, byte [ebp - 0xc]
xor edx, dword [edi*4 + 0x42fd28]
xor edx, dword [eax + 0x10]
mov dword [ebp - 8], edx
mov edx, ecx
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
shr edx, 8
shr ebx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x42f928]
shr edi, 0x18
xor edx, dword [edi*4 + 0x42f128]
movzx edi, bl
xor edx, dword [edi*4 + 0x42f528]
mov ebx, dword [ebp + 8]
movzx edi, bl
xor edx, dword [edi*4 + 0x42fd28]
shr ebx, 0x18
xor edx, dword [eax + 0x14]
mov ebx, dword [ebx*4 + 0x42f128]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0xc]
shr edx, 0x10
movzx edi, dl
xor ebx, dword [edi*4 + 0x42f528]
mov edx, dword [ebp + 0xc]
shr edx, 8
movzx edi, dl
xor ebx, dword [edi*4 + 0x42f928]
movzx edi, cl
xor ebx, dword [edi*4 + 0x42fd28]
mov edx, dword [ebp + 8]
xor ebx, dword [eax + 0x18]
shr ecx, 0x18
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [ecx*4 + 0x42f128]
mov ecx, dword [ebp - 0xc]
xor ebx, dword [edi*4 + 0x42f528]
shr ecx, 8
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x42f928]
movzx ecx, byte [ebp + 0xc]
xor ebx, dword [ecx*4 + 0x42fd28]
add eax, 0x20
xor ebx, dword [eax - 4]
dec dword [ebp - 0x14]
mov ecx, ebx
jne 0x40a533
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
mov ebx, dword [ebp - 4]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
and edi, 0xff0000
xor edi, ebx
mov ebx, dword [ebp - 8]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
movzx ebx, dl
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebx
xor edi, dword [eax]
mov ebx, dword [ebp - 8]
shr ebx, 0x10
mov dword [ebp + 0xc], edi
movzx edi, bl
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
and edi, 0xff0000
xor edi, ebx
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
movzx ebx, byte [ebp - 4]
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebx
xor edi, dword [eax + 4]
mov ebx, edx
shr ebx, 0x10
mov dword [ebp - 0xc], edi
movzx edi, bl
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
and edi, 0xff0000
xor edi, ebx
mov ebx, dword [ebp - 8]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor edi, ebx
movzx ebx, cl
movzx ebx, byte [ebx*4 + str.RRRR_t_t_t_tjjjj]
xor edi, ebx
mov ebx, dword [ebp - 4]
shr ebx, 0x10
xor edi, dword [eax + 8]
movzx ebx, bl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
and ebx, 0xff0000
xor ebx, ecx
shr edx, 8
movzx ecx, dl
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff00
xor ebx, ecx
movzx ecx, byte [ebp - 8]
movzx ecx, byte [ecx*4 + str.RRRR_t_t_t_tjjjj]
xor ebx, ecx
xor ebx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, eax
ror ecx, 8
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
rol eax, 8
xor eax, dword [ebp + 8]
mov edx, ecx
ror edx, 8
mov dword [ebp + 0xc], edx
rol ecx, 8
xor ecx, dword [ebp + 0xc]
mov edx, edi
ror edx, 8
rol edi, 8
mov dword [ebp - 0x14], edx
xor edi, dword [ebp - 0x14]
mov edx, ebx
ror edx, 8
rol ebx, 8
and edi, esi
xor edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
xor ebx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
and eax, esi
xor eax, dword [ebp + 8]
and ecx, esi
xor ecx, dword [ebp + 0xc]
and ebx, esi
xor ebx, dword [ebp - 0x10]
mov dword [edx + 8], edi
pop edi
pop esi
mov dword [edx + 0xc], ebx
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
leave
ret