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

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
xor eax, eax
push esi
push edi
mov ebx, dword [ebp + 0x144]
mov dword [esp + 0x10], eax
sub ebx, 6
cmp ebx, eax
jle 0x10012eda
mov esi, dword [esp + 0x3c]
mov ecx, ebx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp ebx, eax
jle 0x10012f37
mov dword [esp + 0x38], 0x15
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x144]
cmp edx, esi
ja 0x10012f37
cmp ecx, ebx
jge 0x10012f18
lea edx, [esp + ecx*4 + 0x14]
cmp eax, 4
jge 0x10012f1b
mov esi, dword [esp + 0x38]
mov edi, dword [edx]
add esi, eax
inc ecx
add edx, 4
inc eax
cmp ecx, ebx
mov dword [ebp + esi*4], edi
jl 0x10012efe
cmp eax, 4
jne 0x10012f33
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
add eax, 4
inc edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], edx
xor eax, eax
cmp ecx, ebx
jl 0x10012ee8
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x144]
cmp ecx, edx
ja 0x100130df
mov esi, 0x1002d920
jmp 0x10012f54
mov esi, dword [esp + 0x3c]
mov cl, byte [esp + 0x14]
xor edx, edx
mov dl, byte [esp + ebx*4 + 0x11]
add esi, 4
mov dword [esp + 0x3c], esi
xor cl, byte [edx + str.cw]
xor edx, edx
mov byte [esp + 0x14], cl
mov dl, byte [esp + ebx*4 + 0x12]
mov dl, byte [edx + str.cw]
xor byte [esp + 0x15], dl
xor edx, edx
mov dl, byte [esp + ebx*4 + 0x13]
mov dl, byte [edx + str.cw]
xor byte [esp + 0x16], dl
xor edx, edx
mov dl, byte [esp + ebx*4 + 0x10]
mov dl, byte [edx + str.cw]
xor byte [esp + 0x17], dl
mov dl, byte [esi - 4]
xor cl, dl
cmp ebx, 8
mov byte [esp + 0x14], cl
je 0x10012fd1
cmp ebx, 1
jle 0x10013069
lea ecx, [esp + 0x18]
lea edx, [ebx - 1]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x10012fbd
jmp 0x10013069
lea ecx, [esp + 0x18]
mov edx, 3
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x10012fda
mov ecx, dword [esp + 0x20]
and ecx, 0xff
mov dl, byte [ecx + str.cw]
mov cl, byte [esp + 0x24]
xor cl, dl
mov byte [esp + 0x24], cl
mov ecx, dword [esp + 0x21]
and ecx, 0xff
mov dl, byte [ecx + str.cw]
mov cl, byte [esp + 0x25]
xor cl, dl
mov byte [esp + 0x25], cl
mov ecx, dword [esp + 0x22]
and ecx, 0xff
mov dl, byte [ecx + str.cw]
mov cl, byte [esp + 0x26]
xor cl, dl
mov byte [esp + 0x26], cl
mov ecx, dword [esp + 0x23]
and ecx, 0xff
mov dl, byte [ecx + str.cw]
mov cl, byte [esp + 0x27]
xor cl, dl
mov edx, 3
mov byte [esp + 0x27], cl
lea ecx, [esp + 0x28]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
xor edi, esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x1001305a
xor ecx, ecx
test ebx, ebx
jle 0x100130cd
mov edx, dword [esp + 0x10]
lea edx, [edx*4 + 0x15]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x144]
cmp edx, esi
ja 0x100130cd
cmp ecx, ebx
jge 0x100130ae
lea edx, [esp + ecx*4 + 0x14]
cmp eax, 4
jge 0x100130b1
mov esi, dword [esp + 0x38]
mov edi, dword [edx]
add esi, eax
inc ecx
add edx, 4
inc eax
cmp ecx, ebx
mov dword [ebp + esi*4], edi
jl 0x10013094
cmp eax, 4
jne 0x100130c9
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
add eax, 4
inc edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], edx
xor eax, eax
cmp ecx, ebx
jl 0x1001307e
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x144]
cmp ecx, edx
jbe 0x10012f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret