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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [edx + 8]
push esi
mov esi, eax
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
xor esi, dword [ebx]
mov eax, dword [edx + 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, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
xor eax, dword [ebx + 8]
mov ecx, dword [edx + 0xc]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
xor edx, dword [ebx + 0xc]
mov ebx, eax
shr ebx, 8
and ebx, 0xff
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x592e68]
xor ecx, dword [ebx*4 + 0x593268]
mov ebx, esi
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x592a68]
mov ebx, edi
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x593668]
mov ebx, dword [ebp + 0x10]
xor ecx, dword [ebx + 0x10]
mov dword [ebp + 8], edx
shr edx, 8
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
and edx, 0xff
mov edx, dword [edx*4 + 0x593268]
xor edx, dword [ebx*4 + 0x592e68]
mov ebx, edi
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x592a68]
mov ebx, eax
and ebx, 0xff
xor edx, dword [ebx*4 + 0x593668]
mov ebx, dword [ebp + 0x10]
xor edx, dword [ebx + 0x14]
mov dword [ebp - 0xc], esi
shr esi, 8
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
and esi, 0xff
mov dword [ebp - 8], esi
mov esi, dword [ebx*4 + 0x592e68]
mov ebx, dword [ebp - 8]
xor esi, dword [ebx*4 + 0x593268]
mov dword [ebp - 4], ecx
mov ebx, eax
shr eax, 0x10
shr edi, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x592e68]
and edi, 0xff
xor eax, dword [edi*4 + 0x593268]
mov edi, dword [ebp + 8]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x592a68]
mov ebx, dword [ebp + 8]
shr edi, 0x18
xor eax, dword [edi*4 + 0x592a68]
mov edi, dword [ebp - 0xc]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593668]
mov ebx, dword [ebp + 0x10]
xor esi, dword [ebx + 0x18]
and edi, 0xff
xor eax, dword [edi*4 + 0x593668]
lea edi, [ebx + 0x20]
xor eax, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0xf0]
sar ebx, 1
dec ebx
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], edi
mov dword [ebp - 8], ebx
je 0x40ef8c
nop
mov ebx, esi
shr ebx, 8
and ebx, 0xff
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x592e68]
xor edi, dword [ebx*4 + 0x593268]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x592a68]
mov ebx, edx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x593668]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ebx]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x593268]
xor eax, dword [ebx*4 + 0x592e68]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x592a68]
mov ebx, esi
and ebx, 0xff
xor eax, dword [ebx*4 + 0x593668]
mov ebx, dword [ebp + 0x10]
xor eax, dword [ebx + 4]
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx*4 + 0x592e68]
mov ebx, dword [ebp - 0xc]
xor ecx, dword [ebx*4 + 0x593268]
mov ebx, esi
shr esi, 0x10
and esi, 0xff
shr edx, 8
and edx, 0xff
mov dword [ebp - 0xc], edx
mov edx, dword [esi*4 + 0x592e68]
mov esi, dword [ebp - 0xc]
xor edx, dword [esi*4 + 0x593268]
mov esi, dword [ebp + 8]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x592a68]
mov ebx, dword [ebp + 8]
shr esi, 0x18
xor edx, dword [esi*4 + 0x592a68]
mov esi, dword [ebp - 4]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x593668]
mov ebx, dword [ebp + 0x10]
xor ecx, dword [ebx + 8]
and esi, 0xff
xor edx, dword [esi*4 + 0x593668]
xor edx, dword [ebx + 0xc]
mov ebx, ecx
shr ebx, 8
mov esi, edx
shr esi, 0x10
and esi, 0xff
mov esi, dword [esi*4 + 0x592e68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593268]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x592a68]
mov ebx, eax
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593668]
mov dword [ebp + 8], edx
mov ebx, esi
mov esi, dword [ebp + 0x10]
xor ebx, dword [esi + 0x10]
shr edx, 8
mov dword [ebp - 4], ebx
and edx, 0xff
mov edx, dword [edx*4 + 0x593268]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
xor edx, dword [ebx*4 + 0x592e68]
mov ebx, eax
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x592a68]
mov ebx, ecx
and ebx, 0xff
xor edx, dword [ebx*4 + 0x593668]
mov ebx, edi
xor edx, dword [esi + 0x14]
mov esi, eax
shr esi, 0x10
shr ebx, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x592e68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593268]
mov ebx, ecx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x592e68]
shr eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x593268]
mov eax, dword [ebp + 8]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x592a68]
mov ebx, dword [ebp + 8]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x592a68]
and ebx, 0xff
xor esi, dword [ebx*4 + 0x593668]
mov ebx, dword [ebp + 0x10]
xor esi, dword [ebx + 0x18]
and edi, 0xff
xor ecx, dword [edi*4 + 0x593668]
add ebx, 0x20
xor ecx, dword [ebx - 4]
dec dword [ebp - 8]
mov eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], ebx
jne 0x40ed50
mov edi, eax
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x593a68]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x593a68]
shl ebx, 8
xor edi, ebx
shl edi, 8
mov ebx, esi
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x593a68]
xor edi, ebx
shl edi, 8
mov ebx, edx
and ebx, 0xff
movzx ebx, byte [ebx + 0x593a68]
xor edi, ebx
mov ebx, dword [ebp + 0x10]
xor edi, dword [ebx]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x593a68]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x593a68]
shl ebx, 8
xor edi, ebx
shl edi, 8
mov ebx, eax
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x593a68]
xor edi, ebx
shl edi, 8
mov ebx, esi
and ebx, 0xff
movzx ebx, byte [ebx + 0x593a68]
xor edi, ebx
mov ebx, dword [ebp + 0x10]
xor edi, dword [ebx + 4]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi + 4], ebx
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x593a68]
mov ebx, esi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x593a68]
shl ebx, 8
xor edi, ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x593a68]
shl edi, 8
xor edi, ebx
mov ebx, eax
and ebx, 0xff
movzx ebx, byte [ebx + 0x593a68]
shl edi, 8
xor edi, ebx
mov ebx, dword [ebp + 0x10]
xor edi, dword [ebx + 8]
shr esi, 0x10
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
and esi, 0xff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi + 8], ebx
movzx esi, byte [esi + 0x593a68]
shr eax, 0x18
movzx eax, byte [eax + 0x593a68]
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x593a68]
shl eax, 8
xor esi, eax
shl esi, 8
xor esi, edx
and ecx, 0xff
movzx eax, byte [ecx + 0x593a68]
mov ecx, dword [ebp + 0x10]
shl esi, 8
xor esi, eax
xor esi, dword [ecx + 0xc]
mov edx, esi
ror edx, 8
and edx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or edx, esi
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret