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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx edx, byte [eax + 1]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
mov ch, byte [eax]
xor ecx, edx
movzx edx, byte [eax + 2]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
xor ecx, edx
xor ecx, dword [esi]
movzx edx, byte [eax + 5]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov ch, byte [eax + 4]
movzx ebx, byte [ebp - 0xa]
xor ecx, edx
movzx edx, byte [eax + 6]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 7]
shl ecx, 8
xor ecx, edx
xor ecx, dword [esi + 4]
movzx edx, byte [eax + 9]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov ch, byte [eax + 8]
xor ecx, edx
movzx edx, byte [eax + 0xa]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xb]
shl ecx, 8
xor ecx, edx
xor ecx, dword [esi + 8]
movzx edx, byte [eax + 0xd]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov ch, byte [eax + 0xc]
xor ecx, edx
movzx edx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl ecx, 8
xor ecx, edx
movzx edx, byte [ebp - 3]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
movzx eax, byte [ebp - 0x16]
mov ecx, dword [eax*4 + 0x400291f0]
xor ecx, dword [edx*4 + 0x400295f0]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40028df0]
mov eax, 0xff
and edx, eax
xor ecx, dword [edx*4 + 0x400299f0]
movzx edx, byte [ebp - 0x17]
mov edx, dword [edx*4 + 0x400295f0]
xor edx, dword [ebx*4 + 0x400291f0]
mov ebx, dword [ebp - 8]
xor ecx, dword [esi + 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40028df0]
mov ebx, dword [ebp - 4]
and ebx, eax
xor edx, dword [ebx*4 + 0x400299f0]
movzx ebx, byte [ebp - 0xb]
xor edx, dword [esi + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
movzx edx, byte [ebp - 6]
mov edx, dword [edx*4 + 0x400291f0]
xor edx, dword [ebx*4 + 0x400295f0]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
shr edx, 0x18
mov dword [ebp - 0x20], edx
mov edx, dword [edx*4 + 0x40028df0]
xor dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
and ebx, eax
xor edx, dword [ebx*4 + 0x400299f0]
movzx ebx, byte [ebp - 7]
xor edx, dword [esi + 0x18]
add esi, 0x20
mov dword [ebp - 0x10], edx
movzx edx, byte [ebp - 2]
mov edx, dword [edx*4 + 0x400291f0]
xor edx, dword [ebx*4 + 0x400295f0]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x18]
shr edx, 0x18
mov dword [ebp - 0x20], edx
mov edx, dword [edx*4 + 0x40028df0]
xor dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
and edx, eax
mov dword [ebp - 0x20], edx
mov edx, dword [edx*4 + 0x400299f0]
xor dword [ebp - 8], edx
mov edx, dword [ebp - 8]
xor edx, dword [esi - 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
sar edx, 1
dec edx
je 0x40006829
mov dword [ebp + 8], edx
movzx edx, byte [ebp - 0x16]
mov edx, dword [edx*4 + 0x400291f0]
movzx ebx, byte [ebp - 0xf]
xor edx, dword [ebx*4 + 0x400295f0]
mov ebx, ecx
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40028df0]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x400299f0]
movzx ebx, byte [ebp - 0x1a]
xor edx, dword [esi]
mov dword [ebp - 0xc], edx
movzx edx, byte [ebp - 0x17]
mov edx, dword [edx*4 + 0x400295f0]
xor edx, dword [ebx*4 + 0x400291f0]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40028df0]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edx, dword [ebx*4 + 0x400299f0]
movzx ebx, ch
xor edx, dword [esi + 4]
and ecx, eax
mov dword [ebp - 8], edx
movzx edx, byte [ebp - 0x12]
mov edx, dword [edx*4 + 0x400291f0]
xor edx, dword [ebx*4 + 0x400295f0]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40028df0]
mov ebx, dword [ebp - 0x18]
and ebx, eax
xor edx, dword [ebx*4 + 0x400299f0]
movzx ebx, byte [ebp - 0x13]
xor edx, dword [esi + 8]
mov dword [ebp - 4], edx
movzx edx, byte [ebp - 0xe]
mov edx, dword [edx*4 + 0x400291f0]
xor edx, dword [ebx*4 + 0x400295f0]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40028df0]
movzx ebx, byte [ebp - 3]
xor edx, dword [ecx*4 + 0x400299f0]
xor edx, dword [esi + 0xc]
mov dword [ebp - 0x18], edx
movzx ecx, byte [ebp - 0x16]
mov ecx, dword [ecx*4 + 0x400291f0]
xor ecx, dword [ebx*4 + 0x400295f0]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x40028df0]
mov ebx, dword [ebp - 8]
movzx edx, dh
mov edx, dword [edx*4 + 0x400295f0]
and ebx, eax
xor ecx, dword [ebx*4 + 0x400299f0]
movzx ebx, byte [ebp - 0xa]
xor edx, dword [ebx*4 + 0x400291f0]
mov ebx, dword [ebp - 8]
xor ecx, dword [esi + 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40028df0]
mov ebx, dword [ebp - 4]
and ebx, eax
xor edx, dword [ebx*4 + 0x400299f0]
movzx ebx, byte [ebp - 0xb]
xor edx, dword [esi + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
movzx edx, byte [ebp - 6]
mov edx, dword [edx*4 + 0x400291f0]
xor edx, dword [ebx*4 + 0x400295f0]
mov ebx, edx
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x40028df0]
mov edx, dword [ebp - 0x18]
and edx, eax
xor ebx, dword [edx*4 + 0x400299f0]
movzx edx, byte [ebp - 2]
xor ebx, dword [esi + 0x18]
mov edx, dword [edx*4 + 0x400291f0]
mov dword [ebp - 0x10], ebx
movzx ebx, byte [ebp - 7]
xor edx, dword [ebx*4 + 0x400295f0]
add esi, 0x20
mov ebx, edx
mov edx, dword [ebp - 0x18]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x40028df0]
mov edx, dword [ebp - 0xc]
and edx, eax
xor ebx, dword [edx*4 + 0x400299f0]
xor ebx, dword [esi - 4]
dec dword [ebp + 8]
mov dword [ebp - 0x18], ebx
jne 0x40006678
movzx edx, byte [ebp - 0x16]
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
movzx ebx, byte [ebp - 0xf]
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 0x14]
and ebx, eax
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, eax
xor edx, ebx
xor edx, dword [esi]
mov ebx, edx
shr ebx, 0x18
mov byte [edi], bl
mov ebx, edx
shr ebx, 0x10
mov byte [edi + 1], bl
mov byte [edi + 3], dl
mov ebx, edx
shr ebx, 8
mov byte [edi + 2], bl
movzx edx, byte [ebp - 0x1a]
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
movzx ebx, byte [ebp - 0x17]
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, eax
xor edx, ebx
xor edx, dword [esi + 4]
mov ebx, edx
shr ebx, 0x18
mov byte [edi + 4], bl
mov ebx, edx
shr ebx, 0x10
mov byte [edi + 5], bl
mov ebx, edx
shr ebx, 8
mov byte [edi + 6], bl
mov byte [edi + 7], dl
movzx edx, byte [ebp - 0x12]
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
movzx ebx, ch
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 0x18]
and ebx, eax
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, eax
xor edx, ebx
xor edx, dword [esi + 8]
mov ebx, edx
shr ebx, 0x18
mov byte [edi + 8], bl
mov ebx, edx
shr ebx, 0x10
mov byte [edi + 9], bl
mov ebx, edx
shr ebx, 8
mov byte [edi + 0xa], bl
movzx ebx, byte [ebp - 0x13]
mov byte [edi + 0xb], dl
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
movzx edx, byte [ebp - 0xe]
mov edx, dword [edx*4 + str.RRRR_t_t_t_tjjjj]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 0x18]
and ecx, eax
mov ecx, dword [ecx*4 + str.RRRR_t_t_t_tjjjj]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.RRRR_t_t_t_tjjjj]
and ecx, eax
and ebx, 0xff000000
xor edx, ebx
xor edx, ecx
xor edx, dword [esi + 0xc]
pop esi
mov eax, edx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
mov byte [edi + 0xf], dl
pop ebx
leave
ret