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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [ecx + 4], 0
mov dword [ebp - 0x14], ecx
jne 0x4147b4
push 0x4a6ff0
lea ecx, [ebp - 0x28]
call fcn.004598a2
push 0x49b58c
lea eax, [ebp - 0x28]
push eax
call fcn.00459987
mov eax, dword [ecx + 8]
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
mov edi, 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]
xor ebx, ebx
or ecx, edx
inc eax
movzx edx, byte [eax]
or ecx, edx
xor ecx, dword [edi]
inc eax
movzx esi, byte [eax]
shl esi, 0x18
inc eax
movzx edx, byte [eax]
shl edx, 0x10
or esi, edx
xor edx, edx
inc eax
mov dh, byte [eax]
or esi, edx
inc eax
movzx edx, byte [eax]
or esi, edx
xor esi, dword [edi + 4]
inc eax
movzx edx, byte [eax]
shl edx, 0x18
inc eax
mov dword [ebp - 8], esi
movzx esi, byte [eax]
shl esi, 0x10
or edx, esi
inc eax
mov bh, byte [eax]
or edx, ebx
inc eax
movzx esi, byte [eax]
or edx, esi
xor edx, dword [edi + 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 dword [ebp - 0xc], edx
mov bl, byte [eax + 1]
mov eax, dword [ebp - 0x14]
or ebx, esi
mov esi, dword [eax + 0x18]
xor ebx, dword [edi + 0xc]
cmp esi, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov eax, 0xff
jle 0x41497a
mov edi, dword [ebp - 0x18]
add edi, 4
dec esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov edi, edx
sar edi, 0x10
and edi, eax
mov dword [ebp - 0x10], esi
movzx esi, byte [ebp - 3]
mov esi, dword [esi*4 + 0x480c70]
xor esi, dword [edi*4 + 0x480870]
mov edi, dword [ebp - 8]
sar edi, 0x18
and edi, eax
xor esi, dword [edi*4 + 0x480470]
sar edx, 0x18
mov edi, ecx
and edi, eax
xor esi, dword [edi*4 + 0x481070]
mov edi, dword [ebp - 0x10]
xor esi, dword [edi + 4]
mov edi, dword [ebp - 4]
and edx, eax
movzx ebx, byte [ebp - 7]
sar edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x480870]
xor edi, dword [edx*4 + 0x480470]
movzx edx, ch
xor edi, dword [edx*4 + 0x480c70]
mov edx, dword [ebp - 8]
and edx, eax
xor edi, dword [edx*4 + 0x481070]
mov edx, dword [ebp - 0x10]
xor edi, dword [edx + 8]
mov edx, dword [ebp - 4]
sar edx, 0x18
and edx, eax
mov edx, dword [edx*4 + 0x480470]
xor edx, dword [ebx*4 + 0x480c70]
mov ebx, ecx
sar ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x480870]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x481070]
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
xor edx, dword [ebx + 0xc]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
movzx edx, byte [ebp - 0xb]
mov edx, dword [edx*4 + 0x480c70]
sar ecx, 0x18
sar ebx, 0x10
and ecx, eax
and ebx, eax
xor edx, dword [ebx*4 + 0x480870]
mov dword [ebp - 8], esi
xor edx, dword [ecx*4 + 0x480470]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
and ecx, eax
xor edx, dword [ecx*4 + 0x481070]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
xor edx, dword [ecx]
add dword [ebp + 8], 4
dec dword [ebp - 0x14]
mov ecx, edx
mov edx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
jne 0x41486a
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov esi, dword [edi + esi*4]
mov dword [ebp - 0x10], esi
mov esi, dword [esi]
mov edi, ecx
sar edi, 0x18
and edi, eax
movzx edx, dh
mov ebx, esi
sar ebx, 0x18
xor bl, byte [edi + str.cw]
mov edi, dword [ebp - 8]
mov dword [ebp + 8], esi
mov esi, dword [ebp + 0xc]
mov byte [esi], bl
mov ebx, dword [ebp + 8]
sar ebx, 0x10
sar edi, 0x10
and edi, eax
xor bl, byte [edi + str.cw]
mov edi, dword [ebp - 0x10]
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 - 0xc]
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 - 0xc]
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 - 0xc]
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 esi
pop ebx
leave
ret 8