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

Disassembly:
sub esp, 0x30
mov eax, dword [0x1010e440]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
push ebx
push ebp
mov ebp, dword [0x10116970]
push esi
mov esi, dword [esp + 0x40]
push edi
lea ebx, [ebp - 6]
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x1008baa7
mov ecx, ebx
lea edx, [ebx*4 - 4]
shl ecx, 2
lea edi, [esp + 0x1c]
lea eax, [ecx - 4]
shr ecx, 2
sub esi, eax
add esi, edx
sub edx, eax
add edi, edx
xor edx, edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008baab
cmp edi, ebx
jge 0x1008ba8c
mov ebp, dword [esp + 0x14]
cmp edx, 4
jge 0x1008ba86
mov eax, dword [esp + edi*4 + 0x1c]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x1008ba70
mov ebp, dword [0x10116970]
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 0x1008ba61
jmp 0x1008baab
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008bbfb
lea ecx, [esp + 0x1c]
mov edi, 0x100edea0
sub ecx, 4
movzx eax, byte [esp + ebx*4 + 0x19]
mov dword [esp + 0x10], ecx
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + ebx*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + ebx*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + ebx*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov eax, dword [edi]
xor cl, al
mov byte [esp + 0x1c], cl
add edi, 4
xor ecx, ecx
mov dword [esp + 0x18], edi
inc ecx
cmp ebx, 8
je 0x1008bb45
cmp ebx, ecx
jle 0x1008bb2e
mov eax, dword [esp + ecx*4 + 0x18]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, ebx
jl 0x1008bb21
lea ecx, [esp + 0x1c]
xor edi, edi
sub ecx, 4
mov dword [esp + 0x10], ecx
test ebx, ebx
jle 0x1008bbec
jmp 0x1008bba4
mov edi, dword [esp + 0x10]
mov eax, dword [edi + ecx*4]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, 4
jl 0x1008bb49
movzx eax, byte [esp + 0x28]
push 5
pop ecx
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
mov eax, dword [edi + ecx*4]
xor dword [esp + ecx*4 + 0x1c], eax
inc ecx
cmp ecx, 8
jl 0x1008bb95
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008bbe8
cmp edi, ebx
jge 0x1008bbcf
mov ebp, dword [esp + 0x14]
cmp edx, 4
jge 0x1008bbc9
mov eax, dword [esp + edi*4 + 0x1c]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x1008bbb3
mov ebp, dword [0x10116970]
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 0x1008bba4
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x1008bac2
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10090b29
add esp, 0x30
ret