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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [ecx + 4], 0
mov dword [ebp - 8], ecx
jne 0x10016d6a
push 0x1002c370
lea ecx, [ebp - 0x20]
call fcn.1000d5e8
push 0x10029ad0
lea eax, [ebp - 0x20]
push eax
call fcn.1000de51
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 1]
push ebx
push esi
movzx esi, byte [eax + 5]
push edi
movzx edi, byte [eax]
shl edx, 0x10
shl edi, 0x18
or edi, edx
movzx edx, byte [eax + 2]
shl edx, 8
or edi, edx
movzx edx, byte [eax + 3]
movzx ebx, byte [eax + 9]
or edi, edx
movzx edx, byte [eax + 4]
shl esi, 0x10
xor edi, dword [ecx + 0x1e8]
shl edx, 0x18
or edx, esi
movzx esi, byte [eax + 6]
shl esi, 8
or edx, esi
movzx esi, byte [eax + 7]
or edx, esi
movzx esi, byte [eax + 8]
xor edx, dword [ecx + 0x1ec]
shl ebx, 0x10
shl esi, 0x18
or esi, ebx
movzx ebx, byte [eax + 0xa]
shl ebx, 8
or esi, ebx
movzx ebx, byte [eax + 0xb]
or esi, ebx
xor esi, dword [ecx + 0x1f0]
movzx ebx, byte [eax + 0xc]
movzx ecx, byte [eax + 0xd]
shl ecx, 0x10
shl ebx, 0x18
or ebx, ecx
movzx ecx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl ecx, 8
or ecx, eax
or ecx, ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x3d0]
xor ecx, dword [ebx + 0x1f4]
mov dword [ebp - 0x14], eax
cmp eax, 1
jle 0x10016f67
add ebx, 0x210
dec eax
mov dword [ebp + 8], ebx
mov dword [ebp - 4], eax
mov eax, ecx
sar eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x10025a78]
mov ebx, edx
sar ebx, 0x18
and ebx, 0xff
xor eax, dword [ebx*4 + 0x10025278]
mov ebx, edi
sar ebx, 0x10
and ebx, 0xff
xor eax, dword [ebx*4 + 0x10025678]
mov ebx, esi
and ebx, 0xff
xor eax, dword [ebx*4 + 0x10025e78]
mov ebx, dword [ebp + 8]
xor eax, dword [ebx - 4]
mov ebx, edx
mov dword [ebp - 0xc], eax
sar ebx, 0x10
and ebx, 0xff
mov eax, esi
sar eax, 0x18
and eax, 0xff
mov eax, dword [eax*4 + 0x10025278]
xor eax, dword [ebx*4 + 0x10025678]
mov ebx, edi
sar ebx, 8
and ebx, 0xff
xor eax, dword [ebx*4 + 0x10025a78]
mov ebx, ecx
and ebx, 0xff
xor eax, dword [ebx*4 + 0x10025e78]
mov ebx, dword [ebp + 8]
xor eax, dword [ebx]
mov ebx, esi
mov dword [ebp - 0x10], eax
mov eax, ecx
sar eax, 0x18
sar ebx, 0x10
and ebx, 0xff
and eax, 0xff
mov eax, dword [eax*4 + 0x10025278]
xor eax, dword [ebx*4 + 0x10025678]
sar ecx, 0x10
mov ebx, edx
sar ebx, 8
and ebx, 0xff
xor eax, dword [ebx*4 + 0x10025a78]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10025678]
sar esi, 8
mov ebx, edi
and esi, 0xff
xor ecx, dword [esi*4 + 0x10025a78]
mov esi, dword [ebp - 0x10]
sar edi, 0x18
and edi, 0xff
xor ecx, dword [edi*4 + 0x10025278]
and ebx, 0xff
xor eax, dword [ebx*4 + 0x10025e78]
mov ebx, dword [ebp + 8]
xor eax, dword [ebx + 4]
and edx, 0xff
xor ecx, dword [edx*4 + 0x10025e78]
mov edx, dword [ebp - 0xc]
xor ecx, dword [ebx - 8]
add ebx, 0x20
dec dword [ebp - 4]
mov edi, ecx
mov ecx, eax
mov dword [ebp + 8], ebx
jne 0x10016e25
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
shl eax, 5
lea eax, [eax + ebx + 0x1e8]
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov dword [ebp + 8], eax
sar eax, 0x18
mov ebx, edi
sar ebx, 0x18
and ebx, 0xff
xor al, byte [ebx + 0x10024178]
mov ebx, dword [ebp + 0xc]
mov byte [ebx], al
mov ebx, dword [ebp + 8]
sar ebx, 0x10
mov eax, ecx
sar eax, 0x10
and eax, 0xff
xor bl, byte [eax + 0x10024178]
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
mov eax, esi
sar eax, 8
and eax, 0xff
xor bl, byte [eax + 0x10024178]
mov eax, dword [ebp + 0xc]
mov byte [eax + 2], bl
mov ebx, dword [ebp + 0xc]
mov eax, edx
and eax, 0xff
movzx eax, byte [eax + 0x10024178]
xor al, byte [ebp + 8]
mov byte [ebx + 3], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
sar eax, 0x18
mov ebx, edx
sar ebx, 0x18
and ebx, 0xff
xor al, byte [ebx + 0x10024178]
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 4], al
mov ebx, dword [ebp + 8]
sar ebx, 0x10
mov eax, edi
sar eax, 0x10
and eax, 0xff
xor bl, byte [eax + 0x10024178]
mov eax, dword [ebp + 0xc]
mov byte [eax + 5], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
mov eax, ecx
sar eax, 8
and eax, 0xff
xor bl, byte [eax + 0x10024178]
mov eax, dword [ebp + 0xc]
mov byte [eax + 6], bl
mov ebx, dword [ebp + 0xc]
mov eax, esi
and eax, 0xff
movzx eax, byte [eax + 0x10024178]
xor al, byte [ebp + 8]
mov byte [ebx + 7], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
mov ebx, esi
sar ebx, 0x18
sar eax, 0x18
and ebx, 0xff
xor al, byte [ebx + 0x10024178]
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 8], al
mov ebx, dword [ebp + 8]
mov eax, edx
sar eax, 0x10
and eax, 0xff
sar ebx, 0x10
xor bl, byte [eax + 0x10024178]
mov eax, dword [ebp + 0xc]
mov byte [eax + 9], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
mov eax, edi
sar eax, 8
and eax, 0xff
xor bl, byte [eax + 0x10024178]
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa], bl
mov eax, ecx
and eax, 0xff
mov bl, byte [eax + 0x10024178]
xor bl, byte [ebp + 8]
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xb], bl
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 8], ebx
sar ebx, 0x18
sar ecx, 0x18
and ecx, 0xff
xor bl, byte [ecx + 0x10024178]
mov ecx, dword [ebp + 8]
mov byte [eax + 0xc], bl
sar esi, 0x10
and esi, 0xff
mov ebx, ecx
sar ebx, 0x10
xor bl, byte [esi + 0x10024178]
sar edx, 8
mov byte [eax + 0xd], bl
and edx, 0xff
mov ebx, ecx
sar ebx, 8
xor bl, byte [edx + 0x10024178]
and edi, 0xff
mov byte [eax + 0xe], bl
mov dl, byte [edi + 0x10024178]
pop edi
xor dl, cl
pop esi
mov byte [eax + 0xf], dl
pop ebx
mov esp, ebp
pop ebp
ret 8