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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp byte [ecx + 4], 0
mov dword [ebp - 0x14], ecx
jne 0x414b07
push 0x4a6ff0
lea ecx, [ebp - 0x2c]
call fcn.004598a2
push 0x49b58c
lea eax, [ebp - 0x2c]
push eax
call fcn.00459987
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
inc eax
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
xor edx, edx
inc eax
mov dh, byte [eax]
push edi
or ecx, edx
inc eax
movzx edx, byte [eax]
or ecx, edx
xor ecx, dword [esi]
inc eax
movzx edi, byte [eax]
shl edi, 0x18
inc eax
movzx edx, byte [eax]
shl edx, 0x10
or edi, edx
xor edx, edx
inc eax
mov dh, byte [eax]
mov dword [ebp - 0xc], ecx
or edi, edx
inc eax
movzx edx, byte [eax]
or edi, edx
xor edi, dword [esi + 4]
inc eax
movzx edx, byte [eax]
shl edx, 0x18
inc eax
movzx ebx, byte [eax]
shl ebx, 0x10
or edx, ebx
xor ebx, ebx
inc eax
mov bh, byte [eax]
mov dword [ebp - 8], edi
or edx, ebx
inc eax
movzx ebx, byte [eax]
or edx, ebx
xor edx, dword [esi + 8]
inc eax
movzx esi, byte [eax]
shl esi, 0x18
inc eax
movzx ebx, byte [eax]
shl ebx, 0x10
or esi, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov bl, byte [eax + 1]
or ebx, esi
mov eax, ebx
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebx]
xor eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 0x18]
cmp esi, 1
mov dword [ebp - 0x20], esi
mov eax, 0xff
jle 0x414cd7
add ebx, 4
dec esi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov dword [ebp - 0x10], esi
movzx esi, byte [ebp - 3]
mov esi, dword [esi*4 + 0x481c70]
mov ebx, edi
sar ebx, 0x18
and ebx, eax
xor esi, dword [ebx*4 + 0x481470]
mov ebx, ecx
sar ebx, 0x10
and ebx, eax
xor esi, dword [ebx*4 + 0x481870]
mov ebx, edx
and ebx, eax
xor esi, dword [ebx*4 + 0x482070]
mov ebx, dword [ebp - 0x10]
xor esi, dword [ebx + 4]
mov ebx, edx
sar ebx, 0x18
and ebx, eax
sar edi, 0x10
and edi, eax
movzx ecx, ch
mov dword [ebp - 0x1c], edi
mov edi, dword [ebx*4 + 0x481470]
mov ebx, dword [ebp - 0x1c]
xor edi, dword [ebx*4 + 0x481870]
mov ebx, edx
xor edi, dword [ecx*4 + 0x481c70]
mov ecx, dword [ebp - 4]
and ecx, eax
xor edi, dword [ecx*4 + 0x482070]
mov ecx, dword [ebp - 0x10]
xor edi, dword [ecx + 8]
mov ecx, dword [ebp - 4]
sar ebx, 0x10
and ebx, eax
sar ecx, 0x18
and ecx, eax
mov ecx, dword [ecx*4 + 0x481470]
xor ecx, dword [ebx*4 + 0x481870]
movzx ebx, byte [ebp - 7]
xor ecx, dword [ebx*4 + 0x481c70]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor ecx, dword [ebx*4 + 0x482070]
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
xor ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
add dword [ebp + 8], 4
sar ebx, 0x10
movzx edx, dh
and ebx, eax
mov ebx, dword [ebx*4 + 0x481870]
xor ebx, dword [edx*4 + 0x481c70]
mov edx, dword [ebp - 0xc]
sar edx, 0x18
and edx, eax
xor ebx, dword [edx*4 + 0x481470]
mov edx, dword [ebp - 8]
and edx, eax
xor ebx, dword [edx*4 + 0x482070]
mov edx, dword [ebp - 0x10]
xor ebx, dword [edx]
dec dword [ebp - 0x14]
mov edx, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov edi, esi
mov ecx, ebx
jne 0x414bc1
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebx + esi*4]
mov ebx, dword [esi]
sar ecx, 0x18
and ecx, eax
mov dword [ebp + 8], ebx
mov dword [ebp - 0x20], edx
mov edx, ebx
sar ebx, 0x10
sar edx, 0x18
xor dl, byte [ecx + 0x480370]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
and ecx, eax
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0xc]
mov byte [esi], dl
xor bl, byte [ecx + 0x480370]
mov edx, dword [ebp - 0x20]
mov byte [esi + 1], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
movzx ecx, dh
xor bl, byte [ecx + 0x480370]
and edi, eax
mov byte [esi + 2], bl
mov cl, byte [edi + 0x480370]
xor cl, byte [ebp + 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov byte [esi + 3], cl
mov ecx, dword [edi + 4]
mov dword [ebp + 8], ecx
sar ecx, 0x18
sar ebx, 0x18
and ebx, eax
xor cl, byte [ebx + 0x480370]
mov ebx, dword [ebp + 8]
mov byte [esi + 4], cl
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, eax
sar ebx, 0x10
xor bl, byte [ecx + 0x480370]
movzx ecx, byte [ebp - 3]
mov byte [esi + 5], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
xor bl, byte [ecx + 0x480370]
mov ecx, edx
and ecx, eax
mov byte [esi + 6], bl
mov cl, byte [ecx + 0x480370]
xor cl, byte [ebp + 8]
mov ebx, edx
mov byte [esi + 7], cl
mov ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
sar ebx, 0x18
sar ecx, 0x18
and ebx, eax
xor cl, byte [ebx + 0x480370]
mov ebx, dword [ebp + 8]
mov byte [esi + 8], cl
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, eax
sar ebx, 0x10
xor bl, byte [ecx + 0x480370]
movzx ecx, byte [ebp - 0xb]
mov byte [esi + 9], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
xor bl, byte [ecx + 0x480370]
mov ecx, dword [ebp - 4]
and ecx, eax
mov byte [esi + 0xa], bl
mov cl, byte [ecx + 0x480370]
xor cl, byte [ebp + 8]
mov byte [esi + 0xb], cl
mov ecx, dword [edi + 0xc]
mov dword [ebp + 8], ecx
mov edi, dword [ebp - 4]
sar ecx, 0x18
sar edi, 0x18
and edi, eax
xor cl, byte [edi + 0x480370]
sar edx, 0x10
mov byte [esi + 0xc], cl
mov ecx, dword [ebp + 8]
and edx, eax
sar ecx, 0x10
xor cl, byte [edx + 0x480370]
mov edx, dword [ebp + 8]
mov byte [esi + 0xd], cl
movzx ecx, byte [ebp - 7]
sar edx, 8
xor dl, byte [ecx + 0x480370]
mov ecx, dword [ebp - 0xc]
and ecx, eax
mov byte [esi + 0xe], dl
mov al, byte [ecx + 0x480370]
xor al, byte [ebp + 8]
pop edi
mov byte [esi + 0xf], al
pop esi
pop ebx
leave
ret 8