Function at 0x96be80
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x814
mov eax, dword [0xbcbae0]
mov edx, 1
mov ecx, 0x1b
xor eax, esp
mov dword [esp + 0x810], eax
xor eax, eax
test dl, dl
mov esi, 0
mov dword [esp + eax*4 + 0x410], edx
mov dword [esp + edx*4 + 0x10], eax
cmovs esi, ecx
inc eax
xor esi, edx
and edx, 0x7f
add edx, edx
xor esi, edx
cmp eax, 0x100
mov edx, esi
jne 0x96bea4
mov eax, 1
mov dword [0xc220d4], 1
mov dword [0xc220d8], 2
mov dword [0xc220dc], 4
mov dword [0xc220e0], 8
mov dword [0xc220e4], 0x10
mov dword [0xc220e8], 0x20
mov dword [0xc220ec], 0x40
mov dword [0xc220f0], 0x80
mov dword [0xc220f4], 0x1b
mov dword [0xc220f8], 0x36
mov byte [0xc220fc], 0x63
mov byte [0xc2425f], 0
mov ecx, 0xff
sub ecx, dword [esp + eax*4 + 0x10]
mov ecx, dword [esp + ecx*4 + 0x410]
mov ebx, ecx
lea edx, [ecx + ecx]
shr ebx, 7
or ebx, edx
movzx esi, bl
mov edi, esi
mov edx, esi
and edi, 0x7f
shr edx, 7
add edi, edi
or edx, edi
shr edi, 7
xor esi, edx
and edx, 0x7f
add edx, edx
or edi, edx
shr edx, 7
xor esi, edi
and edi, 0x7f
lea edx, [edx + edi*2]
xor edx, esi
xor edx, ecx
xor edx, 0x63
mov byte [eax + 0xc220fc], dl
mov byte [edx + 0xc241fc], al
inc eax
cmp eax, 0x100
jne 0x96bf43
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
movzx eax, byte [ebx + 0xc220fc]
mov edx, eax
mov ecx, eax
mov esi, eax
mov edi, eax
sar dl, 7
add cl, al
shl esi, 8
shl edi, 0x10
and dl, 0x1b
or edi, esi
movzx esi, byte [ebx + 0xc241fc]
xor dl, cl
movzx ecx, dl
xor dl, al
movzx edx, dl
or edi, ecx
mov ecx, edx
shl ecx, 0x18
or ecx, edi
shl edi, 8
or edi, edx
mov dword [ebx*4 + 0xc231fc], ecx
mov ecx, 0
mov edx, 0
mov dword [ebx*4 + 0xc235fc], edi
shl edi, 8
or edi, eax
mov dword [ebx*4 + 0xc239fc], edi
shl edi, 8
or edi, eax
test esi, esi
mov eax, 0
mov dword [ebx*4 + 0xc23dfc], edi
je 0x96c0fb
mov ebp, dword [esp + esi*4 + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, 0x80808081
lea edi, [ebp + eax]
mov eax, edi
imul ecx
mov ecx, 0x80808081
mov esi, edx
add esi, edi
mov eax, esi
sar esi, 7
shr eax, 0x1f
add esi, eax
mov eax, esi
shl eax, 8
sub esi, eax
mov eax, dword [esp + 8]
add esi, edi
lea edi, [ebp + eax]
mov eax, edi
imul ecx
add edx, edi
mov eax, edx
sar edx, 7
shr eax, 0x1f
add edx, eax
mov eax, edx
shl eax, 8
sub edx, eax
mov eax, dword [esp]
add edx, edi
mov ecx, dword [esp + edx*4 + 0x410]
mov edx, 0x80808081
lea edi, [ebp + eax]
add ebp, dword [esp + 4]
mov eax, edi
shl ecx, 8
imul edx
xor ecx, dword [esp + esi*4 + 0x410]
mov esi, edx
mov edx, 0x80808081
add esi, edi
mov eax, esi
sar esi, 7
shr eax, 0x1f
add esi, eax
mov eax, esi
shl eax, 8
sub esi, eax
mov eax, ebp
imul edx
add esi, edi
add edx, ebp
mov eax, edx
sar edx, 7
shr eax, 0x1f
add edx, eax
mov eax, edx
shl eax, 8
sub edx, eax
mov eax, dword [esp + esi*4 + 0x410]
add edx, ebp
mov edx, dword [esp + edx*4 + 0x410]
shl eax, 0x10
xor eax, ecx
shl edx, 0x18
movzx ecx, ch
xor edx, eax
mov dword [ebx*4 + 0xc221fc], edx
shrd edx, eax, 0x18
shr eax, 0x10
mov dword [ebx*4 + 0xc225fc], edx
shl edx, 8
movzx eax, al
or eax, edx
mov dword [ebx*4 + 0xc229fc], eax
shl eax, 8
or ecx, eax
mov dword [ebx*4 + 0xc22dfc], ecx
inc ebx
cmp ebx, 0x100
jne 0x96bfc1
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.00980459
add esp, 0x814
pop esi
pop edi
pop ebx
pop ebp
ret