Function at 0x101409d2
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, 0x84
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x30], xmm0
lea eax, [ecx + 0x3c8]
mov dword [ebp - 0x5c], eax
movdqu xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [ecx + 0x3c8]
movups xmmword [ebp - 0x20], xmm0
test edx, edx
jle 0x10140d8e
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x1e8]
mov dword [ebp - 0x58], ecx
add eax, 0x1d8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], esi
xor eax, eax
mov ecx, dword [ebx + eax*4]
bswap ecx
mov dword [ebp + eax*4 - 0x40], ecx
mov dword [ebp + eax*4 - 0x30], ecx
inc eax
cmp eax, 4
jne 0x10140a37
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x4c], edi
cmp eax, 2
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], ebx
jl 0x10140bdb
mov dword [ebp - 0x50], eax
dec eax
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x54], eax
mov eax, esi
xor eax, dword [ebx + 8]
xor edx, dword [ebx + 0xc]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x44], edx
shr edx, 0x18
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
mov esi, eax
mov dword [ebp - 0x48], eax
shr eax, 0xe
mov esi, 0x3fc
and eax, esi
mov esi, dword [eax + 0x10319540]
xor esi, dword [edx*4 + 0x10319140]
xor ecx, dword [ebx + 4]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], ecx
shr ecx, 8
mov edx, 0xff
and ecx, edx
xor esi, dword [ecx*4 + 0x10319940]
xor edi, dword [ebx]
mov ecx, edi
mov eax, edi
mov dword [ebp - 0x78], edi
and edi, edx
mov ebx, 0x3fc
xor esi, dword [edi*4 + 0x10319d40]
mov dword [ebp - 0x4c], esi
mov edx, ecx
shr edx, 0x18
mov ecx, dword [ebp - 0x8c]
shr ecx, 0xe
and ecx, ebx
mov edi, dword [ecx + 0x10319540]
xor edi, dword [edx*4 + 0x10319140]
mov esi, dword [ebp - 0x80]
shr esi, 8
mov ecx, 0xff
and esi, ecx
xor edi, dword [esi*4 + 0x10319940]
mov esi, dword [ebp - 0x70]
and esi, ecx
mov edx, 0xff
xor edi, dword [esi*4 + 0x10319d40]
mov esi, dword [ebp - 0x74]
shr esi, 0x18
shr eax, 0xe
and eax, ebx
mov ecx, dword [eax + 0x10319540]
mov eax, dword [ebp - 0x54]
xor ecx, dword [esi*4 + 0x10319140]
mov esi, dword [ebp - 0x88]
shr esi, 8
and esi, edx
xor ecx, dword [esi*4 + 0x10319940]
mov esi, dword [ebp - 0x84]
and esi, edx
xor ecx, dword [esi*4 + 0x10319d40]
shr dword [ebp - 0x48], 0x18
mov esi, dword [ebp - 0x7c]
shr esi, 0xe
and esi, ebx
mov esi, dword [esi + 0x10319540]
mov ebx, dword [ebp - 0x48]
xor esi, dword [ebx*4 + 0x10319140]
mov ebx, dword [ebp - 0x78]
shr ebx, 8
and ebx, edx
mov edx, dword [ebp - 0x4c]
xor esi, dword [ebx*4 + 0x10319940]
mov ebx, 0xff
and dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x44]
xor esi, dword [ebx*4 + 0x10319d40]
mov ebx, dword [ebp - 0x90]
add ebx, 0x10
dec eax
jne 0x10140a7e
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x50]
shl eax, 4
add eax, dword [ebp - 0x60]
mov ecx, edi
jmp 0x10140be7
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
xor ecx, dword [eax]
mov dword [ebp - 0x44], ecx
xor edx, dword [eax + 0xc]
mov dword [ebp - 0x4c], edx
mov edi, eax
mov eax, ecx
shr eax, 0x18
movzx ecx, byte [eax + 0x1031a140]
shl ecx, 0x18
mov eax, edx
shr eax, 0x10
mov ebx, 0xff
and eax, ebx
movzx eax, byte [eax + 0x1031a140]
shl eax, 0x10
or eax, ecx
xor esi, dword [edi + 8]
mov ebx, edi
mov dword [ebp - 0x50], edi
mov ecx, esi
shr ecx, 8
mov edi, 0xff
and ecx, edi
movzx ecx, byte [ecx + 0x1031a140]
shl ecx, 8
or ecx, eax
mov edi, dword [ebp - 0x48]
xor edi, dword [ebx + 4]
mov eax, edi
mov ebx, 0xff
and eax, ebx
movzx eax, byte [eax + 0x1031a140]
or eax, ecx
mov dword [ebp - 0x48], eax
mov eax, edi
shr eax, 0x18
movzx ecx, byte [eax + 0x1031a140]
shl ecx, 0x18
mov eax, dword [ebp - 0x44]
shr eax, 0x10
and eax, ebx
movzx eax, byte [eax + 0x1031a140]
shl eax, 0x10
or eax, ecx
mov ecx, edx
shr ecx, 8
and ecx, ebx
movzx edx, byte [ecx + 0x1031a140]
shl edx, 8
or edx, eax
mov eax, esi
mov ecx, 0xff
and eax, ecx
movzx eax, byte [eax + 0x1031a140]
or eax, edx
mov dword [ebp - 0x54], eax
mov eax, esi
shr eax, 0x18
movzx edx, byte [eax + 0x1031a140]
shl edx, 0x18
mov eax, edi
shr eax, 0x10
and eax, ecx
movzx eax, byte [eax + 0x1031a140]
shl eax, 0x10
or eax, edx
mov edx, dword [ebp - 0x44]
shr edx, 8
and edx, ecx
movzx edx, byte [edx + 0x1031a140]
shl edx, 8
or edx, eax
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
and eax, ebx
movzx eax, byte [eax + 0x1031a140]
or eax, edx
mov edx, ecx
shr edx, 0x18
mov ecx, dword [ebp - 0x44]
movzx ebx, byte [edx + 0x1031a140]
shl ebx, 0x18
shr esi, 0x10
mov edx, 0xff
and esi, edx
movzx edx, byte [esi + 0x1031a140]
shl edx, 0x10
or edx, ebx
shr edi, 8
mov esi, 0xff
and edi, esi
movzx esi, byte [edi + 0x1031a140]
mov edi, 0xff
shl esi, 8
or esi, edx
and ecx, edi
movzx edx, byte [ecx + 0x1031a140]
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x48]
xor edi, dword [ecx + 0x10]
or edx, esi
mov dword [ebp - 0x30], edi
mov esi, dword [ebp - 0x54]
xor esi, dword [ecx + 0x14]
mov dword [ebp - 0x2c], esi
xor eax, dword [ecx + 0x18]
mov dword [ebp - 0x28], eax
xor edx, dword [ecx + 0x1c]
mov dword [ebp - 0x24], edx
xor eax, eax
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp + eax*4 - 0x30]
xor ecx, dword [ebp + eax*4 - 0x20]
bswap ecx
mov dword [esi + eax*4], ecx
mov ecx, dword [ebp + eax*4 - 0x40]
mov dword [ebp + eax*4 - 0x20], ecx
inc eax
cmp eax, 4
jne 0x10140d5b
add esi, 0x10
mov ebx, dword [ebp - 0x68]
add ebx, 0x10
mov ecx, dword [ebp - 0x6c]
lea edx, [ecx - 0x10]
cmp ecx, 0x10
jg 0x10140a32
movups xmm0, xmmword [ebp - 0x20]
mov eax, dword [ebp - 0x5c]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret