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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
test esi, esi
je 0x1001429a
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x3cc], 0x10
mov dword [edi + 0x3c8], 0x20
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x3d4], xmm0
push dword [edi + 0x3cc]
push eax
lea eax, [edi + 0x3f4]
push eax
call fcn.100632b0
mov eax, dword [edi + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x10013f24
cmp eax, 0x18
je 0x10013f16
mov eax, 0xe
jmp 0x10013f43
xor eax, eax
cmp dword [edi + 0x3cc], 0x20
sete al
jmp 0x10013f3c
mov ecx, dword [edi + 0x3cc]
cmp ecx, 0x10
jne 0x10013f34
lea eax, [ecx - 6]
jmp 0x10013f43
xor eax, eax
cmp ecx, 0x18
setne al
lea eax, [eax*2 + 0xc]
mov dword [edi + 0x3d0], eax
xor ecx, ecx
mov eax, dword [edi + 0x3cc]
cdq
and edx, 3
mov dword [ebp + 8], ecx
push ebx
lea ebx, [edx + eax]
mov eax, dword [edi + 0x3d0]
sar ebx, 2
mov dword [ebp - 8], ebx
test eax, eax
js 0x10013f93
lea edx, [edi + 8]
nop
test ebx, ebx
jle 0x10013f82
mov ecx, ebx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x3d0]
inc ecx
add edx, 0x20
mov dword [ebp + 8], ecx
cmp ecx, eax
jle 0x10013f70
xor edx, edx
test eax, eax
js 0x10013fc6
lea ecx, [edi + 0x1e8]
mov dword [ebp + 8], ecx
test ebx, ebx
jle 0x10013fb5
mov edi, dword [ebp + 8]
mov ecx, ebx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x3d0]
inc edx
add ecx, 0x20
mov dword [ebp + 8], ecx
cmp edx, eax
jle 0x10013fa2
lea ecx, [eax + 1]
mov eax, dword [edi + 0x3c8]
cdq
and edx, 3
imul ecx, ebx
add eax, edx
lea edx, [edi + 0x414]
sar eax, 2
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
test eax, eax
jle 0x10014039
mov edi, eax
mov ebx, edx
movzx eax, byte [esi]
lea esi, [esi + 4]
shl eax, 0x18
lea ebx, [ebx + 4]
mov dword [ebx - 4], eax
movzx edx, byte [esi - 3]
shl edx, 0x10
or edx, eax
mov dword [ebx - 4], edx
movzx ecx, byte [esi - 2]
shl ecx, 8
or ecx, edx
mov dword [ebx - 4], ecx
movzx eax, byte [esi - 1]
or eax, ecx
mov dword [ebx - 4], eax
sub edi, 1
jne 0x10013ff5
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp + 0xc], esi
test eax, eax
jle 0x1001408c
mov dword [ebp - 0xc], edx
cmp esi, ecx
jge 0x10014211
mov eax, esi
mov ecx, dword [ebp - 0xc]
cdq
idiv ebx
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [edi + esi*4 + 8], ecx
mov ecx, dword [edi + 0x3d0]
mov esi, dword [ebp + 0xc]
sub ecx, eax
inc esi
mov dword [ebp + 0xc], esi
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add edx, 4
mov dword [edi + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
cmp esi, eax
jl 0x10014045
cmp esi, dword [ebp + 8]
jge 0x10014211
add eax, 0x104
lea ecx, [edi + eax*4]
mov eax, 0x10098698
mov dword [ebp - 0x14], ecx
mov ebx, dword [ecx]
movzx ecx, byte [eax]
inc eax
mov dword [ebp - 0x10], eax
mov eax, ebx
sar eax, 0x10
movzx eax, al
movsx edx, byte [eax + 0x1009a6b8]
mov eax, ebx
sar eax, 8
xor edx, ecx
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x1009a6b8]
xor edx, eax
movzx eax, bl
shl edx, 8
sar ebx, 0x18
movzx eax, byte [eax + 0x1009a6b8]
xor edx, eax
movzx eax, bl
mov ebx, dword [ebp - 4]
shl edx, 8
movzx eax, byte [eax + 0x1009a6b8]
xor edx, eax
lea eax, [edi + 0x414]
xor dword [eax], edx
cmp ebx, 8
je 0x10014129
cmp ebx, 1
jle 0x100141b4
lea ecx, [edi + 0x418]
lea edx, [ebx - 1]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x10014116
jmp 0x100141ae
lea eax, [edi + 0x418]
mov edx, 3
mov ecx, dword [eax - 4]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x10014134
mov edx, dword [edi + 0x420]
mov eax, edx
sar eax, 0x18
movzx eax, al
movsx ecx, byte [eax + 0x1009a6b8]
mov eax, edx
sar eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1009a6b8]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1009a6b8]
xor ecx, eax
movzx eax, dl
shl ecx, 8
mov edx, 3
movzx eax, byte [eax + 0x1009a6b8]
xor ecx, eax
xor dword [edi + 0x424], ecx
lea ecx, [edi + 0x428]
nop
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x100141a0
lea eax, [edi + 0x414]
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x100141ff
mov ebx, eax
cmp esi, dword [ebp + 8]
jge 0x1001420e
mov eax, esi
mov ecx, dword [ebx]
cdq
idiv dword [ebp - 8]
lea esi, [edx + eax*8]
mov dword [edi + esi*4 + 8], ecx
mov ecx, dword [edi + 0x3d0]
mov esi, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebx]
inc esi
add ebx, 4
mov dword [ebp + 0xc], esi
lea ecx, [edx + ecx*8]
mov dword [edi + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 4]
jl 0x100141c1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
cmp esi, dword [ebp + 8]
jl 0x100140a5
mov ebx, dword [ebp - 8]
mov eax, 1
mov dword [ebp + 8], eax
cmp dword [edi + 0x3d0], eax
jle 0x10014295
lea ecx, [edi + 0x208]
mov dword [ebp + 0xc], ecx
nop
test ebx, ebx
jle 0x10014283
mov esi, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x100992b8]
xor ecx, dword [eax*4 + 0x10098eb8]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10098ab8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x100986b8]
mov dword [esi - 4], ecx
sub ebx, 1
jne 0x10014236
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
inc eax
add ecx, 0x20
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, dword [edi + 0x3d0]
jl 0x10014230
mov byte [edi + 4], 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10