Function at 0x4951d0
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 ebp, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
bswap eax
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
xor ecx, eax
mov eax, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
bswap eax
mov ecx, dword [ebp + 0x18]
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 esi, dword [ebp + 0x18]
mov edi, dword [esi + 8]
mov edx, dword [edx + 0xc]
xor edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
bswap eax
mov edx, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
xor eax, edx
mov edx, edi
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x4fb0a8]
ror edx, 0x10
mov ebx, ecx
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + 0x4fb0a8]
ror esi, 8
xor edx, esi
movzx esi, al
mov esi, dword [esi*4 + 0x4fb0a8]
rol esi, 8
xor edx, esi
mov esi, dword [esp + 0x18]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4fb0a8]
mov esi, dword [ebp + 0x18]
xor edx, dword [esi + 0x10]
mov ebx, eax
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + 0x4fb0a8]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4fb0a8]
ror esi, 0x10
ror ebx, 8
xor esi, ebx
movzx ebx, byte [esp + 0x18]
mov ebx, dword [ebx*4 + 0x4fb0a8]
rol ebx, 8
xor esi, ebx
mov dword [esp + 0x20], eax
mov ebx, ecx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x4fb0a8]
mov ebx, dword [ebp + 0x18]
xor esi, dword [ebx + 0x14]
shr eax, 0x10
movzx eax, al
mov ebx, dword [eax*4 + 0x4fb0a8]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], esi
ror ebx, 8
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4fb0a8]
ror eax, 0x10
xor ebx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x4fb0a8]
rol eax, 8
mov esi, dword [esp + 0x20]
xor ebx, eax
mov eax, dword [esp + 0x18]
shr ecx, 8
shr eax, 0x10
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4fb0a8]
mov edi, dword [ebp + 0x18]
xor ebx, dword [edi + 0x18]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4fb0a8]
movzx eax, al
mov eax, dword [eax*4 + 0x4fb0a8]
ror ecx, 0x10
ror eax, 8
xor ecx, eax
movzx eax, byte [esp + 0x10]
mov eax, dword [eax*4 + 0x4fb0a8]
rol eax, 8
xor ecx, eax
shr esi, 0x18
xor ecx, dword [esi*4 + 0x4fb0a8]
mov dword [esp + 0x1c], ebx
xor ecx, dword [edi + 0x1c]
cmp dword [ebp + 0x14], 2
mov dword [esp + 0x18], 2
je 0x49557a
lea esi, [edi + 0x20]
lea ecx, [ecx]
mov eax, ebx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x28]
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [esp + 0x20]
shr eax, 8
shr ebx, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x4fb8a8]
xor eax, dword [edi*4 + 0x4fb4a8]
movzx edi, bl
shr edx, 0x18
xor eax, dword [edx*4 + 0x4fb0a8]
movzx edx, cl
xor eax, dword [edx*4 + 0x4fbca8]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x4fb8a8]
xor edx, dword [edi*4 + 0x4fb4a8]
mov edi, dword [esp + 0x28]
shr edi, 0x18
xor edx, dword [edi*4 + 0x4fb0a8]
movzx edi, byte [esp + 0x14]
xor edx, dword [edi*4 + 0x4fbca8]
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x4fb4a8]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4fb0a8]
mov ebx, dword [esp + 0x14]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4fb8a8]
movzx ebx, byte [esp + 0x28]
xor edi, dword [ebx*4 + 0x4fbca8]
mov ebx, dword [esp + 0x28]
xor edi, dword [esi + 8]
xor edx, dword [esi + 4]
shr ebx, 8
mov dword [esp + 0x10], edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
shr ebx, 0x10
xor eax, dword [esi]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4fb0a8]
xor ecx, dword [edi*4 + 0x4fb8a8]
movzx edi, bl
xor ecx, dword [edi*4 + 0x4fb4a8]
movzx edi, byte [esp + 0x1c]
xor ecx, dword [edi*4 + 0x4fbca8]
mov ebx, dword [esp + 0x10]
xor ecx, dword [esi + 0xc]
shr ebx, 8
movzx edi, bl
mov edi, dword [edi*4 + 0x4fb8a8]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4fb4a8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4fb0a8]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x4fbca8]
mov ebx, ecx
xor edi, dword [esi + 0x10]
shr ebx, 8
mov dword [esp + 0x14], edi
movzx edi, bl
mov ebx, dword [esp + 0x10]
mov edi, dword [edi*4 + 0x4fb8a8]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4fb4a8]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4fb0a8]
movzx ebx, al
xor edi, dword [ebx*4 + 0x4fbca8]
mov ebx, ecx
xor edi, dword [esi + 0x14]
shr ebx, 0x10
mov dword [esp + 0x28], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x4fb4a8]
mov ebx, dword [esp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4fb0a8]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4fb8a8]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x4fbca8]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4fb0a8]
xor edi, dword [esi + 0x18]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x4fb8a8]
movzx edx, byte [esp + 0x10]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x4fb4a8]
mov eax, dword [esp + 0x18]
xor ecx, dword [edx*4 + 0x4fbca8]
mov edx, dword [esp + 0x14]
xor ecx, dword [esi + 0x1c]
add eax, 2
mov ebx, edi
add esi, 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 0x14]
jne 0x495380
mov esi, dword [ebp + 0x28]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x4faea8]
xor al, byte [esi]
mov esi, dword [esp + 0x2c]
mov byte [esi], al
mov edi, dword [ebp + 0x28]
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 1]
mov byte [esi + 1], al
mov edi, dword [ebp + 0x28]
mov eax, ebx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 2]
mov byte [esi + 2], al
mov edi, dword [ebp + 0x28]
movzx eax, cl
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 3]
mov byte [esi + 3], al
mov edi, dword [ebp + 0x28]
mov eax, dword [esp + 0x28]
shr eax, 0x18
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 4]
mov byte [esi + 4], al
mov edi, dword [ebp + 0x28]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 5]
mov byte [esi + 5], al
mov edi, dword [ebp + 0x28]
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 6]
mov byte [esi + 6], al
mov edi, dword [ebp + 0x28]
movzx eax, dl
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 7]
mov byte [esi + 7], al
mov edi, dword [ebp + 0x28]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 8]
mov byte [esi + 8], al
mov edi, dword [ebp + 0x28]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 9]
shr ecx, 0x18
mov byte [esi + 9], al
mov edi, dword [ebp + 0x28]
mov eax, edx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x4faea8]
xor al, byte [edi + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [esp + 0x28]
movzx eax, byte [eax + 0x4faea8]
mov edi, dword [ebp + 0x28]
xor al, byte [edi + 0xb]
mov byte [esi + 0xb], al
movzx ecx, byte [ecx + 0x4faea8]
mov eax, dword [ebp + 0x28]
xor cl, byte [eax + 0xc]
mov byte [esi + 0xc], cl
mov eax, dword [ebp + 0x28]
shr edx, 0x10
movzx edx, dl
movzx ecx, byte [edx + 0x4faea8]
xor cl, byte [eax + 0xd]
mov eax, dword [esp + 0x28]
shr eax, 8
mov byte [esi + 0xd], cl
movzx edx, al
movzx ecx, byte [edx + 0x4faea8]
mov eax, dword [ebp + 0x28]
xor cl, byte [eax + 0xe]
movzx edx, bl
mov byte [esi + 0xe], cl
movzx ecx, byte [edx + 0x4faea8]
mov eax, dword [ebp + 0x28]
xor cl, byte [eax + 0xf]
pop edi
mov byte [esi + 0xf], cl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8