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

Disassembly:
sub esp, 0x40
mov eax, dword [0x4d500c]
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 0x47121d
cmp edi, dword [ebx + 4]
jg 0x471215
cmp esi, ebp
jge 0x471202
lea esp, [esp]
cmp eax, 4
jge 0x471205
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 0x4711d0
cmp eax, 4
jne 0x471208
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebp
jl 0x4711c3
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp edi, dword [ebx + 4]
jg 0x4713fa
mov esi, 0x4d57b0
jmp 0x471230
movzx ecx, byte [esp + ebp*4 + 0x29]
mov dl, byte [esp + 0x2c]
xor dl, byte [ecx + 0x4d56b0]
mov byte [esp + 0x2c], dl
movzx ecx, byte [esp + ebp*4 + 0x2a]
mov cl, byte [ecx + 0x4d56b0]
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 + 0x4d56b0]
xor byte [esp + 0x2e], cl
movzx ecx, byte [esp + ebp*4 + 0x28]
movzx ecx, byte [ecx + 0x4d56b0]
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 0x4712d9
cmp ebp, 1
jle 0x4712cc
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 0x4712a3
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test ebp, ebp
jle 0x4713ed
jmp 0x471389
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 0x4712e6
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 + 0x4d56b0]
xor byte [esp + 0x3c], cl
movzx ecx, byte [esp + 0x39]
xor al, byte [ecx + 0x4d56b0]
movzx ecx, byte [esp + 0x3a]
mov byte [esp + 0x3d], al
movzx ecx, byte [ecx + 0x4d56b0]
xor byte [esp + 0x3e], cl
movzx ecx, byte [esp + 0x3b]
movzx ecx, byte [ecx + 0x4d56b0]
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 0x471360
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor esi, esi
jmp 0x471390
cmp edi, dword [ebx + 4]
jg 0x4713e5
cmp esi, ebp
jge 0x4713d2
lea esp, [esp]
cmp eax, 4
jge 0x4713d5
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 0x4713a0
cmp eax, 4
jne 0x4713d8
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebp
jl 0x471390
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x28]
cmp edi, dword [ebx + 4]
jle 0x471230
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ae26
add esp, 0x40
ret 4