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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xf0]
shr eax, 1
cmp eax, 7
mov dword [ebp - 0x14], eax
ja 0x40fef9
test eax, eax
je 0x40fef9
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 4
pop ebx
lea eax, [ebp + 8]
push ebx
push edi
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [edi + 4]
push ebx
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [edi + 8]
push ebx
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add edi, 0xc
push ebx
lea eax, [ebp - 0xc]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
push dword [ebp + 8]
call fcn.0040f93d
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.0040f93d
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.0040f93d
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.0040f93d
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov edi, dword [ebp + 0xc]
xor edx, dword [esi + 8]
xor dword [ebp + 8], ecx
xor edi, dword [esi + 4]
mov ecx, edx
xor eax, dword [esi + 0xc]
shr ecx, 8
mov ebx, edi
mov dword [ebp - 4], edx
movzx ecx, cl
shr ebx, 0x10
mov ecx, dword [ecx*4 + 0x41af2c]
mov dword [ebp + 0xc], edi
movzx ebx, bl
shr edx, 0x10
xor ecx, dword [ebx*4 + 0x41ab2c]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
movzx edx, dl
xor ecx, dword [ebx*4 + 0x41a72c]
mov dword [ebp - 0x10], edx
movzx ebx, al
shr edi, 0x18
xor ecx, dword [ebx*4 + 0x41b32c]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor ecx, dword [esi + 0x10]
mov edx, dword [ebx*4 + 0x41af2c]
mov ebx, dword [ebp - 0x10]
xor edx, dword [ebx*4 + 0x41ab2c]
mov ebx, eax
xor edx, dword [edi*4 + 0x41a72c]
movzx edi, byte [ebp + 8]
xor edx, dword [edi*4 + 0x41b32c]
xor edx, dword [esi + 0x14]
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [ebp - 4]
mov edi, dword [edi*4 + 0x41ab2c]
add esi, 0x20
shr ebx, 0x18
shr eax, 0x18
xor edi, dword [ebx*4 + 0x41a72c]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
mov eax, dword [eax*4 + 0x41a72c]
mov dword [ebp - 0xc], esi
xor edi, dword [ebx*4 + 0x41af2c]
movzx ebx, byte [ebp + 0xc]
xor edi, dword [ebx*4 + 0x41b32c]
mov ebx, dword [ebp + 0xc]
shr ebx, 8
xor edi, dword [esi - 8]
mov dword [ebp - 8], edi
movzx edi, bl
mov ebx, dword [ebp + 8]
xor eax, dword [edi*4 + 0x41af2c]
shr ebx, 0x10
movzx edi, bl
xor eax, dword [edi*4 + 0x41ab2c]
movzx edi, byte [ebp - 4]
xor eax, dword [edi*4 + 0x41b32c]
mov edi, dword [ebp - 0x14]
xor eax, dword [esi - 4]
dec edi
je 0x40fd33
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp - 8]
shr ebx, 8
movzx esi, bl
mov ebx, edx
mov esi, dword [esi*4 + 0x41af2c]
shr ebx, 0x10
movzx edi, bl
mov ebx, eax
xor esi, dword [edi*4 + 0x41ab2c]
mov edi, ecx
shr edi, 0x18
shr ebx, 8
xor esi, dword [edi*4 + 0x41a72c]
movzx edi, al
xor esi, dword [edi*4 + 0x41b32c]
mov edi, dword [ebp - 0xc]
xor esi, dword [edi]
mov dword [ebp + 8], esi
movzx esi, bl
mov ebx, dword [ebp - 8]
mov esi, dword [esi*4 + 0x41af2c]
shr ebx, 0x10
movzx edi, bl
mov ebx, eax
xor esi, dword [edi*4 + 0x41ab2c]
mov edi, edx
shr edi, 0x18
shr ebx, 0x10
xor esi, dword [edi*4 + 0x41a72c]
movzx edi, cl
shr eax, 0x18
xor esi, dword [edi*4 + 0x41b32c]
mov edi, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x41a72c]
xor esi, dword [edi + 4]
mov edi, dword [ebp - 8]
shr edi, 0x18
mov dword [ebp + 0xc], esi
movzx esi, bl
mov ebx, ecx
mov esi, dword [esi*4 + 0x41ab2c]
xor esi, dword [edi*4 + 0x41a72c]
shr ebx, 8
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x14]
movzx esi, bl
shr ecx, 0x10
xor edi, dword [esi*4 + 0x41af2c]
movzx esi, dl
shr edx, 8
xor edi, dword [esi*4 + 0x41b32c]
mov esi, dword [ebp - 0xc]
movzx edx, dl
movzx ecx, cl
xor eax, dword [edx*4 + 0x41af2c]
xor edi, dword [esi + 8]
mov edx, dword [ebp + 0xc]
xor eax, dword [ecx*4 + 0x41ab2c]
mov ebx, edi
movzx ecx, byte [ebp - 8]
shr edx, 0x10
xor eax, dword [ecx*4 + 0x41b32c]
mov ecx, edi
shr ecx, 8
movzx ecx, cl
movzx edx, dl
mov ecx, dword [ecx*4 + 0x41af2c]
xor eax, dword [esi + 0xc]
xor ecx, dword [edx*4 + 0x41ab2c]
mov edx, dword [ebp + 8]
shr edx, 0x18
mov dword [ebp - 4], edi
xor ecx, dword [edx*4 + 0x41a72c]
movzx edx, al
xor ecx, dword [edx*4 + 0x41b32c]
mov edx, eax
shr edx, 8
xor ecx, dword [esi + 0x10]
shr ebx, 0x10
movzx edx, dl
movzx edi, bl
mov edx, dword [edx*4 + 0x41af2c]
mov ebx, eax
xor edx, dword [edi*4 + 0x41ab2c]
mov edi, dword [ebp + 0xc]
shr edi, 0x18
shr ebx, 0x10
xor edx, dword [edi*4 + 0x41a72c]
add esi, 0x20
movzx edi, byte [ebp + 8]
shr eax, 0x18
xor edx, dword [edi*4 + 0x41b32c]
mov dword [ebp - 0xc], esi
movzx edi, bl
mov ebx, dword [ebp - 4]
xor edx, dword [esi - 0xc]
mov edi, dword [edi*4 + 0x41ab2c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x41a72c]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x41af2c]
movzx ebx, byte [ebp + 0xc]
xor edi, dword [ebx*4 + 0x41b32c]
mov ebx, dword [ebp + 0xc]
shr ebx, 8
xor edi, dword [esi - 8]
mov dword [ebp - 8], edi
movzx edi, bl
mov ebx, dword [eax*4 + 0x41a72c]
mov eax, dword [ebp + 8]
xor ebx, dword [edi*4 + 0x41af2c]
shr eax, 0x10
movzx eax, al
xor ebx, dword [eax*4 + 0x41ab2c]
movzx eax, byte [ebp - 4]
xor ebx, dword [eax*4 + 0x41b32c]
xor ebx, dword [esi - 4]
dec dword [ebp - 0x10]
mov eax, ebx
jne 0x40fb4a
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [ebp - 8]
mov edi, dword [edi*4 + str.ccccwwww]
shr ebx, 8
movzx ebx, bl
and edi, 0xff0000
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff00
xor edi, ebx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff000000
xor edi, ebx
movzx ebx, al
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, ebx
mov ebx, dword [ebp - 8]
xor edi, dword [esi]
shr ebx, 0x10
mov dword [ebp + 8], edi
movzx edi, bl
mov ebx, eax
mov edi, dword [edi*4 + str.ccccwwww]
shr ebx, 8
movzx ebx, bl
and edi, 0xff0000
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff00
xor edi, ebx
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff000000
xor edi, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, ebx
mov ebx, eax
xor edi, dword [esi + 4]
shr ebx, 0x10
mov dword [ebp + 0xc], edi
movzx edi, bl
mov ebx, dword [ebp - 8]
mov edi, dword [edi*4 + str.ccccwwww]
shr ebx, 0x18
and edi, 0xff0000
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff000000
xor edi, ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
shr ecx, 0x10
mov ebx, dword [ebx*4 + str.ccccwwww]
movzx ecx, cl
shr eax, 0x18
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff00
mov eax, dword [eax*4 + str.ccccwwww]
xor edi, ebx
movzx ebx, dl
and ecx, 0xff0000
and eax, 0xff000000
mov ebx, dword [ebx*4 + str.ccccwwww]
xor ecx, eax
shr edx, 8
movzx eax, dl
and ebx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
xor edi, ebx
xor edi, dword [esi + 8]
and eax, 0xff00
xor ecx, eax
movzx eax, byte [ebp - 8]
mov dword [ebp - 4], edi
mov eax, dword [eax*4 + str.ccccwwww]
push dword [ebp + 8]
and eax, 0xff
xor ecx, eax
xor ecx, dword [esi + 0xc]
mov dword [ebp - 0xc], ecx
call fcn.0040f93d
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.0040f93d
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.0040f93d
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.0040f93d
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp - 0xc], eax
pop edi
lea eax, [ebp + 8]
push edi
push eax
push esi
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [esi + 4]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push edi
push eax
lea eax, [esi + 8]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0xc]
push edi
add esi, 0xc
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
pop ebx
pop esi
leave
ret 0xc