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

Disassembly:
sub esp, 0x40
mov eax, dword [0x4c400c]
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 0x482eed
cmp edi, dword [ebx + 4]
jg 0x482ee5
cmp esi, ebp
jge 0x482ed2
lea esp, [esp]
cmp eax, 4
jge 0x482ed5
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 0x482ea0
cmp eax, 4
jne 0x482ed8
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebp
jl 0x482e93
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp edi, dword [ebx + 4]
jg 0x4830ca
mov esi, 0x4c5038
jmp 0x482f00
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 0x482fa9
cmp ebp, 1
jle 0x482f9c
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 0x482f73
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test ebp, ebp
jle 0x4830bd
jmp 0x483059
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 0x482fb6
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 0x483030
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor esi, esi
jmp 0x483060
cmp edi, dword [ebx + 4]
jg 0x4830b5
cmp esi, ebp
jge 0x4830a2
lea esp, [esp]
cmp eax, 4
jge 0x4830a5
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 0x483070
cmp eax, 4
jne 0x4830a8
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebp
jl 0x483060
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x28]
cmp edi, dword [ebx + 4]
jle 0x482f00
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043cc06
add esp, 0x40
ret 4