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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.005e28b0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
xor edx, dword [ebx]
mov eax, dword [esi + 4]
push edi
mov edi, eax
ror edi, 8
and edi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edi, eax
xor edi, dword [ebx + 4]
mov eax, dword [esi + 8]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
xor ecx, dword [ebx + 8]
mov eax, dword [esi + 0xc]
mov esi, eax
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
xor esi, dword [ebx + 0xc]
mov eax, ecx
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x668730]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
xor eax, dword [ebx*4 + 0x668330]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x667f30]
mov ebx, esi
and ebx, 0xff
xor eax, dword [ebx*4 + 0x668b30]
mov ebx, dword [ebp + 0x10]
xor eax, dword [ebx + 0x10]
mov dword [ebp + 8], ecx
shr ecx, 0x10
and ecx, 0xff
mov ebx, esi
shr ebx, 8
and ebx, 0xff
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx*4 + 0x668730]
mov ebx, dword [ebp - 0xc]
xor ecx, dword [ebx*4 + 0x668330]
mov ebx, edi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x667f30]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x668b30]
mov ebx, dword [ebp + 0x10]
xor ecx, dword [ebx + 0x14]
mov dword [ebp - 8], esi
shr esi, 0x10
mov ebx, edx
shr ebx, 8
and esi, 0xff
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov ebx, dword [esi*4 + 0x668330]
mov esi, dword [ebp - 0xc]
xor ebx, dword [esi*4 + 0x668730]
mov esi, dword [ebp + 8]
shr esi, 0x18
xor ebx, dword [esi*4 + 0x667f30]
mov esi, edi
shr edi, 8
shr edx, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x668730]
and edx, 0xff
xor edi, dword [edx*4 + 0x668330]
mov edx, dword [ebp - 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x667f30]
mov edx, dword [ebp + 8]
and esi, 0xff
xor ebx, dword [esi*4 + 0x668b30]
mov esi, dword [ebp + 0x10]
xor ebx, dword [esi + 0x18]
and edx, 0xff
xor edi, dword [edx*4 + 0x668b30]
lea edx, [esi + 0x20]
xor edi, dword [esi + 0x1c]
mov esi, dword [esi + 0xf0]
sar esi, 1
dec esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], esi
je 0x4be54c
jmp 0x4be310
mov edx, ebx
mov esi, ecx
shr esi, 0x10
and esi, 0xff
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x668730]
xor edx, dword [esi*4 + 0x668330]
mov esi, eax
shr esi, 0x18
xor edx, dword [esi*4 + 0x667f30]
mov esi, edi
and esi, 0xff
xor edx, dword [esi*4 + 0x668b30]
mov esi, dword [ebp + 0x10]
xor edx, dword [esi]
mov esi, edi
shr ebx, 0x10
and ebx, 0xff
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x668730]
xor esi, dword [ebx*4 + 0x668330]
mov ebx, ecx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x667f30]
mov ebx, eax
and ebx, 0xff
xor esi, dword [ebx*4 + 0x668b30]
mov ebx, dword [ebp + 0x10]
xor esi, dword [ebx + 4]
mov ebx, eax
shr edi, 0x10
and edi, 0xff
shr ebx, 8
and ebx, 0xff
mov dword [ebp + 8], ebx
mov ebx, dword [edi*4 + 0x668330]
mov edi, dword [ebp + 8]
xor ebx, dword [edi*4 + 0x668730]
mov edi, dword [ebp - 4]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x667f30]
mov edi, ecx
shr eax, 0x10
shr ecx, 8
and edi, 0xff
xor ebx, dword [edi*4 + 0x668b30]
mov edi, dword [ebp + 0x10]
xor ebx, dword [edi + 8]
and eax, 0xff
and ecx, 0xff
mov edi, dword [ecx*4 + 0x668730]
xor edi, dword [eax*4 + 0x668330]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
shr eax, 0x18
xor edi, dword [eax*4 + 0x667f30]
mov eax, dword [ebp + 0x10]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x668b30]
mov ecx, ebx
xor edi, dword [eax + 0xc]
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x668730]
mov eax, esi
shr eax, 0x10
and eax, 0xff
xor ecx, dword [eax*4 + 0x668330]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x667f30]
mov eax, edi
and eax, 0xff
xor ecx, dword [eax*4 + 0x668b30]
mov eax, dword [ebp + 0x10]
xor ecx, dword [eax + 0x10]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], edi
mov eax, ecx
shr ebx, 0x10
and ebx, 0xff
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x668730]
xor ecx, dword [ebx*4 + 0x668330]
mov ebx, esi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x667f30]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x668b30]
mov ebx, dword [ebp + 0x10]
xor ecx, dword [ebx + 0x14]
shr edi, 0x10
mov ebx, edx
shr ebx, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x668330]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x668730]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x667f30]
mov ebx, esi
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x668730]
shr edx, 0x10
and edx, 0xff
xor esi, dword [edx*4 + 0x668330]
mov edx, dword [ebp - 8]
shr edx, 0x18
xor esi, dword [edx*4 + 0x667f30]
mov edx, dword [ebp + 8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x668b30]
and edx, 0xff
xor esi, dword [edx*4 + 0x668b30]
mov ebx, edi
mov edi, dword [ebp + 0x10]
xor esi, dword [edi + 0x1c]
xor ebx, dword [edi + 0x18]
add dword [ebp + 0x10], 0x20
dec dword [ebp - 0xc]
mov edi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
jne 0x4be310
mov edx, ecx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x668b30]
and edx, 0xff0000
mov esi, ebx
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x667f30]
and esi, 0xff00
xor edx, esi
mov esi, eax
shr esi, 0x18
mov esi, dword [esi*4 + 0x668730]
and esi, 0xff000000
xor edx, esi
mov esi, edi
and esi, 0xff
movzx esi, byte [esi*4 + 0x668330]
xor edx, esi
mov esi, dword [ebp + 0x10]
xor edx, dword [esi]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov edx, dword [ebp + 0xc]
mov dword [edx], esi
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x668b30]
and edx, 0xff0000
mov esi, edi
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x667f30]
and esi, 0xff00
xor edx, esi
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x668730]
and esi, 0xff000000
xor edx, esi
mov esi, eax
and esi, 0xff
movzx esi, byte [esi*4 + 0x668330]
xor edx, esi
mov esi, dword [ebp + 0x10]
xor edx, dword [esi + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], esi
mov edx, edi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x668b30]
mov esi, eax
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x667f30]
and esi, 0xff00
and edx, 0xff0000
xor edx, esi
mov esi, ebx
shr esi, 0x18
mov esi, dword [esi*4 + 0x668730]
and esi, 0xff000000
xor edx, esi
mov esi, ecx
and esi, 0xff
movzx esi, byte [esi*4 + 0x668330]
xor edx, esi
mov esi, dword [ebp + 0x10]
xor edx, dword [esi + 8]
shr ecx, 8
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
shr eax, 0x10
rol edx, 8
and ecx, 0xff
and eax, 0xff
and edx, 0xff00ff
or esi, edx
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], esi
mov ecx, dword [ecx*4 + 0x667f30]
mov eax, dword [eax*4 + 0x668b30]
and ecx, 0xff00
and eax, 0xff0000
xor eax, ecx
shr edi, 0x18
mov ecx, dword [edi*4 + 0x668730]
and ecx, 0xff000000
xor eax, ecx
and ebx, 0xff
movzx ecx, byte [ebx*4 + 0x668330]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
xor eax, dword [ecx + 0xc]
pop edi
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
pop esi
mov dword [edx + 0xc], ecx
pop ebx
mov esp, ebp
pop ebp
ret