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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x58bb30]
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 0x4b7a8d
cmp edi, dword [ebp + 4]
jg 0x4b7a85
cmp esi, ebx
jge 0x4b7a72
lea esp, [esp]
cmp eax, 4
jge 0x4b7a75
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 0x4b7a40
cmp eax, 4
jne 0x4b7a78
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4b7a33
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
cmp edi, dword [ebp + 4]
jg 0x4b7c7a
mov esi, 0x5895a8
jmp 0x4b7aa0
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 0x4b7b50
cmp ebx, 1
jle 0x4b7b41
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 0x4b7b10
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x4b7c6d
jmp 0x4b7c10
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 0x4b7b60
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 0x4b7be0
mov edi, dword [esp + 0x18]
xor esi, esi
mov ebx, dword [esp + 0x20]
nop
cmp edi, dword [ebp + 4]
jg 0x4b7c65
cmp esi, ebx
jge 0x4b7c52
lea esp, [esp]
cmp eax, 4
jge 0x4b7c55
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 0x4b7c20
cmp eax, 4
jne 0x4b7c58
inc edi
lea ecx, [eax - 4]
neg ecx
sbb ecx, ecx
and eax, ecx
cmp esi, ebx
jl 0x4b7c10
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
cmp edi, dword [ebp + 4]
jle 0x4b7aa0
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x3c
ret 4