Function at 0x100148f0
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 0x10014cda
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.10066560
mov eax, dword [edi + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x10014964
cmp eax, 0x18
je 0x10014956
mov eax, 0xe
jmp 0x10014983
xor eax, eax
cmp dword [edi + 0x3cc], 0x20
sete al
jmp 0x1001497c
mov ecx, dword [edi + 0x3cc]
cmp ecx, 0x10
jne 0x10014974
lea eax, [ecx - 6]
jmp 0x10014983
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 0x100149d3
lea edx, [edi + 8]
nop
test ebx, ebx
jle 0x100149c2
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 0x100149b0
xor edx, edx
test eax, eax
js 0x10014a06
lea ecx, [edi + 0x1e8]
mov dword [ebp + 8], ecx
test ebx, ebx
jle 0x100149f5
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 0x100149e2
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 0x10014a79
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 0x10014a35
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 0x10014acc
mov dword [ebp - 0xc], edx
cmp esi, ecx
jge 0x10014c51
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 0x10014a85
cmp esi, dword [ebp + 8]
jge 0x10014c51
add eax, 0x104
lea ecx, [edi + eax*4]
mov eax, 0x1009c688
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 + 0x1009e6a8]
mov eax, ebx
sar eax, 8
xor edx, ecx
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x1009e6a8]
xor edx, eax
movzx eax, bl
shl edx, 8
sar ebx, 0x18
movzx eax, byte [eax + 0x1009e6a8]
xor edx, eax
movzx eax, bl
mov ebx, dword [ebp - 4]
shl edx, 8
movzx eax, byte [eax + 0x1009e6a8]
xor edx, eax
lea eax, [edi + 0x414]
xor dword [eax], edx
cmp ebx, 8
je 0x10014b69
cmp ebx, 1
jle 0x10014bf4
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 0x10014b56
jmp 0x10014bee
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 0x10014b74
mov edx, dword [edi + 0x420]
mov eax, edx
sar eax, 0x18
movzx eax, al
movsx ecx, byte [eax + 0x1009e6a8]
mov eax, edx
sar eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1009e6a8]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1009e6a8]
xor ecx, eax
movzx eax, dl
shl ecx, 8
mov edx, 3
movzx eax, byte [eax + 0x1009e6a8]
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 0x10014be0
lea eax, [edi + 0x414]
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x10014c3f
mov ebx, eax
cmp esi, dword [ebp + 8]
jge 0x10014c4e
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 0x10014c01
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
cmp esi, dword [ebp + 8]
jl 0x10014ae5
mov ebx, dword [ebp - 8]
mov eax, 1
mov dword [ebp + 8], eax
cmp dword [edi + 0x3d0], eax
jle 0x10014cd5
lea ecx, [edi + 0x208]
mov dword [ebp + 0xc], ecx
nop
test ebx, ebx
jle 0x10014cc3
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 + 0x1009d2a8]
xor ecx, dword [eax*4 + 0x1009cea8]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1009caa8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1009c6a8]
mov dword [esi - 4], ecx
sub ebx, 1
jne 0x10014c76
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 0x10014c70
mov byte [edi + 4], 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10