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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 4], 0
jne 0x4162a0
push 0x492e5c
lea ecx, [ebp - 0x2c]
call fcn.0044fc10
push 0x487da8
lea eax, [ebp - 0x2c]
push eax
call fcn.00452616
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]
xor ebx, ebx
or ecx, edx
inc eax
movzx edx, byte [eax]
or ecx, edx
xor ecx, dword [edi + 8]
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]
or edi, edx
inc eax
movzx edx, byte [eax]
or edi, edx
mov edx, dword [ebp + 8]
xor edi, dword [edx + 0xc]
inc eax
movzx edx, byte [eax]
shl edx, 0x18
inc eax
mov dword [ebp - 8], edi
movzx edi, byte [eax]
shl edi, 0x10
or edx, edi
inc eax
mov bh, byte [eax]
or edx, ebx
inc eax
movzx edi, byte [eax]
or edx, edi
mov edi, dword [ebp + 8]
xor edx, dword [edi + 0x10]
inc eax
movzx edi, byte [eax]
shl edi, 0x18
inc eax
movzx ebx, byte [eax]
shl ebx, 0x10
or edi, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov dword [ebp - 0x10], edx
mov bl, byte [eax + 1]
or ebx, edi
mov eax, ebx
mov ebx, dword [ebp + 8]
xor eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x3d0]
cmp edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], edi
mov eax, 0xff
jle 0x416462
add ebx, 0x30
dec edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], edi
movzx edi, byte [ebp - 3]
mov edi, dword [edi*4 + 0x47a490]
mov ebx, edx
sar ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x47a090]
mov ebx, dword [ebp - 8]
sar ebx, 0x18
and ebx, eax
xor edi, dword [ebx*4 + 0x479c90]
sar edx, 0x18
and edx, eax
mov dword [ebp - 0x18], edx
mov ebx, ecx
and ebx, eax
xor edi, dword [ebx*4 + 0x47a890]
mov ebx, dword [ebp - 0xc]
xor edi, dword [ebx - 4]
mov ebx, dword [ebp - 4]
sar ebx, 0x10
and ebx, eax
mov edx, dword [ebx*4 + 0x47a090]
mov ebx, dword [ebp - 0x18]
xor edx, dword [ebx*4 + 0x479c90]
movzx ebx, ch
xor edx, dword [ebx*4 + 0x47a490]
mov ebx, dword [ebp - 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x47a890]
mov ebx, dword [ebp - 0xc]
xor edx, dword [ebx]
movzx ebx, byte [ebp - 7]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
sar edx, 0x18
and edx, eax
mov edx, dword [edx*4 + 0x479c90]
xor edx, dword [ebx*4 + 0x47a490]
mov ebx, ecx
sar ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x47a090]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edx, dword [ebx*4 + 0x47a890]
mov ebx, dword [ebp - 0xc]
xor edx, dword [ebx + 4]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
movzx edx, byte [ebp - 0xf]
mov edx, dword [edx*4 + 0x47a490]
sar ecx, 0x18
sar ebx, 0x10
and ecx, eax
and ebx, eax
xor edx, dword [ebx*4 + 0x47a090]
mov dword [ebp - 8], edi
xor edx, dword [ecx*4 + 0x479c90]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
and ecx, eax
xor edx, dword [ecx*4 + 0x47a890]
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx - 8]
add dword [ebp - 0xc], 0x20
dec dword [ebp - 0x14]
mov ecx, edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edi
jne 0x416351
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
shl edi, 5
lea edi, [edi + ebx + 8]
mov dword [ebp - 0x20], edi
mov edi, dword [edi]
mov ebx, ecx
sar ebx, 0x18
and ebx, eax
mov dword [ebp + 8], edi
movzx edx, dh
mov dword [ebp - 0x1c], ecx
mov ecx, edi
mov edi, dword [ebp - 8]
sar ecx, 0x18
xor cl, byte [ebx + str.cw]
mov ebx, dword [ebp + 8]
sar ebx, 0x10
mov byte [esi], cl
sar edi, 0x10
and edi, eax
xor bl, byte [edi + str.cw]
mov edi, dword [ebp - 0x20]
mov byte [esi + 1], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
xor bl, byte [edx + str.cw]
mov edx, dword [ebp - 4]
mov byte [esi + 2], bl
mov ebx, dword [ebp - 8]
and edx, eax
mov dl, byte [edx + str.cw]
xor dl, byte [ebp + 8]
sar ebx, 0x18
mov byte [esi + 3], dl
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
sar edx, 0x18
and ebx, eax
xor dl, byte [ebx + str.cw]
mov ebx, dword [ebp + 8]
mov byte [esi + 4], dl
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
sar edx, 0x10
and edx, eax
sar ebx, 0x10
xor bl, byte [edx + str.cw]
movzx edx, byte [ebp - 3]
mov byte [esi + 5], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
xor bl, byte [edx + str.cw]
mov edx, ecx
and edx, eax
mov byte [esi + 6], bl
mov dl, byte [edx + str.cw]
xor dl, byte [ebp + 8]
mov ebx, dword [ebp - 0x10]
mov byte [esi + 7], dl
mov edx, dword [edi + 8]
mov dword [ebp + 8], edx
sar ebx, 0x18
sar edx, 0x18
and ebx, eax
xor dl, byte [ebx + str.cw]
mov ebx, dword [ebp + 8]
mov byte [esi + 8], dl
mov edx, dword [ebp - 4]
sar edx, 0x10
and edx, eax
sar ebx, 0x10
xor bl, byte [edx + str.cw]
movzx edx, ch
mov byte [esi + 9], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
xor bl, byte [edx + str.cw]
mov edx, dword [ebp - 8]
and edx, eax
mov byte [esi + 0xa], bl
mov dl, byte [edx + str.cw]
xor dl, byte [ebp + 8]
mov byte [esi + 0xb], dl
mov edx, dword [edi + 0xc]
mov edi, dword [ebp - 4]
mov dword [ebp + 8], edx
sar edx, 0x18
sar edi, 0x18
and edi, eax
xor dl, byte [edi + str.cw]
sar ecx, 0x10
mov byte [esi + 0xc], dl
mov edx, dword [ebp + 8]
and ecx, eax
sar edx, 0x10
xor dl, byte [ecx + str.cw]
movzx ecx, byte [ebp - 7]
mov byte [esi + 0xd], dl
mov edx, dword [ebp + 8]
sar edx, 8
xor dl, byte [ecx + str.cw]
mov ecx, dword [ebp - 0x10]
and ecx, eax
mov byte [esi + 0xe], dl
mov al, byte [ecx + str.cw]
xor al, byte [ebp + 8]
pop edi
mov byte [esi + 0xf], al
pop ebx
leave
ret 4