Function at 0x4d6b6c
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 0x4d6ba4
sub eax, 0x40
je 0x4d6bad
sub eax, 0x40
je 0x4d6bb6
jmp 0x4d6bbf
mov dword [ebp - 0x10], 4
jmp 0x4d6bcb
mov dword [ebp - 0x10], 6
jmp 0x4d6bcb
mov dword [ebp - 0x10], 8
jmp 0x4d6bcb
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4d6ee2
mov eax, dword [ebp - 8]
sub eax, 0x80
je 0x4d6be1
sub eax, 0x40
je 0x4d6bea
sub eax, 0x40
je 0x4d6bf3
jmp 0x4d6bfc
mov dword [ebp - 0x14], 4
jmp 0x4d6c08
mov dword [ebp - 0x14], 6
jmp 0x4d6c08
mov dword [ebp - 0x14], 8
jmp 0x4d6c08
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x4d6ee2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
setge al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004d6738
sub eax, 0x80
je 0x4d6c2f
sub eax, 0x40
je 0x4d6c38
sub eax, 0x40
je 0x4d6c41
jmp 0x4d6c4a
mov dword [ebp - 0x18], 0xa
jmp 0x4d6c56
mov dword [ebp - 0x18], 0xc
jmp 0x4d6c56
mov dword [ebp - 0x18], 0xe
jmp 0x4d6c56
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x4d6ee2
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4d6c99
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 0x4d6c6e
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x4d6c69
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4d6ce8
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 0x4d6caa
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x4d6ecd
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x4d6ca5
jmp 0x4d6ecd
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
inc eax
and eax, 0x80000003
jns 0x4d6d1a
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 0x4d6d0a
mov eax, dword [ebp - 0x28]
mov al, byte [eax*4 + 0x4f1060]
xor byte [ebp - 0x6c], al
inc dword [ebp - 0x28]
cmp dword [ebp - 0x10], 8
je 0x4d6d9e
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jle 0x4d6e6f
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 0x4d6d6d
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x4d6d68
jmp 0x4d6e6f
mov dword [ebp - 0x20], 1
jmp 0x4d6dd3
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 0x4d6dac
inc dword [ebp - 0x20]
fild dword [ebp - 0x20]
fild dword [ebp - 0x10]
fdiv dword [0x4d6ef0]
fcompp
wait
fnstsw ax
sahf
ja 0x4d6da7
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x4d6df6
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 0x4d6e12
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 0x4d6dec
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x4d6e2f
adc eax, 0
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x4d6e6f
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 0x4d6e40
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jl 0x4d6e3b
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4d6eb9
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 0x4d6e7b
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x4d6ecd
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x4d6e76
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x4d6d05
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