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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x3c8]
mov dword [ebp - 0x3c], eax
movups xmm0, xmmword [ecx + 0x3c8]
movups xmmword [ebp - 0x20], xmm0
test esi, esi
jle 0x10141148
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [eax + 8]
mov dword [ebp - 0x38], ecx
add eax, 0xfffffff8
mov dword [ebp - 0x40], eax
xor eax, eax
mov ecx, dword [edi + eax*4]
bswap ecx
xor dword [ebp + eax*4 - 0x20], ecx
inc eax
cmp eax, 4
jne 0x10140df9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
cmp eax, 2
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ebx
jl 0x10140faa
mov dword [ebp - 0x34], eax
lea edx, [eax - 1]
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x30]
xor edx, dword [ebx]
mov eax, edi
xor eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov edi, edx
shr edi, 0x18
mov ebx, eax
shr ebx, 0xe
mov eax, 0x3fc
and ebx, eax
mov eax, dword [ebx + 0x1031a640]
xor eax, dword [edi*4 + 0x1031a240]
mov edi, ecx
mov ecx, dword [ebp - 0x28]
xor edi, dword [ecx + 8]
mov dword [ebp - 0x58], edi
shr edi, 8
mov ebx, 0xff
and edi, ebx
xor eax, dword [edi*4 + 0x1031aa40]
mov ecx, dword [ebp - 0x28]
xor esi, dword [ecx + 0xc]
mov edi, esi
and edi, ebx
xor eax, dword [edi*4 + 0x1031ae40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x54], edx
mov ecx, edx
mov dword [ebp - 0x2c], edx
shr edx, 0xe
mov ecx, 0x3fc
and edx, ecx
mov ebx, dword [edx + 0x1031a640]
mov edi, esi
mov eax, esi
shr esi, 0x18
xor ebx, dword [esi*4 + 0x1031a240]
mov ecx, dword [ebp - 0x24]
mov esi, ecx
mov dword [ebp - 0x50], ecx
shr ecx, 8
mov edx, 0xff
and ecx, edx
xor ebx, dword [ecx*4 + 0x1031aa40]
shr esi, 0x18
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x58]
mov ecx, esi
shr ecx, 0xe
mov edx, 0x3fc
and ecx, edx
mov ecx, dword [ecx + 0x1031a640]
mov edx, dword [ebp - 0x24]
xor ecx, dword [edx*4 + 0x1031a240]
shr edi, 8
mov edx, 0xff
and edi, edx
xor ecx, dword [edi*4 + 0x1031aa40]
mov edi, ecx
mov ecx, dword [ebp - 0x54]
and ecx, edx
xor edi, dword [ecx*4 + 0x1031ae40]
mov ecx, esi
mov edx, esi
mov esi, 0xff
and ecx, esi
mov esi, ebx
mov ebx, dword [ebp - 0x28]
xor esi, dword [ecx*4 + 0x1031ae40]
mov dword [ebp - 0x24], esi
shr edx, 0x18
shr eax, 0xe
mov ecx, 0x3fc
and eax, ecx
mov ecx, dword [eax + 0x1031a640]
xor ecx, dword [edx*4 + 0x1031a240]
mov edx, dword [ebp - 0x5c]
shr dword [ebp - 0x2c], 8
mov eax, 0xff
and dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor ecx, dword [eax*4 + 0x1031aa40]
mov eax, dword [ebp - 0x50]
mov esi, 0xff
and eax, esi
mov esi, dword [ebp - 0x24]
xor ecx, dword [eax*4 + 0x1031ae40]
add ebx, 0x10
dec edx
jne 0x10140e4a
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ecx
mov edi, dword [ebp - 0x34]
shl edi, 4
add edi, dword [ebp - 0x40]
jmp 0x10140fad
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
xor eax, dword [edi]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [edi + 4]
mov dword [ebp - 0x34], edi
shr eax, 0x18
movzx esi, byte [eax + str.cw]
shl esi, 0x18
mov eax, ecx
shr eax, 0x10
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
shl eax, 0x10
or eax, esi
mov edx, dword [ebp - 0x28]
xor edx, dword [edi + 8]
mov esi, edx
mov dword [ebp - 0x28], edx
shr esi, 8
mov ebx, 0xff
and esi, ebx
movzx esi, byte [esi + str.cw]
shl esi, 8
or esi, eax
mov ebx, dword [ebp - 0x24]
xor ebx, dword [edi + 0xc]
mov eax, ebx
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
or eax, esi
mov dword [ebp - 0x2c], eax
mov eax, ecx
shr eax, 0x18
movzx esi, byte [eax + str.cw]
shl esi, 0x18
mov eax, edx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
shl eax, 0x10
or eax, esi
mov esi, ebx
shr esi, 8
and esi, edi
movzx edi, byte [esi + str.cw]
shl edi, 8
or edi, eax
mov edx, ebx
mov ebx, dword [ebp - 0x30]
mov eax, ebx
mov esi, 0xff
and eax, esi
movzx eax, byte [eax + str.cw]
or eax, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 0x18
mov edi, edx
shr edi, 0x10
and edi, esi
movzx edi, byte [edi + str.cw]
shl edi, 0x10
or edi, eax
mov eax, ebx
shr eax, 8
mov ebx, 0xff
and eax, ebx
movzx eax, byte [eax + str.cw]
shl eax, 8
or eax, edi
mov edi, ecx
and edi, esi
movzx edi, byte [edi + str.cw]
or edi, eax
shr edx, 0x18
movzx ebx, byte [edx + str.cw]
shl ebx, 0x18
mov eax, dword [ebp - 0x30]
shr eax, 0x10
and eax, esi
movzx eax, byte [eax + str.cw]
shl eax, 0x10
or eax, ebx
shr ecx, 8
mov ebx, 0xff
and ecx, ebx
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x28]
and eax, ebx
movzx eax, byte [eax + str.cw]
mov edx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
xor ebx, dword [edx + 0x10]
or eax, ecx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x24]
xor ecx, dword [edx + 0x14]
mov dword [ebp - 0x1c], ecx
xor edi, dword [edx + 0x18]
mov dword [ebp - 0x18], edi
xor eax, dword [edx + 0x1c]
mov dword [ebp - 0x14], eax
xor eax, eax
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp + eax*4 - 0x20]
bswap ecx
mov dword [ebx + eax*4], ecx
inc eax
cmp eax, 4
jne 0x10141121
add ebx, 0x10
mov edi, dword [ebp - 0x48]
add edi, 0x10
mov ecx, dword [ebp - 0x4c]
lea esi, [ecx - 0x10]
cmp ecx, 0x10
jg 0x10140df7
movups xmm0, xmmword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret