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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x58cb30]
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 0x4b84bd
cmp edi, dword [ebp + 4]
jg 0x4b84b5
cmp esi, ebx
jge 0x4b84a2
lea esp, [esp]
cmp eax, 4
jge 0x4b84a5
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 0x4b8470
cmp eax, 4
jne 0x4b84a8
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4b8463
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
cmp edi, dword [ebp + 4]
jg 0x4b86aa
mov esi, 0x58a5a8
jmp 0x4b84d0
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 0x4b8580
cmp ebx, 1
jle 0x4b8571
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 0x4b8540
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x4b869d
jmp 0x4b8640
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 0x4b8590
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 0x4b8610
mov edi, dword [esp + 0x18]
xor esi, esi
mov ebx, dword [esp + 0x20]
nop
cmp edi, dword [ebp + 4]
jg 0x4b8695
cmp esi, ebx
jge 0x4b8682
lea esp, [esp]
cmp eax, 4
jge 0x4b8685
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 0x4b8650
cmp eax, 4
jne 0x4b8688
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4b8640
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
cmp edi, dword [ebp + 4]
jle 0x4b84d0
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x3c
ret 4