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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
mov edx, dword [ebx + 0x1c]
sub edx, 6
test edx, edx
jle 0x4103ac
mov esi, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
and dword [ebp + 8], 0
xor ecx, ecx
push 4
test edx, edx
pop esi
jle 0x410406
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jg 0x410406
cmp ecx, edx
jge 0x4103f3
lea eax, [ebp + ecx*4 - 0x3c]
cmp dword [ebp + 8], esi
jge 0x4103f6
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, edi
mov edi, dword [eax]
push 4
inc ecx
mov dword [ebx + esi*4], edi
pop esi
add eax, esi
inc dword [ebp + 8]
cmp ecx, edx
jl 0x4103d4
cmp dword [ebp + 8], esi
jne 0x410402
inc dword [ebp - 4]
add dword [ebp - 8], esi
and dword [ebp + 8], 0
cmp ecx, edx
jl 0x4103c4
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jg 0x410558
mov eax, edx
mov dword [ebp - 0xc], 0x41ab80
shl eax, 2
lea ecx, [ebp + eax - 0x3f]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + eax - 0x3e]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp + eax - 0x3d]
lea eax, [ebp + eax - 0x40]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
mov al, byte [ebp - 0x3c]
xor al, byte [ecx + str.cw]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x3c], al
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x3b], cl
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x3a], cl
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x39], cl
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0xc], esi
xor al, byte [ecx]
cmp edx, 8
mov byte [ebp - 0x3c], al
je 0x4104a0
cmp edx, 1
jle 0x4104f4
lea eax, [ebp - 0x38]
lea ecx, [edx - 1]
mov edi, dword [eax - 4]
xor dword [eax], edi
add eax, esi
dec ecx
jne 0x410494
jmp 0x4104f4
push 3
lea eax, [ebp - 0x38]
pop ecx
mov edi, dword [eax - 4]
xor dword [eax], edi
add eax, esi
dec ecx
jne 0x4104a6
movzx eax, byte [ebp - 0x30]
push 3
mov al, byte [eax + str.cw]
pop ecx
xor byte [ebp - 0x2c], al
movzx eax, byte [ebp - 0x2f]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x2b], al
movzx eax, byte [ebp - 0x2e]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x2a], al
movzx eax, byte [ebp - 0x2d]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x29], al
lea eax, [ebp - 0x28]
mov edi, dword [eax - 4]
xor dword [eax], edi
add eax, esi
dec ecx
jne 0x4104ea
and dword [ebp - 8], 0
test edx, edx
jle 0x41054c
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jg 0x41054c
cmp dword [ebp - 8], edx
jge 0x410539
mov eax, dword [ebp - 8]
lea eax, [ebp + eax*4 - 0x3c]
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x410539
inc dword [ebp - 8]
lea esi, [ecx + edi]
mov edi, dword [eax]
push 4
mov dword [ebx + esi*4], edi
pop esi
add eax, esi
inc dword [ebp + 8]
cmp dword [ebp - 8], edx
jl 0x41051a
cmp dword [ebp + 8], esi
jne 0x410547
inc dword [ebp - 4]
add ecx, esi
and dword [ebp + 8], 0
cmp dword [ebp - 8], edx
jl 0x410506
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jle 0x41043a
pop edi
pop esi
pop ebx
leave
ret 4