Function at 0x4a7961
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov ch, byte [eax]
movzx edx, byte [eax + 1]
push ebx
push esi
mov esi, dword [ebp + 8]
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 + 0x10], ecx
xor ecx, ecx
mov ch, byte [eax + 4]
xor ebx, ebx
mov bh, byte [eax + 0xc]
push edi
movzx edi, byte [ebp + 0x11]
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 [ebp + 0xa]
mov dword [ebp - 4], ecx
movzx ecx, byte [eax + 0xd]
xor ebx, ecx
movzx ecx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl ebx, 8
xor ebx, ecx
shl ebx, 8
xor ebx, eax
movzx eax, byte [ebp - 3]
mov ecx, dword [eax*4 + 0x417318]
xor ecx, dword [edx*4 + 0x416f18]
xor ebx, dword [esi + 0xc]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x416b18]
mov eax, 0xff
mov edx, ebx
and edx, eax
xor ecx, dword [edx*4 + 0x417718]
movzx edx, byte [ebp - 2]
xor ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x417318]
xor ecx, dword [edx*4 + 0x416f18]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x416b18]
mov edx, dword [ebp + 0x10]
and edx, eax
xor ecx, dword [edx*4 + 0x417718]
xor ecx, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [ebp - 0xe]
mov edx, dword [ecx*4 + 0x416f18]
xor edx, dword [edi*4 + 0x417318]
mov ecx, dword [ebp - 4]
movzx edi, byte [ebp + 0x12]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x416b18]
mov ecx, dword [ebp + 8]
and ecx, eax
xor edx, dword [ecx*4 + 0x417718]
movzx ecx, byte [ebp + 9]
mov ecx, dword [ecx*4 + 0x417318]
xor ecx, dword [edi*4 + 0x416f18]
xor edx, dword [esi + 0x18]
shr ebx, 0x18
mov edi, ebx
xor ecx, dword [edi*4 + 0x416b18]
mov edi, dword [ebp - 4]
and edi, eax
xor ecx, dword [edi*4 + 0x417718]
mov dword [ebp + 0x10], ebx
xor ecx, dword [esi + 0x1c]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
sar edi, 1
add esi, 0x20
dec edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
je 0x4a7c99
mov dword [ebp + 0xc], edi
movzx ebx, byte [ebp - 0xa]
movzx edi, dh
mov edi, dword [edi*4 + 0x417318]
xor edi, dword [ebx*4 + 0x416f18]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x416b18]
mov ebx, ecx
and ebx, eax
xor edi, dword [ebx*4 + 0x417718]
movzx ebx, byte [ebp - 0x12]
xor edi, dword [esi]
movzx ecx, ch
mov dword [ebp + 0x10], edi
mov edi, dword [ecx*4 + 0x417318]
xor edi, dword [ebx*4 + 0x416f18]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x416b18]
mov ecx, dword [ebp - 8]
movzx ebx, byte [ebp - 6]
and ecx, eax
xor edi, dword [ecx*4 + 0x417718]
movzx ecx, byte [ebp - 0xe]
xor edi, dword [esi + 4]
mov ecx, dword [ecx*4 + 0x416f18]
mov dword [ebp + 8], edi
movzx edi, byte [ebp - 7]
xor ecx, dword [edi*4 + 0x417318]
mov edi, edx
shr edi, 0x18
xor ecx, dword [edi*4 + 0x416b18]
mov edi, dword [ebp - 0xc]
and edi, eax
xor ecx, dword [edi*4 + 0x417718]
movzx edi, byte [ebp - 0xb]
mov edi, dword [edi*4 + 0x417318]
xor edi, dword [ebx*4 + 0x416f18]
xor ecx, dword [esi + 8]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x416b18]
movzx edi, byte [ebp + 0xa]
and edx, eax
xor ebx, dword [edx*4 + 0x417718]
movzx edx, ch
mov edx, dword [edx*4 + 0x417318]
xor edx, dword [edi*4 + 0x416f18]
xor ebx, dword [esi + 0xc]
mov edi, dword [ebp + 0x10]
shr edi, 0x18
xor edx, dword [edi*4 + 0x416b18]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x417718]
mov dword [ebp - 4], ecx
xor edx, dword [esi + 0x10]
movzx edi, byte [ebp - 2]
mov dword [ebp - 8], edx
movzx edx, bh
mov edx, dword [edx*4 + 0x417318]
xor edx, dword [edi*4 + 0x416f18]
mov edi, dword [ebp + 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x416b18]
mov edi, dword [ebp + 0x10]
and edi, eax
xor edx, dword [edi*4 + 0x417718]
movzx edi, byte [ebp + 0x11]
xor edx, dword [esi + 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
movzx edx, byte [ebp - 0xe]
mov edx, dword [edx*4 + 0x416f18]
xor edx, dword [edi*4 + 0x417318]
mov edi, ecx
shr edi, 0x18
xor edx, dword [edi*4 + 0x416b18]
mov edi, dword [ebp + 8]
movzx ebx, byte [ebp + 0x12]
and edi, eax
xor edx, dword [edi*4 + 0x417718]
movzx edi, byte [ebp + 9]
mov edi, dword [edi*4 + 0x417318]
xor edi, dword [ebx*4 + 0x416f18]
xor edx, dword [esi + 0x18]
mov ebx, edi
mov edi, dword [ebp - 0x10]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x416b18]
and ecx, eax
xor ebx, dword [ecx*4 + 0x417718]
add esi, 0x20
xor ebx, dword [esi - 4]
dec dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
jne 0x4a7aea
movzx edi, byte [ebp - 0xa]
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff0000
movzx ebx, dh
mov ebx, dword [ebx*4 + 0x417b18]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [ebp - 8]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x417b18]
and ebx, 0xff000000
xor edi, ebx
and ecx, eax
mov ecx, dword [ecx*4 + 0x417b18]
and ecx, eax
xor edi, ecx
xor edi, dword [esi]
mov ecx, dword [ebp + 0x14]
mov ebx, edi
mov dword [ebp + 0x10], edi
shr ebx, 0x18
mov byte [ecx], bl
mov ebx, edi
shr ebx, 0x10
mov byte [ecx + 1], bl
mov ebx, edi
movzx edi, byte [ebp - 0x12]
shr ebx, 8
mov byte [ecx + 2], bl
mov bl, byte [ebp + 0x10]
mov byte [ecx + 3], bl
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff0000
mov dword [ebp + 0x10], edi
movzx edi, byte [ebp - 0xf]
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff00
xor dword [ebp + 0x10], edi
mov edi, dword [ebp - 0xc]
shr edi, 0x18
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff000000
xor dword [ebp + 0x10], edi
mov edi, dword [ebp - 8]
and edi, eax
mov ebx, dword [edi*4 + 0x417b18]
mov edi, dword [ebp + 0x10]
and ebx, eax
xor edi, ebx
xor edi, dword [esi + 4]
mov ebx, edi
shr ebx, 0x18
mov byte [ecx + 4], bl
mov ebx, edi
mov dword [ebp + 8], edi
shr ebx, 0x10
mov byte [ecx + 5], bl
mov ebx, edi
movzx edi, byte [ebp - 0xe]
shr ebx, 8
mov byte [ecx + 6], bl
mov bl, byte [ebp + 8]
mov byte [ecx + 7], bl
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff0000
mov dword [ebp + 0x10], edi
movzx edi, byte [ebp - 7]
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff00
xor dword [ebp + 0x10], edi
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff000000
xor dword [ebp + 0x10], edi
mov edi, dword [ebp - 0xc]
and edi, eax
mov ebx, dword [edi*4 + 0x417b18]
mov edi, dword [ebp + 0x10]
and ebx, eax
xor edi, ebx
xor edi, dword [esi + 8]
and edx, eax
mov ebx, edi
shr ebx, 0x18
mov byte [ecx + 8], bl
mov ebx, edi
shr ebx, 0x10
mov byte [ecx + 9], bl
mov ebx, edi
mov dword [ebp - 4], edi
movzx edi, byte [ebp - 6]
shr ebx, 8
mov byte [ecx + 0xa], bl
mov bl, byte [ebp - 4]
mov byte [ecx + 0xb], bl
mov edi, dword [edi*4 + 0x417b18]
mov edx, dword [edx*4 + 0x417b18]
and edi, 0xff0000
mov dword [ebp + 0x10], edi
movzx edi, byte [ebp - 0xb]
mov edi, dword [edi*4 + 0x417b18]
and edi, 0xff00
xor dword [ebp + 0x10], edi
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
shr edi, 0x18
mov edi, dword [edi*4 + 0x417b18]
and edx, eax
and edi, 0xff000000
xor ebx, edi
xor ebx, edx
xor ebx, dword [esi + 0xc]
pop edi
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0xd], al
mov eax, ebx
shr eax, 8
pop esi
mov byte [ecx + 0xf], bl
mov byte [ecx + 0xe], al
pop ebx
leave
ret 0x10