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

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
bswap eax
mov ecx, dword [edi + 0x38]
mov esi, dword [ecx]
xor esi, eax
mov eax, dword [edx + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
bswap eax
mov ecx, dword [edi + 0x38]
mov ecx, dword [ecx + 4]
xor ecx, eax
mov eax, dword [edx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
bswap eax
mov ebx, dword [edi + 0x38]
mov ebx, dword [ebx + 8]
mov edx, dword [edx + 0xc]
xor ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
bswap eax
mov ebp, dword [edi + 0x38]
mov edx, dword [ebp + 0xc]
xor edx, eax
mov dword [esp + 0x18], edx
shr edx, 0x10
movzx eax, dl
mov eax, dword [eax*4 + 0x4f6fd8]
ror eax, 8
mov edx, ebx
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x4f6fd8]
ror edx, 0x10
xor eax, edx
movzx edx, cl
mov edx, dword [edx*4 + 0x4f6fd8]
rol edx, 8
xor eax, edx
mov edx, esi
shr edx, 0x18
xor eax, dword [edx*4 + 0x4f6fd8]
xor eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
shr eax, 8
movzx edx, al
mov edx, dword [edx*4 + 0x4f6fd8]
mov eax, esi
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x4f6fd8]
ror edx, 0x10
ror eax, 8
xor edx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x4f6fd8]
rol eax, 8
xor edx, eax
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4f6fd8]
mov eax, ecx
xor edx, dword [ebp + 0x14]
shr eax, 0x10
movzx eax, al
mov ebx, dword [eax*4 + 0x4f6fd8]
mov eax, esi
ror ebx, 8
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4f6fd8]
mov dword [esp + 0x14], edx
ror eax, 0x10
xor ebx, eax
movzx eax, byte [esp + 0x18]
mov eax, dword [eax*4 + 0x4f6fd8]
rol eax, 8
xor ebx, eax
mov eax, dword [esp + 0x1c]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x4f6fd8]
mov eax, dword [esp + 0x1c]
xor ebx, dword [ebp + 0x18]
shr eax, 0x10
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4f6fd8]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4f6fd8]
ror eax, 8
ror ecx, 0x10
xor eax, ecx
movzx ecx, byte [esp + 0x10]
mov ecx, dword [ecx*4 + 0x4f6fd8]
rol ecx, 8
xor eax, ecx
mov ecx, dword [esp + 0x18]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4f6fd8]
mov dword [esp + 0x18], 2
xor eax, dword [ebp + 0x1c]
cmp dword [edi + 0x14], 2
mov dword [esp + 0x1c], eax
je 0x48f222
lea esi, [ebp + 0x20]
mov dword [esp + 0x20], ebx
shr ebx, 8
movzx ebp, bl
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4f73d8]
xor ecx, dword [ebp*4 + 0x4f77d8]
mov ebp, dword [esp + 0x28]
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x4f6fd8]
mov ebx, dword [esp + 0x20]
movzx ebp, dl
xor ecx, dword [ebp*4 + 0x4f7bd8]
shr eax, 8
xor ecx, dword [esi]
movzx eax, al
mov eax, dword [eax*4 + 0x4f77d8]
mov dword [esp + 0x10], ecx
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x4f6fd8]
mov ecx, dword [esp + 0x28]
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4f73d8]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x4f7bd8]
mov ecx, ebx
shr ecx, 0x18
shr edx, 0x10
movzx ebp, dl
mov edx, dword [ecx*4 + 0x4f6fd8]
xor edx, dword [ebp*4 + 0x4f73d8]
mov ecx, dword [esp + 0x28]
shr ebx, 0x10
shr ecx, 8
movzx ebx, bl
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4f77d8]
mov ecx, dword [esp + 0x1c]
movzx ebp, cl
xor edx, dword [ebp*4 + 0x4f7bd8]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f6fd8]
xor ecx, dword [ebx*4 + 0x4f73d8]
mov ebx, dword [esp + 0x14]
xor edx, dword [esi + 8]
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x4f77d8]
movzx ebx, byte [esp + 0x28]
xor ecx, dword [ebx*4 + 0x4f7bd8]
xor eax, dword [esi + 4]
xor ecx, dword [esi + 0xc]
mov dword [esp + 0x20], edx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4f73d8]
shr edx, 8
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x4f77d8]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x4f6fd8]
movzx ebp, al
xor ebx, dword [ebp*4 + 0x4f7bd8]
mov ebp, eax
xor ebx, dword [esi + 0x10]
shr ebp, 0x18
mov dword [esp + 0x28], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4f77d8]
xor ebx, dword [ebp*4 + 0x4f6fd8]
shr edx, 0x10
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x4f73d8]
mov edx, dword [esp + 0x20]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x4f7bd8]
mov dword [esp + 0x20], eax
xor ebx, dword [esi + 0x14]
shr eax, 0x10
mov dword [esp + 0x14], ebx
movzx ebp, al
mov eax, dword [esp + 0x10]
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x4f6fd8]
xor ebx, dword [ebp*4 + 0x4f73d8]
shr eax, 8
movzx ebp, al
xor ebx, dword [ebp*4 + 0x4f77d8]
mov eax, dword [esp + 0x20]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x4f7bd8]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4f6fd8]
xor ebx, dword [esi + 0x18]
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x4f73d8]
shr eax, 8
movzx edx, al
xor ecx, dword [edx*4 + 0x4f77d8]
movzx eax, byte [esp + 0x10]
xor ecx, dword [eax*4 + 0x4f7bd8]
mov edx, dword [esp + 0x14]
xor ecx, dword [esi + 0x1c]
add esi, 0x20
mov eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [edi + 0x14]
jne 0x48f024
mov esi, dword [edi + 0x48]
mov ecx, dword [esp + 0x28]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [esi]
mov esi, dword [esp + 0x2c]
mov byte [esi], cl
mov ebp, dword [edi + 0x48]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 1]
mov byte [esi + 1], cl
mov ebp, dword [edi + 0x48]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 2]
mov byte [esi + 2], cl
mov ebp, dword [edi + 0x48]
movzx ecx, dl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 3]
mov byte [esi + 3], cl
mov ebp, dword [edi + 0x48]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 4]
mov byte [esi + 4], cl
mov ecx, dword [esp + 0x28]
mov ebp, dword [edi + 0x48]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 5]
mov byte [esi + 5], cl
mov ebp, dword [edi + 0x48]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 6]
mov byte [esi + 6], cl
mov ebp, dword [edi + 0x48]
movzx ecx, bl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 7]
mov byte [esi + 7], cl
mov ebp, dword [edi + 0x48]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 8]
mov byte [esi + 8], cl
mov ebp, dword [edi + 0x48]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 9]
mov byte [esi + 9], cl
mov ecx, dword [esp + 0x28]
mov ebp, dword [edi + 0x48]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 0xa]
mov byte [esi + 0xa], cl
mov ebp, dword [edi + 0x48]
movzx ecx, al
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [ebp + 0xb]
shr eax, 0x18
mov byte [esi + 0xb], cl
mov ecx, dword [edi + 0x48]
mov al, byte [eax + 0x4f5ed8]
xor al, byte [ecx + 0xc]
mov byte [esi + 0xc], al
mov eax, dword [edi + 0x48]
shr ebx, 0x10
movzx ecx, bl
movzx ecx, byte [ecx + 0x4f5ed8]
xor cl, byte [eax + 0xd]
shr edx, 8
mov byte [esi + 0xd], cl
mov eax, dword [edi + 0x48]
movzx edx, dl
movzx ecx, byte [edx + 0x4f5ed8]
xor cl, byte [eax + 0xe]
movzx edx, byte [esp + 0x28]
mov byte [esi + 0xe], cl
movzx ecx, byte [edx + 0x4f5ed8]
mov eax, dword [edi + 0x48]
xor cl, byte [eax + 0xf]
pop edi
mov byte [esi + 0xf], cl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8