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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
xor eax, eax
xor ecx, ecx
inc eax
mov esi, 0x11b
push edi
mov edx, eax
and dl, 0x80
movsx edx, dl
mov byte [ebp + ecx - 0x304], al
mov byte [ebp + ecx - 0x205], al
mov byte [ebp + eax - 0x104], cl
inc ecx
neg edx
sbb edx, edx
and edx, esi
lea edi, [eax + eax]
xor edx, edi
xor eax, edx
cmp eax, 1
jne 0x40c664
xor ecx, ecx
pop edi
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x433798], al
and edx, esi
add eax, eax
xor eax, edx
inc ecx
cmp ecx, 0x1e
jb 0x40c697
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x40c6bf
mov ebx, dword [ebp - 4]
test bl, bl
je 0x40c6db
movzx eax, bl
movzx eax, byte [ebp + eax - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x40c6dd
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ecx, eax
sar ecx, 8
xor cl, al
xor cl, 0x63
lea eax, [ebx*4]
lea edx, [eax + 0x432798]
mov byte [ebx + 0x4338b8], cl
mov byte [edx + 1], cl
mov byte [edx], cl
mov byte [eax + 0x432b9b], cl
mov byte [eax + 0x432b98], cl
mov byte [eax + 0x432f9b], cl
mov byte [eax + 0x432f9a], cl
mov byte [eax + 0x43339a], cl
mov byte [eax + 0x433399], cl
je 0x40c74b
movzx edx, cl
movzx edx, byte [ebp + edx - 0x104]
movzx edx, byte [ebp + edx - 0x2eb]
jmp 0x40c74d
xor edx, edx
mov byte [eax + 0x43279b], dl
mov byte [eax + 0x432b9a], dl
mov byte [eax + 0x432f99], dl
mov byte [eax + 0x433398], dl
test cl, cl
je 0x40c77e
movzx ecx, cl
movzx ecx, byte [ebp + ecx - 0x104]
movzx ecx, byte [ebp + ecx - 0x303]
jmp 0x40c780
xor ecx, ecx
mov byte [eax + 0x43279a], cl
mov byte [eax + 0x432b99], cl
mov byte [eax + 0x432f98], cl
mov byte [eax + 0x43339b], cl
movzx esi, bl
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
xor dl, cl
xor dl, 5
je 0x40c7e7
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
movzx edx, dl
movzx ecx, cl
xor edx, ecx
xor edx, 5
movzx ecx, byte [ebp + edx - 0x104]
lea edx, [ebp - 0x205]
sub edx, ecx
mov bl, byte [edx]
jmp 0x40c7e9
xor bl, bl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4337b8], bl
test bl, bl
je 0x40c80b
movzx ecx, bl
movzx ecx, byte [ebp + ecx - 0x104]
movzx edx, byte [ebp + ecx - 0x29c]
jmp 0x40c80d
xor edx, edx
movzx esi, bl
mov ecx, esi
shl ecx, 2
mov byte [eax + str.PQAeS], dl
mov byte [eax + 0x431b99], dl
mov byte [eax + 0x431f98], dl
mov byte [eax + str.PAeS], dl
mov byte [ecx + 0x43079a], dl
mov byte [ecx + 0x430b99], dl
mov byte [ecx + 0x430f98], dl
mov byte [ecx + 0x43139b], dl
test bl, bl
je 0x40c85b
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x23d]
jmp 0x40c85d
xor edx, edx
mov byte [eax + 0x431798], dl
mov byte [eax + 0x431b9b], dl
mov byte [eax + 0x431f9a], dl
mov byte [eax + 0x432399], dl
mov byte [ecx + 0x430798], dl
mov byte [ecx + 0x430b9b], dl
mov byte [ecx + 0x430f9a], dl
mov byte [ecx + 0x431399], dl
test bl, bl
je 0x40c8a3
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x216]
jmp 0x40c8a5
xor edx, edx
mov byte [eax + 0x431799], dl
mov byte [eax + 0x431b98], dl
mov byte [eax + 0x431f9b], dl
mov byte [eax + 0x43239a], dl
mov byte [ecx + 0x430799], dl
mov byte [ecx + 0x430b98], dl
mov byte [ecx + 0x430f9b], dl
mov byte [ecx + 0x43139a], dl
test bl, bl
je 0x40c8eb
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x225]
jmp 0x40c8ed
xor edx, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov byte [eax + 0x43179b], dl
mov byte [eax + 0x431b9a], dl
mov byte [eax + 0x431f99], dl
mov byte [eax + 0x432398], dl
mov byte [ecx + 0x43079b], dl
mov byte [ecx + 0x430b9a], dl
mov byte [ecx + 0x430f99], dl
mov byte [ecx + 0x431398], dl
jl 0x40c6bc
pop esi
pop ebx
leave
ret