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

Disassembly:
sub esp, 0x38
mov eax, dword [0x10125474]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [0x1012d8f8]
push esi
push edi
mov dword [esp + 0x18], eax
lea ebx, [ebp - 6]
mov dword [esp + 0x20], ebx
test ebx, ebx
jle 0x100964da
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 0x100964de
cmp edi, ebx
jge 0x100964bf
mov ebp, dword [esp + 0x18]
cmp edx, 4
jge 0x100964b9
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 0x100964a3
mov ebp, dword [0x1012d8f8]
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 0x10096494
jmp 0x100964de
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10096648
lea eax, [esp + 0x24]
mov dword [esp + 0x10], 0x10104ed8
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 0x1009657f
cmp ebx, ecx
jle 0x10096568
mov eax, dword [esp + ecx*4 + 0x20]
xor dword [esp + ecx*4 + 0x24], eax
inc ecx
cmp ecx, ebx
jl 0x1009655b
lea eax, [esp + 0x24]
xor edi, edi
sub eax, 4
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x10096639
jmp 0x100965f5
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 0x10096583
movzx eax, byte [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov ebp, dword [0x1012d8f8]
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 0x100965e6
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10096639
cmp edi, ebx
jge 0x10096620
mov ebp, dword [esp + 0x18]
cmp edx, 4
jge 0x1009661a
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 0x10096604
mov ebp, dword [0x1012d8f8]
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 0x100965f5
mov edi, dword [esp + 0x14]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x100964fe
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009b3f5
add esp, 0x38
ret