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

Disassembly:
sub esp, 0x40
mov eax, dword [0x4cc00c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebx, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x50]
mov ecx, 8
push edi
mov ebp, dword [ebx + 4]
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
sub ebp, 6
mov dword [esp + 0x1c], ebx
xor edi, edi
mov dword [esp + 0x20], ebp
xor esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
test ebp, ebp
jle 0x4880ad
cmp edi, dword [ebx + 4]
jg 0x4880a5
cmp esi, ebp
jge 0x488092
lea esp, [esp]
cmp eax, 4
jge 0x488095
movzx ecx, byte [esp + esi*4 + 0x2c]
lea edx, [eax + edi*4]
mov byte [ebx + edx*4 + 0x18], cl
inc eax
movzx ecx, byte [esp + esi*4 + 0x2d]
mov byte [ebx + edx*4 + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x2e]
mov byte [ebx + edx*4 + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x2f]
inc esi
mov byte [ebx + edx*4 + 0x1b], cl
cmp esi, ebp
jl 0x488060
cmp eax, 4
jne 0x488098
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebp
jl 0x488053
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp edi, dword [ebx + 4]
jg 0x48828a
mov esi, 0x4cd038
jmp 0x4880c0
movzx ecx, byte [esp + ebp*4 + 0x29]
mov dl, byte [esp + 0x2c]
xor dl, byte [ecx + str.cw]
mov byte [esp + 0x2c], dl
movzx ecx, byte [esp + ebp*4 + 0x2a]
mov cl, byte [ecx + str.cw]
xor cl, byte [esp + 0x2d]
mov byte [esp + 0x13], cl
mov byte [esp + 0x2d], cl
movzx ecx, byte [esp + ebp*4 + 0x2b]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2e], cl
movzx ecx, byte [esp + ebp*4 + 0x28]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2f], cl
movzx ecx, byte [esi]
inc esi
xor cl, dl
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], cl
cmp ebp, 8
je 0x488169
cmp ebp, 1
jle 0x48815c
mov bl, byte [esp + 0x13]
lea ecx, [ebp - 1]
lea esi, [esp + 0x2d]
mov dword [esp + 0x24], ecx
mov ebp, ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi], bl
xor byte [esi + 2], cl
mov bl, byte [esi]
sub ebp, 1
jne 0x488133
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test ebp, ebp
jle 0x48827d
jmp 0x488219
mov bl, byte [esp + 0x13]
lea esi, [esp + 0x2d]
mov ebp, 3
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi], bl
xor byte [esi + 2], cl
mov bl, byte [esi]
sub ebp, 1
jne 0x488176
movzx ecx, byte [esp + 0x38]
lea edi, [ebp + 3]
mov al, byte [esp + 0x3d]
lea esi, [esp + 0x3d]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x3c], cl
movzx ecx, byte [esp + 0x39]
xor al, byte [ecx + str.cw]
movzx ecx, byte [esp + 0x3a]
mov byte [esp + 0x3d], al
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x3e], cl
movzx ecx, byte [esp + 0x3b]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x3f], cl
lea esp, [esp]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi], al
xor byte [esi + 2], cl
mov al, byte [esi]
sub edi, 1
jne 0x4881f0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor esi, esi
jmp 0x488220
cmp edi, dword [ebx + 4]
jg 0x488275
cmp esi, ebp
jge 0x488262
lea esp, [esp]
cmp eax, 4
jge 0x488265
movzx ecx, byte [esp + esi*4 + 0x2c]
lea edx, [eax + edi*4]
mov byte [ebx + edx*4 + 0x18], cl
inc eax
movzx ecx, byte [esp + esi*4 + 0x2d]
mov byte [ebx + edx*4 + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x2e]
mov byte [ebx + edx*4 + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x2f]
inc esi
mov byte [ebx + edx*4 + 0x1b], cl
cmp esi, ebp
jl 0x488230
cmp eax, 4
jne 0x488268
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebp
jl 0x488220
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x28]
cmp edi, dword [ebx + 4]
jle 0x4880c0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x40
ret 4