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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ebp + 0xc]
lea edx, [esi + 2]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [ebp + 0xc]
shl edx, 4
mov edx, dword [edx + ecx]
xor edx, dword [edi]
mov edi, dword [esi + 0x24]
xor edi, dword [ebx + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov edi, dword [esi + 0x28]
xor edi, dword [ebx + 8]
mov esi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
mov edi, ebx
xor esi, dword [edi + 0xc]
mov ebx, esi
mov dword [ebp - 4], esi
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + 0x555230]
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx edi, bl
xor esi, dword [edi*4 + 0x555630]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
shr edi, 0x18
xor esi, dword [edi*4 + 0x555a30]
movzx edi, dl
xor esi, dword [edi*4 + 0x554e30]
mov edi, dword [ebp - 8]
mov dword [eax], esi
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + 0x555630]
shr edi, 0x18
xor esi, dword [edi*4 + 0x555a30]
mov ebx, edx
shr ebx, 8
movzx edi, bl
xor esi, dword [edi*4 + 0x555230]
movzx edi, byte [ebp - 0xc]
xor esi, dword [edi*4 + 0x554e30]
mov ebx, dword [ebp - 0xc]
mov dword [eax + 4], esi
mov esi, dword [ebp - 4]
shr esi, 0x18
mov esi, dword [esi*4 + 0x555a30]
shr ebx, 8
movzx edi, bl
xor esi, dword [edi*4 + 0x555230]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
xor esi, dword [edi*4 + 0x555630]
mov ebx, dword [ebp - 8]
movzx edi, bl
xor esi, dword [edi*4 + 0x554e30]
shr ebx, 8
mov dword [eax + 8], esi
movzx esi, bl
mov ebx, dword [ebp - 0xc]
mov esi, dword [esi*4 + 0x555230]
shr ebx, 0x10
movzx edi, bl
xor esi, dword [edi*4 + 0x555630]
shr edx, 0x18
xor esi, dword [edx*4 + 0x555a30]
movzx edx, byte [ebp - 4]
xor esi, dword [edx*4 + 0x554e30]
mov dword [eax + 0xc], esi
mov edx, dword [ecx + 0x1c]
dec edx
cmp edx, 1
jle 0x4c72a5
mov esi, edx
shl esi, 4
lea esi, [esi + ecx + 0x24]
dec edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov edx, dword [esi - 4]
mov edi, dword [ebp - 0x14]
mov esi, dword [eax + 4]
xor esi, dword [edi]
xor edx, dword [eax]
mov dword [ebp - 0xc], esi
mov esi, edi
mov edi, dword [esi + 4]
xor edi, dword [eax + 8]
sub esi, 0x10
mov dword [ebp - 8], edi
mov edi, dword [esi + 0x18]
xor edi, dword [eax + 0xc]
mov dword [ebp - 0x14], esi
mov ebx, edi
shr ebx, 8
mov dword [ebp - 4], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x555230]
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x555630]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x555a30]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x554e30]
mov ebx, dword [ebp - 4]
shr ebx, 0x10
mov dword [eax], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x555630]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x555a30]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x555230]
movzx ebx, byte [ebp - 0xc]
xor edi, dword [ebx*4 + 0x554e30]
mov ebx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov edi, dword [ebp - 4]
shr ebx, 8
shr edi, 0x18
mov edi, dword [edi*4 + 0x555a30]
movzx ebx, bl
xor edi, dword [ebx*4 + 0x555230]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x555630]
movzx ebx, byte [ebp - 8]
xor edi, dword [ebx*4 + 0x554e30]
mov ebx, dword [ebp - 8]
shr ebx, 8
mov dword [eax + 8], edi
movzx edi, bl
mov ebx, dword [ebp - 0xc]
mov edi, dword [edi*4 + 0x555230]
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x555630]
shr edx, 0x18
xor edi, dword [edx*4 + 0x555a30]
movzx edx, byte [ebp - 4]
xor edi, dword [edx*4 + 0x554e30]
dec dword [ebp - 0x18]
mov dword [eax + 0xc], edi
jne 0x4c718e
mov esi, dword [ecx + 0x34]
xor esi, dword [eax + 4]
mov edx, dword [ecx + 0x30]
xor edx, dword [eax]
mov dword [ebp - 0xc], esi
mov esi, dword [ecx + 0x38]
xor esi, dword [eax + 8]
mov dword [ebp - 8], esi
mov esi, dword [ecx + 0x3c]
xor esi, dword [eax + 0xc]
mov dword [ebp - 4], esi
movzx esi, dl
mov bl, byte [esi + 0x555e30]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x555e30]
mov byte [eax + 1], bl
mov ebx, dword [ebp - 8]
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x555e30]
mov esi, dword [ebp - 0xc]
mov byte [eax + 2], bl
shr esi, 0x18
mov bl, byte [esi + 0x555e30]
movzx esi, byte [ebp - 0xc]
mov byte [eax + 3], bl
mov bl, byte [esi + 0x555e30]
mov byte [eax + 4], bl
mov ebx, edx
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x555e30]
mov byte [eax + 5], bl
mov ebx, dword [ebp - 4]
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x555e30]
mov esi, dword [ebp - 8]
mov byte [eax + 6], bl
shr esi, 0x18
mov bl, byte [esi + 0x555e30]
movzx esi, byte [ebp - 8]
mov byte [eax + 7], bl
mov bl, byte [esi + 0x555e30]
mov byte [eax + 8], bl
mov ebx, dword [ebp - 0xc]
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x555e30]
mov byte [eax + 9], bl
mov ebx, edx
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x555e30]
mov esi, dword [ebp - 4]
mov byte [eax + 0xa], bl
shr esi, 0x18
mov bl, byte [esi + 0x555e30]
movzx esi, byte [ebp - 4]
mov byte [eax + 0xb], bl
mov bl, byte [esi + 0x555e30]
mov byte [eax + 0xc], bl
mov ebx, dword [ebp - 8]
shr ebx, 8
movzx esi, bl
mov bl, byte [esi + 0x555e30]
mov byte [eax + 0xd], bl
mov ebx, dword [ebp - 0xc]
shr ebx, 0x10
movzx esi, bl
mov bl, byte [esi + 0x555e30]
shr edx, 0x18
mov byte [eax + 0xe], bl
mov dl, byte [edx + 0x555e30]
mov byte [eax + 0xf], dl
mov edx, dword [ecx + 0x20]
xor dword [eax], edx
mov edx, dword [ecx + 0x24]
xor dword [eax + 4], edx
mov edx, dword [ecx + 0x28]
xor dword [eax + 8], edx
mov ecx, dword [ecx + 0x2c]
xor dword [eax + 0xc], ecx
pop edi
pop esi
pop ebx
leave
ret