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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x4c]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
sub eax, 0x80
je 0x4c2bcc
sub eax, 0x40
je 0x4c2bd5
sub eax, 0x40
je 0x4c2bde
jmp 0x4c2be7
mov dword [ebp - 0x10], 4
jmp 0x4c2bf3
mov dword [ebp - 0x10], 6
jmp 0x4c2bf3
mov dword [ebp - 0x10], 8
jmp 0x4c2bf3
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4c2f0a
mov eax, dword [ebp - 8]
sub eax, 0x80
je 0x4c2c09
sub eax, 0x40
je 0x4c2c12
sub eax, 0x40
je 0x4c2c1b
jmp 0x4c2c24
mov dword [ebp - 0x14], 4
jmp 0x4c2c30
mov dword [ebp - 0x14], 6
jmp 0x4c2c30
mov dword [ebp - 0x14], 8
jmp 0x4c2c30
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x4c2f0a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
setge al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004c2760
sub eax, 0x80
je 0x4c2c57
sub eax, 0x40
je 0x4c2c60
sub eax, 0x40
je 0x4c2c69
jmp 0x4c2c72
mov dword [ebp - 0x18], 0xa
jmp 0x4c2c7e
mov dword [ebp - 0x18], 0xc
jmp 0x4c2c7e
mov dword [ebp - 0x18], 0xe
jmp 0x4c2c7e
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x4c2f0a
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4c2cc1
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x4c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
mov byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2c96
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x4c2c91
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4c2d10
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
shl eax, 2
mov edx, dword [ebp + 8]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx*8]
push eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
pop eax
mov ecx, dword [ebp - 0x1c]
lea ecx, [ebp + ecx*8 - 0x6c]
mov ebx, dword [ebp - 0x20]
mov cl, byte [ecx + ebx]
mov byte [eax + edx], cl
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2cd2
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x4c2ef5
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x4c2ccd
jmp 0x4c2ef5
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
inc eax
and eax, 0x80000003
jns 0x4c2d42
dec eax
or eax, 0xfffffffc
inc eax
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx - 1]
mov al, byte [eax + str.cw]
mov edx, dword [ebp - 0x1c]
xor byte [ebp + edx*8 - 0x6c], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2d32
mov eax, dword [ebp - 0x28]
mov al, byte [eax*4 + 0x4eee64]
xor byte [ebp - 0x6c], al
inc dword [ebp - 0x28]
cmp dword [ebp - 0x10], 8
je 0x4c2dc6
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jle 0x4c2e97
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx - 1]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
xor byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2d95
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x4c2d90
jmp 0x4c2e97
mov dword [ebp - 0x20], 1
jmp 0x4c2dfb
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx - 1]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
xor byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2dd4
inc dword [ebp - 0x20]
fild dword [ebp - 0x20]
fild dword [ebp - 0x10]
fdiv dword [0x4c2f18]
fcompp
wait
fnstsw ax
sahf
ja 0x4c2dcf
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x4c2e1e
adc eax, 0
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
movzx eax, byte [edx + eax - 1]
mov al, byte [eax + str.cw]
mov edx, dword [ebp - 0x10]
sar edx, 1
jns 0x4c2e3a
adc edx, 0
mov ecx, dword [ebp - 0x1c]
lea ecx, [ebp + ecx*8 - 0x6c]
xor byte [ecx + edx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2e14
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x4c2e57
adc eax, 0
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x4c2e97
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx - 1]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
xor byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2e68
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jl 0x4c2e63
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4c2ee1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
shl eax, 2
mov edx, dword [ebp + 8]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx*8]
push eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
pop eax
mov ecx, dword [ebp - 0x1c]
lea ecx, [ebp + ecx*8 - 0x6c]
mov ebx, dword [ebp - 0x20]
mov cl, byte [ecx + ebx]
mov byte [eax + edx], cl
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x4c2ea3
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x4c2ef5
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x4c2e9e
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x4c2d2d
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4