Function at 0x401533
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0040103f
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040103f
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040103f
add esi, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040103f
mov edi, dword [ebp + 0x10]
xor ebx, ebx
add esp, 0x20
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
xor ecx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x20]
mov eax, dword [edi]
xor eax, dword [ebp - 0x24]
mov dword [ebp + 0x10], ecx
mov bl, ch
mov dword [ebp + 8], edx
xor ecx, ecx
mov dword [ebp - 4], eax
mov cl, byte [ebp + 0xa]
mov esi, dword [ebp - 4]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx*4 + 0x40f950]
mov ebx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x18]
xor ecx, dword [ebx*4 + 0x40f550]
shr esi, 0x18
mov ebx, eax
mov dword [ebp - 8], eax
xor ecx, dword [esi*4 + 0x40f150]
mov esi, 0xff
and ebx, esi
shr edx, 0x18
xor ecx, dword [ebx*4 + 0x40fd50]
xor ebx, ebx
mov bl, ah
xor eax, eax
mov al, byte [ebp + 0x12]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx*4 + 0x40f950]
mov ebx, dword [ebp - 0x14]
xor eax, dword [ebx*4 + 0x40f550]
xor ebx, ebx
mov bl, byte [ebp - 3]
xor eax, dword [edx*4 + 0x40f150]
mov edx, dword [ebp - 4]
and edx, esi
xor eax, dword [edx*4 + 0x40fd50]
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, byte [ebp - 6]
mov edx, dword [eax*4 + 0x40f550]
mov eax, dword [ebp + 0x10]
xor edx, dword [ebx*4 + 0x40f950]
shr eax, 0x18
xor edx, dword [eax*4 + 0x40f150]
mov eax, dword [ebp + 8]
and eax, esi
xor edx, dword [eax*4 + 0x40fd50]
xor eax, eax
mov al, byte [ebp + 9]
xor ebx, ebx
mov bl, byte [ebp - 2]
mov dword [ebp + 8], ebx
mov ebx, dword [eax*4 + 0x40f950]
mov eax, dword [ebp + 8]
xor ebx, dword [eax*4 + 0x40f550]
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x40f150]
mov eax, dword [ebp + 0x10]
and eax, esi
xor ebx, dword [eax*4 + 0x40fd50]
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 1
jle 0x40178a
lea eax, [edi + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
dec eax
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax - 8]
xor eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ecx - 4]
xor ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
xor ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0x10], ecx
add dword [ebp - 0xc], 0x10
mov edx, dword [edx + 4]
xor edx, ebx
xor ebx, ebx
mov bl, ch
xor ecx, ecx
mov cl, byte [ebp + 0xa]
mov dword [ebp - 8], edx
mov ebx, dword [ebx*4 + 0x40f950]
xor ebx, dword [ecx*4 + 0x40f550]
mov ecx, eax
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x40f150]
mov ecx, edx
and ecx, esi
xor ebx, dword [ecx*4 + 0x40fd50]
mov ecx, ebx
xor ebx, ebx
mov bl, dh
xor edx, edx
mov dl, byte [ebp + 0x12]
mov ebx, dword [ebx*4 + 0x40f950]
xor ebx, dword [edx*4 + 0x40f550]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x40f150]
mov edx, eax
and edx, esi
xor ebx, dword [edx*4 + 0x40fd50]
xor edx, edx
mov dl, byte [ebp - 6]
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov edx, dword [edx*4 + 0x40f550]
mov bl, ah
mov eax, dword [ebp + 0x10]
xor edx, dword [ebx*4 + 0x40f950]
xor ebx, ebx
shr eax, 0x18
mov bl, byte [ebp - 2]
xor edx, dword [eax*4 + 0x40f150]
mov eax, dword [ebp + 8]
and eax, esi
xor edx, dword [eax*4 + 0x40fd50]
xor eax, eax
mov al, byte [ebp + 9]
mov eax, dword [eax*4 + 0x40f950]
xor eax, dword [ebx*4 + 0x40f550]
mov ebx, eax
mov eax, dword [ebp - 8]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x40f150]
mov eax, dword [ebp + 0x10]
and eax, esi
xor ebx, dword [eax*4 + 0x40fd50]
dec dword [ebp - 0x14]
jne 0x40168c
mov eax, dword [ebp + 0x14]
shl eax, 4
add edi, eax
mov eax, dword [edi - 0x10]
xor eax, ecx
mov ecx, dword [edi - 0xc]
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp + 8], ecx
mov ecx, dword [edi - 8]
xor ecx, edx
xor edx, edx
mov dword [ebp + 0x10], ecx
mov ecx, dword [edi - 4]
mov dl, byte [ebp + 0x12]
xor ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dl, byte [edx*4 + 0x40f152]
shr ebx, 0x18
and edx, esi
movzx ebx, word [ebx*4 + 0x40f152]
shl ebx, 8
or edx, ebx
xor ebx, ebx
mov bl, ch
shl edx, 8
mov bl, byte [ebx*4 + 0x40f152]
and ebx, esi
or edx, ebx
mov ebx, eax
and ebx, esi
shl edx, 8
mov bl, byte [ebx*4 + 0x40f152]
and ebx, esi
or edx, ebx
mov ebx, dword [ebp + 0x10]
xor edx, dword [edi + 4]
shr ebx, 0x18
mov dword [ebp - 0x10], edx
xor edx, edx
mov dl, byte [ebp - 6]
movzx ebx, word [ebx*4 + 0x40f152]
mov dl, byte [edx*4 + 0x40f152]
and edx, esi
shl ebx, 8
or edx, ebx
xor ebx, ebx
mov bl, ah
shl edx, 8
mov bl, byte [ebx*4 + 0x40f152]
and ebx, esi
or edx, ebx
mov ebx, dword [ebp + 8]
and ebx, esi
shl edx, 8
mov bl, byte [ebx*4 + 0x40f152]
and ebx, esi
or edx, ebx
xor edx, dword [edi + 8]
shr ecx, 0x18
mov dword [ebp + 0x14], edx
xor edx, edx
mov dl, byte [ebp - 2]
movzx ecx, word [ecx*4 + 0x40f152]
mov bl, byte [edx*4 + 0x40f152]
and ebx, esi
shl ecx, 8
or ebx, ecx
xor ecx, ecx
mov cl, byte [ebp + 9]
shl ebx, 8
mov cl, byte [ecx*4 + 0x40f152]
and ecx, esi
or ebx, ecx
mov ecx, dword [ebp + 0x10]
and ecx, esi
shl ebx, 8
mov cl, byte [ecx*4 + 0x40f152]
and ecx, esi
or ebx, ecx
xor ecx, ecx
xor ebx, dword [edi + 0xc]
mov cl, byte [ebp + 0xa]
shr eax, 0x18
mov cl, byte [ecx*4 + 0x40f152]
movzx eax, word [eax*4 + 0x40f152]
and ecx, esi
shl eax, 8
or ecx, eax
xor eax, eax
mov al, byte [ebp + 0x11]
shl ecx, 8
mov al, byte [eax*4 + 0x40f152]
and eax, esi
or ecx, eax
mov eax, dword [ebp - 8]
and eax, esi
shl ecx, 8
mov al, byte [eax*4 + 0x40f152]
and eax, esi
mov esi, dword [ebp + 0xc]
or ecx, eax
xor ecx, dword [edi]
push ecx
push esi
call fcn.004013fd
push dword [ebp - 0x10]
lea eax, [esi + 4]
push eax
call fcn.004013fd
push dword [ebp + 0x14]
lea eax, [esi + 8]
push eax
call fcn.004013fd
add esi, 0xc
push ebx
push esi
call fcn.004013fd
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret