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

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
je 0x10038819
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x10038819
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10038819
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
xor ecx, dword [edi]
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
xor eax, dword [edi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, dword [esi + 0xc]
push ebx
xor edx, dword [edi + 8]
mov ebx, eax
ror ebx, 8
and ebx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ebx, eax
xor ebx, dword [edi + 0xc]
mov dword [esp + 0x14], ecx
shr ecx, 0x18
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x1013c4a8]
movzx esi, dh
xor eax, dword [esi*4 + 0x1013c8a8]
mov esi, dword [ecx*4 + 0x1013c0a8]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
xor eax, esi
xor eax, dword [ecx*4 + 0x1013cca8]
xor eax, dword [edi + 0x10]
movzx esi, byte [esp + 0x16]
mov dword [esp + 0x30], esi
movzx ecx, bh
mov esi, dword [ecx*4 + 0x1013c8a8]
mov ecx, dword [esp + 0x30]
xor esi, dword [ecx*4 + 0x1013c4a8]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x1013c0a8]
mov ecx, edx
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1013cca8]
xor esi, dword [edi + 0x14]
movzx ecx, byte [esp + 0x12]
mov ecx, dword [ecx*4 + 0x1013c4a8]
mov dword [esp + 0x30], esi
movzx esi, byte [esp + 0x15]
xor ecx, dword [esi*4 + 0x1013c8a8]
mov dword [esp + 0x1c], edx
shr edx, 0x18
mov esi, dword [edx*4 + 0x1013c0a8]
mov edx, ebx
xor ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
and edx, 0xff
mov esi, dword [edx*4 + 0x1013cca8]
mov edx, dword [edi + 0x18]
xor ecx, esi
movzx esi, byte [esp + 0x11]
xor ecx, edx
movzx edx, byte [esp + 0x1e]
mov edx, dword [edx*4 + 0x1013c4a8]
xor edx, dword [esi*4 + 0x1013c8a8]
shr ebx, 0x18
mov esi, ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esi*4 + 0x1013c0a8]
mov esi, dword [esp + 0x14]
and esi, 0xff
xor edx, ebx
mov ebx, dword [esi*4 + 0x1013cca8]
mov dword [esp + 0x28], esi
mov esi, dword [edi + 0x1c]
xor edx, ebx
xor edx, esi
lea esi, [edi + 0x20]
mov edi, dword [edi + 0xf0]
sar edi, 1
dec edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
je 0x10038664
mov dword [esp + 0x28], edi
jmp 0x10038440
movzx esi, byte [esp + 0x1e]
mov esi, dword [esi*4 + 0x1013c4a8]
movzx edi, ch
xor esi, dword [edi*4 + 0x1013c8a8]
mov edi, eax
shr edi, 0x18
mov ebx, dword [edi*4 + 0x1013c0a8]
mov edi, dword [esp + 0x30]
xor esi, ebx
and edi, 0xff
mov ebx, dword [edi*4 + 0x1013cca8]
mov edi, dword [esp + 0x18]
mov ebp, dword [edi]
movzx edi, byte [esp + 0x22]
mov dword [esp + 0x1c], esi
xor esi, ebx
mov ebx, dword [edi*4 + 0x1013c4a8]
mov edi, dword [esp + 0x30]
xor esi, ebp
mov dword [esp + 0x14], esi
movzx esi, dh
mov esi, dword [esi*4 + 0x1013c8a8]
shr edi, 0x18
mov ebp, dword [edi*4 + 0x1013c0a8]
xor esi, ebx
mov edi, ecx
and edi, 0xff
mov dword [esp + 0x20], esi
xor esi, ebp
mov ebp, dword [edi*4 + 0x1013cca8]
mov edi, dword [esp + 0x18]
mov ebx, dword [edi + 4]
xor esi, ebp
xor esi, ebx
movzx edi, ah
mov ebp, dword [edi*4 + 0x1013c8a8]
movzx edi, byte [esp + 0x31]
shr ecx, 0x18
mov dword [esp + 0x10], esi
movzx esi, byte [esp + 0x32]
mov ebx, dword [esi*4 + 0x1013c4a8]
xor ebx, ebp
mov ebp, dword [ecx*4 + 0x1013c0a8]
mov ecx, edx
and ecx, 0xff
mov esi, dword [ecx*4 + 0x1013cca8]
xor ebx, ebp
mov ebp, dword [edi*4 + 0x1013c8a8]
xor ebx, esi
mov esi, dword [esp + 0x18]
xor ebx, dword [esi + 8]
movzx ecx, byte [esp + 0x26]
mov ecx, dword [ecx*4 + 0x1013c4a8]
shr edx, 0x18
mov edi, dword [edx*4 + 0x1013c0a8]
xor ecx, ebp
xor ecx, edi
mov edi, dword [esi + 0xc]
and eax, 0xff
xor ecx, dword [eax*4 + 0x1013cca8]
xor ecx, edi
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edi, dword [edx*4 + 0x1013c4a8]
movzx eax, bh
xor edi, dword [eax*4 + 0x1013c8a8]
mov edx, dword [esp + 0x14]
shr edx, 0x18
mov eax, dword [edx*4 + 0x1013c0a8]
mov edx, dword [esp + 0x10]
xor edi, eax
mov eax, edx
and eax, 0xff
mov ebp, dword [eax*4 + 0x1013cca8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x10]
xor edi, ebp
movzx ebp, byte [esp + 0x16]
xor eax, edi
shr edx, 0x18
movzx edi, ch
mov edi, dword [edi*4 + 0x1013c8a8]
xor edi, dword [ebp*4 + 0x1013c4a8]
xor edi, dword [edx*4 + 0x1013c0a8]
mov edx, ebx
and edx, 0xff
mov ebp, dword [edx*4 + 0x1013cca8]
mov edx, dword [esi + 0x14]
xor edi, ebp
xor edi, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edi
movzx edi, byte [esp + 0x12]
mov edi, dword [edi*4 + 0x1013c4a8]
movzx ebp, dh
xor edi, dword [ebp*4 + 0x1013c8a8]
shr ebx, 0x18
mov ebp, dword [ebx*4 + 0x1013c0a8]
mov ebx, dword [esi + 0x18]
xor edi, ebp
and ecx, 0xff
xor edi, dword [ecx*4 + 0x1013cca8]
xor edi, ebx
movzx ebx, byte [esp + 0x11]
mov ecx, edi
movzx edi, byte [esp + 0x1e]
mov ebp, dword [edi*4 + 0x1013c4a8]
xor ebp, dword [ebx*4 + 0x1013c8a8]
mov edi, dword [esp + 0x18]
shr edi, 0x18
mov ebx, dword [edi*4 + 0x1013c0a8]
and edx, 0xff
mov edi, dword [edx*4 + 0x1013cca8]
mov edx, dword [esi + 0x1c]
xor ebp, ebx
xor ebp, edi
mov edi, dword [esp + 0x28]
xor edx, ebp
add esi, 0x20
dec edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], edi
jne 0x10038440
mov ebp, dword [esp + 0x34]
movzx edi, byte [esp + 0x1e]
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
movzx ebx, ch
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 + 0x30]
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff
xor edi, ebx
xor edi, dword [esi]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
movzx edi, byte [esp + 0x22]
mov dword [ebp], ebx
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and edi, 0xff0000
movzx ebx, dh
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [esp + 0x30]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edi, ebx
mov ebx, ecx
and ebx, 0xff
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff
xor edi, ebx
xor edi, dword [esi + 4]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
movzx edi, byte [esp + 0x32]
shr ecx, 0x18
mov dword [ebp + 4], ebx
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff000000
and edi, 0xff0000
movzx ebx, ah
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
xor edi, ebx
xor edi, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff
xor edi, ecx
xor edi, dword [esi + 8]
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
movzx edi, byte [esp + 0x31]
mov dword [ebp + 8], ecx
movzx ecx, byte [esp + 0x26]
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, 0xff0000
mov edi, dword [edi*4 + str.RRRR_t_t_t_tjjjj]
shr edx, 0x18
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and edx, 0xff000000
and edi, 0xff00
xor ecx, edi
xor ecx, edx
mov edx, dword [esi + 0xc]
and eax, 0xff
mov eax, dword [eax*4 + str.RRRR_t_t_t_tjjjj]
and eax, 0xff
xor ecx, eax
xor ecx, edx
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
pop ebx
and ecx, 0xff00ff
pop edi
or edx, ecx
pop esi
mov dword [ebp + 0xc], edx
xor eax, eax
pop ebp
add esp, 0x1c
ret
pop edi
pop esi
mov eax, 0x86001000
pop ebp
add esp, 0x1c
ret