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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, edx
mov edx, dword [ecx]
push esi
mov esi, dword [0x4b4304]
mov eax, esi
add eax, eax
mov dword [esp + 0xc], ebp
push edi
xor edx, dword [ebx + eax*8]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + eax*8 + 4]
xor edx, dword [ecx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + eax*8 + 8]
mov ebx, dword [ebx + eax*8 + 0xc]
xor ebx, dword [ecx + 0xc]
xor edx, dword [ecx + 8]
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x4ae7d0]
mov ecx, dword [esp + 0x18]
xor edi, dword [eax*4 + 0x4af8d0]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor edi, dword [eax*4 + 0x4afcd0]
movzx eax, cl
xor edi, dword [eax*4 + 0x4b08d0]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [ebp], edi
mov ebp, dword [ecx*4 + 0x4ae7d0]
xor ebp, dword [eax*4 + 0x4af8d0]
mov eax, edx
shr eax, 0x18
xor ebp, dword [eax*4 + 0x4afcd0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ebp, dword [eax*4 + 0x4b08d0]
mov eax, dword [esp + 0x10]
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4af8d0]
xor ecx, dword [eax*4 + 0x4ae7d0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4afcd0]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x4b08d0]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x4ae7d0]
xor ecx, dword [eax*4 + 0x4af8d0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4afcd0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4b08d0]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
lea edx, [esi - 1]
mov dword [eax + 0xc], ecx
mov esi, dword [esp + 0x20]
cmp edx, 1
jle 0x416e32
mov ebx, dword [esp + 0x28]
mov eax, edx
shl eax, 4
add ebx, 8
add ebx, eax
lea eax, [edx - 1]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebx - 8]
xor eax, edi
mov edx, dword [ebx]
mov dword [esp + 0x18], eax
xor edx, esi
mov eax, dword [ebx - 4]
mov ebx, dword [ebx + 4]
xor eax, ebp
mov dword [esp + 0x14], eax
xor ebx, ecx
mov eax, ebx
mov esi, dword [esp + 0x10]
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x4ae7d0]
mov ecx, dword [esp + 0x18]
xor edi, dword [eax*4 + 0x4af8d0]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor edi, dword [eax*4 + 0x4afcd0]
movzx eax, cl
xor edi, dword [eax*4 + 0x4b08d0]
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [esi], edi
mov ebp, dword [ecx*4 + 0x4ae7d0]
xor ebp, dword [eax*4 + 0x4af8d0]
mov eax, edx
shr eax, 0x18
xor ebp, dword [eax*4 + 0x4afcd0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ebp, dword [eax*4 + 0x4b08d0]
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov dword [esi + 4], ebp
mov esi, dword [ecx*4 + 0x4af8d0]
xor esi, dword [eax*4 + 0x4ae7d0]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x4afcd0]
movzx eax, dl
shr edx, 8
movzx ecx, dl
xor esi, dword [eax*4 + 0x4b08d0]
mov eax, dword [esp + 0x10]
mov dword [eax + 8], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx*4 + 0x4ae7d0]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x4af8d0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4afcd0]
movzx eax, bl
mov ebx, dword [esp + 0x1c]
sub ebx, 0x10
mov dword [esp + 0x1c], ebx
xor ecx, dword [eax*4 + 0x4b08d0]
sub dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
jne 0x416d06
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
xor eax, edi
mov dword [esp + 0x20], eax
xor ebx, ebp
movzx eax, al
mov ebp, ecx
mov edi, dword [esp + 0x10]
movzx eax, byte [eax + 0x49b8c8]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov byte [edi], al
xor edx, esi
xor ecx, dword [esp + 0x1c]
mov eax, ecx
mov esi, dword [esp + 0x20]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 3], al
movzx eax, bl
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 4], al
mov eax, esi
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 7], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 8], al
mov eax, ebx
shr eax, 8
movzx eax, al
shr ebx, 0x10
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 9], al
mov eax, esi
shr eax, 0x10
movzx eax, al
shr esi, 0x18
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 0xb], al
movzx eax, cl
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 0xc], al
movzx eax, dl
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 0xd], al
movzx eax, bl
movzx eax, byte [eax + 0x49b8c8]
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x49b8c8]
mov byte [edi + 0xf], al
mov eax, dword [ebp]
xor dword [edi], eax
mov eax, dword [ebp + 4]
xor dword [edi + 4], eax
mov eax, dword [ebp + 8]
xor dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
xor dword [edi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret