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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x4c]
mov ecx, 8
push edi
mov ebx, dword [ebp + 4]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
sub ebx, 6
mov dword [esp + 0x1c], ebp
xor edi, edi
mov dword [esp + 0x20], ebx
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x4aae4d
cmp edi, dword [ebp + 4]
jg 0x4aae45
cmp esi, ebx
jge 0x4aae32
lea esp, [esp]
cmp eax, 4
jge 0x4aae35
movzx ecx, byte [esp + esi*4 + 0x28]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
inc eax
movzx ecx, byte [esp + esi*4 + 0x29]
mov byte [ebp + edx*4 + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x2a]
mov byte [ebp + edx*4 + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x2b]
inc esi
mov byte [ebp + edx*4 + 0x1b], cl
cmp esi, ebx
jl 0x4aae00
cmp eax, 4
jne 0x4aae38
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4aadf3
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
cmp edi, dword [ebp + 4]
jg 0x4ab03a
mov esi, 0x570300
jmp 0x4aae60
movzx ecx, byte [esp + ebx*4 + 0x25]
mov dl, byte [esp + 0x28]
xor dl, byte [ecx + str.cw]
mov byte [esp + 0x28], dl
movzx ecx, byte [esp + ebx*4 + 0x26]
mov cl, byte [ecx + str.cw]
xor cl, byte [esp + 0x29]
mov byte [esp + 0x13], cl
mov byte [esp + 0x29], cl
movzx ecx, byte [esp + ebx*4 + 0x27]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + ebx*4 + 0x24]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2b], cl
movzx ecx, byte [esi]
inc esi
xor dl, cl
mov dword [esp + 0x24], esi
mov byte [esp + 0x28], dl
cmp ebx, 8
je 0x4aaf10
cmp ebx, 1
jle 0x4aaf01
mov al, byte [esp + 0x13]
lea esi, [esp + 0x29]
lea ebp, [ebx - 1]
lea ecx, [ecx]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
mov bl, byte [esi]
xor byte [esi + 1], cl
xor bl, al
movzx ecx, byte [esi - 2]
mov al, bl
xor byte [esi + 2], cl
mov byte [esi], bl
sub ebp, 1
jne 0x4aaed0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x4ab02d
jmp 0x4aafd0
mov al, byte [esp + 0x13]
lea esi, [esp + 0x29]
mov ebp, 3
lea ecx, [ecx]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
mov bl, byte [esi]
xor byte [esi + 1], cl
xor bl, al
movzx ecx, byte [esi - 2]
mov al, bl
xor byte [esi + 2], cl
mov byte [esi], bl
sub ebp, 1
jne 0x4aaf20
movzx ecx, byte [esp + 0x34]
lea esi, [esp + 0x39]
mov bh, byte [esp + 0x39]
mov edi, 3
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x38], cl
movzx ecx, byte [esp + 0x35]
xor bh, byte [ecx + str.cw]
movzx ecx, byte [esp + 0x36]
mov byte [esp + 0x39], bh
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x3a], cl
movzx ecx, byte [esp + 0x37]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x3b], cl
lea esp, [esp]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 3]
mov bl, byte [esi]
xor byte [esi + 1], cl
xor bl, bh
movzx ecx, byte [esi - 2]
mov bh, bl
xor byte [esi + 2], cl
mov byte [esi], bl
sub edi, 1
jne 0x4aafa0
mov edi, dword [esp + 0x18]
xor esi, esi
mov ebx, dword [esp + 0x20]
nop
cmp edi, dword [ebp + 4]
jg 0x4ab025
cmp esi, ebx
jge 0x4ab012
lea esp, [esp]
cmp eax, 4
jge 0x4ab015
movzx ecx, byte [esp + esi*4 + 0x28]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
inc eax
movzx ecx, byte [esp + esi*4 + 0x29]
mov byte [ebp + edx*4 + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x2a]
mov byte [ebp + edx*4 + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x2b]
inc esi
mov byte [ebp + edx*4 + 0x1b], cl
cmp esi, ebx
jl 0x4aafe0
cmp eax, 4
jne 0x4ab018
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4aafd0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
cmp edi, dword [ebp + 4]
jle 0x4aae60
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x3c
ret 4