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

Disassembly:
sub esp, 0x38
mov eax, dword [0x10114380]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [0x1011caa8]
push esi
push edi
mov dword [esp + 0x18], eax
lea ebx, [ebp - 6]
mov dword [esp + 0x20], ebx
test ebx, ebx
jle 0x1008fd8f
mov ecx, ebx
lea edx, [ebx*4 - 4]
shl ecx, 2
lea edi, [esp + 0x24]
mov esi, edx
lea eax, [ecx - 4]
shr ecx, 2
sub esi, eax
sub edx, eax
add esi, dword [esp + 0x4c]
add edi, edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor edx, edx
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008fd93
cmp edi, ebx
jge 0x1008fd74
mov ebp, dword [esp + 0x18]
cmp edx, 4
jge 0x1008fd6e
mov eax, dword [esp + edi*4 + 0x24]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x1008fd58
mov ebp, dword [0x1011caa8]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x1008fd49
jmp 0x1008fd93
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008fefd
lea eax, [esp + 0x24]
mov dword [esp + 0x10], 0x100f3de8
sub eax, 4
mov dword [esp + 0x1c], eax
mov edi, eax
movzx eax, byte [esp + ebx*4 + 0x21]
mov cl, byte [esp + 0x24]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x24], cl
movzx eax, byte [esp + ebx*4 + 0x22]
mov al, byte [eax + str.cw]
xor byte [esp + 0x25], al
movzx eax, byte [esp + ebx*4 + 0x23]
mov al, byte [eax + str.cw]
xor byte [esp + 0x26], al
movzx eax, byte [esp + ebx*4 + 0x20]
mov al, byte [eax + str.cw]
xor byte [esp + 0x27], al
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 4
mov eax, dword [eax]
xor cl, al
mov byte [esp + 0x24], cl
xor ecx, ecx
inc ecx
cmp ebx, 8
je 0x1008fe34
cmp ebx, ecx
jle 0x1008fe1d
mov eax, dword [esp + ecx*4 + 0x20]
xor dword [esp + ecx*4 + 0x24], eax
inc ecx
cmp ecx, ebx
jl 0x1008fe10
lea eax, [esp + 0x24]
xor edi, edi
sub eax, 4
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x1008feee
jmp 0x1008feaa
mov ebx, dword [esp + 0x1c]
mov ebp, edi
mov edi, ebx
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + ecx*4]
xor dword [esp + ecx*4 + 0x24], eax
inc ecx
cmp ecx, 4
jl 0x1008fe38
movzx eax, byte [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov ebp, dword [0x1011caa8]
mov edi, dword [esp + 0x14]
mov al, byte [eax + str.cw]
xor byte [esp + 0x34], al
movzx eax, byte [esp + 0x31]
push 5
pop ecx
mov al, byte [eax + str.cw]
xor byte [esp + 0x35], al
movzx eax, byte [esp + 0x32]
mov al, byte [eax + str.cw]
xor byte [esp + 0x36], al
movzx eax, byte [esp + 0x33]
mov al, byte [eax + str.cw]
xor byte [esp + 0x37], al
mov eax, dword [edi + ecx*4]
xor dword [esp + ecx*4 + 0x24], eax
inc ecx
cmp ecx, 8
jl 0x1008fe9b
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008feee
cmp edi, ebx
jge 0x1008fed5
mov ebp, dword [esp + 0x18]
cmp edx, 4
jge 0x1008fecf
mov eax, dword [esp + edi*4 + 0x24]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x1008feb9
mov ebp, dword [0x1011caa8]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x1008feaa
mov edi, dword [esp + 0x14]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x1008fdb3
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009543c
add esp, 0x38
ret