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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0xf0
push 0
lea esi, [ebp + 0x1400]
mov dword [esp + 0x18], ebp
push esi
call fcn.10152e30
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [ebp + 0x14f8], 0
mov dword [ebp + 0x14f4], 0
test edx, edx
je 0x100fac18
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov dword [ebp + 0x14f4], ecx
movzx eax, byte [edx + 4]
movzx ecx, byte [edx + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov dword [ebp + 0x14f8], ecx
lea eax, [ebp + 0x800]
xor esi, esi
mov ebp, eax
movsx eax, byte [esi + str.cw]
lea ebp, [ebp + 4]
movzx ebx, al
mov ecx, ebx
lea eax, [ebx + ebx]
mov edi, eax
xor edi, 0x11b
cmp eax, 0x100
cmovb edi, eax
shl ecx, 8
mov eax, edi
mov edx, edi
shl eax, 8
xor edx, ebx
or eax, ebx
inc esi
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edx
mov dword [ebp - 0x804], eax
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, ebx
shl eax, 8
or eax, ebx
mov dword [ebp - 0x404], eax
mov eax, ecx
or eax, edx
or ecx, ebx
shl eax, 8
or eax, edi
shl ecx, 8
shl eax, 8
or eax, ebx
mov dword [ebp - 4], eax
mov eax, ecx
or eax, edx
or ecx, ebx
shl eax, 8
shl ecx, 8
or eax, edi
or ecx, ebx
mov dword [ebp + 0x3fc], eax
mov dword [ebp + 0x7fc], ecx
cmp esi, 0x100
jl 0x100fac22
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
lea esi, [ebp + 0x1400]
mov dword [ebp + 0x14f0], 0xe
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
mov dword [esi], ecx
movzx eax, byte [edi + 5]
mov dword [esp + 0x24], ecx
movzx ecx, byte [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 7]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
movzx eax, byte [edi + 8]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [edi + 9]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xb]
shl ecx, 8
or ecx, eax
mov dword [esi + 8], ecx
movzx ebp, byte [edi + 0xc]
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x14], ecx
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 0xe]
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 0xf]
shl ebp, 8
or ebp, eax
mov dword [esi + 0xc], ebp
movzx ecx, byte [edi + 0x10]
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x13]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x10], ecx
movzx ecx, byte [edi + 0x14]
movzx eax, byte [edi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x17]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x14], ecx
movzx ecx, byte [edi + 0x18]
movzx eax, byte [edi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1a]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [edi + 0x1b]
or ecx, eax
mov dword [esi + 0x18], ecx
movzx ebx, byte [edi + 0x1c]
movzx ecx, byte [edi + 0x1d]
mov eax, ebx
movzx edx, byte [edi + 0x1e]
movzx edi, byte [edi + 0x1f]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, edi
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 0x1000]
mov eax, dword [eax + edx*4 + 0x1000]
xor ecx, 0x1000000
mov edx, dword [esp + 0x1c]
and eax, 0xff0000
and ecx, 0xff000000
xor ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4 + 0x1000]
mov edi, dword [esp + 0x10]
and eax, 0xff00
xor ecx, eax
movzx eax, byte [edi + ebx*4 + 0x1000]
mov ebx, 0x101cde14
xor ecx, eax
mov eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x24]
xor edx, ecx
mov dword [esi + 0x20], ecx
xor eax, edx
mov dword [esi + 0x24], edx
xor ebp, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebp
mov ecx, dword [esi + 0x2c]
lea esi, [esi + 0x20]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + eax*4 + 0x1000]
mov eax, ecx
shr eax, 8
and edx, 0xff0000
movzx eax, al
mov eax, dword [edi + eax*4 + 0x1000]
and eax, 0xff00
xor edx, eax
mov eax, ecx
shr eax, 0x18
mov eax, dword [edi + eax*4 + 0x1000]
and eax, 0xff000000
xor edx, eax
movzx eax, cl
mov ecx, dword [esi - 8]
movzx eax, byte [edi + eax*4 + 0x1000]
xor edx, eax
mov eax, dword [esi - 0xc]
xor edx, dword [esi - 0x10]
xor eax, edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
xor ecx, eax
mov eax, dword [esi - 4]
xor eax, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x1c]
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [edi + eax*4 + 0x1000]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
movzx eax, al
mov eax, dword [edi + eax*4 + 0x1000]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [edi + eax*4 + 0x1000]
xor edx, eax
movzx eax, cl
mov eax, dword [edi + eax*4 + 0x1000]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi]
xor edx, dword [ebx]
add ebx, 4
mov dword [esi + 0x20], edx
mov eax, dword [esi + 4]
xor eax, edx
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + 0x28], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + 0x2c], eax
cmp ebx, 0x101cde2c
jne 0x100fae54
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc