Function at 0x4d4aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov ecx, dword [ebp + 0x24]
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], esi
push edi
test ecx, ecx
jne 0x4d4ac8
call fcn.00483c40
mov ecx, eax
mov dword [ebp + 0x24], ecx
mov eax, dword [ebp + 0x28]
test eax, eax
push ecx
cmove eax, ecx
mov dword [ebp + 0x28], eax
call fcn.00454d00
add esp, 4
mov edi, eax
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], esi
jle 0x4d4e88
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x4d4e88
mov ecx, dword [ebp + 0x18]
push ebx
cmp ecx, eax
jl 0x4d4e13
lea eax, [edi*2 + 2]
cmp ecx, eax
jl 0x4d4e13
mov ebx, ecx
push 0x97
sub ebx, edi
dec ebx
push 0x556318
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.0045e910
mov ecx, dword [ebp + 0x18]
mov esi, eax
push 0x98
push 0x556318
push ecx
mov dword [ebp - 8], esi
call fcn.0045e910
add esp, 0x18
mov dword [ebp - 4], eax
test esi, esi
je 0x4d4e44
test eax, eax
je 0x4d4e44
push dword [ebp + 0x18]
push 0
push eax
call fcn.004f7a50
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push ecx
push dword [ebp + 0x10]
sub eax, ecx
add eax, dword [ebp + 0x18]
push eax
call fcn.004f8270
mov edx, dword [ebp - 4]
push dword [ebp + 0x28]
push ebx
movzx eax, byte [edx]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx + 1]
add eax, edi
neg ecx
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x68]
push edi
push eax
mov dword [ebp - 0xc], ecx
call fcn.004d4660
add esp, 0x2c
test eax, eax
jne 0x4d4e5f
xor edx, edx
test edi, edi
jle 0x4d4c65
cmp edi, 0x20
jb 0x4d4c46
mov ecx, dword [ebp - 4]
lea ebx, [ebp - 0x68]
inc ecx
lea eax, [ecx - 1]
add eax, edi
cmp ebx, eax
mov ebx, dword [ebp - 0x1c]
ja 0x4d4bde
lea eax, [ebp + edi - 0x69]
cmp eax, ecx
jae 0x4d4c46
mov eax, edi
and eax, 0x8000001f
jns 0x4d4bec
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp - 0x20], edi
mov ebx, ecx
sub dword [ebp - 0x20], eax
lea eax, [ebp - 0x68]
mov esi, eax
sub ebx, esi
add ecx, 0x10
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [esi + edx]
add edx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x4d4c10
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
cmp edx, edi
jge 0x4d4c65
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x68]
inc esi
sub esi, ecx
lea ecx, [ebp - 0x68]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x4d4c53
mov esi, dword [ebp - 8]
push dword [ebp + 0x28]
lea eax, [ebp - 0x68]
push edi
push eax
push ebx
push esi
call fcn.004d4660
add esp, 0x14
test eax, eax
jne 0x4d4e5f
xor ecx, ecx
mov dword [ebp + 0x28], ecx
test ebx, ebx
jle 0x4d4d3f
cmp ebx, 0x20
jb 0x4d4d19
mov edx, dword [ebp - 0x28]
mov dword [ebp + 0x28], ecx
lea eax, [edx - 1]
add eax, ebx
cmp esi, eax
ja 0x4d4cad
lea eax, [esi - 1]
add eax, ebx
cmp eax, edx
jae 0x4d4d19
mov eax, ebx
and eax, 0x8000001f
jns 0x4d4cbb
dec eax
or eax, 0xffffffe0
inc eax
mov edi, edx
mov dword [ebp + 0x28], ebx
sub dword [ebp + 0x28], eax
sub edi, esi
add edx, 0x10
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x10]
mov eax, esi
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp - 0x24]
lea esp, [esp]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [esi + ecx]
add ecx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x4d4ce0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
mov dword [ebp + 0x28], ecx
cmp ecx, ebx
jge 0x4d4d3f
mov edi, dword [ebp - 0x28]
mov edx, ebx
add ecx, esi
sub edi, esi
sub edx, dword [ebp + 0x28]
lea esp, [esp]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x4d4d30
mov edi, dword [ebp - 0x10]
push 0
push dword [ebp + 0x24]
lea eax, [ebp - 0xa8]
push 0
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0045dc20
add esp, 0x18
test eax, eax
je 0x4d4e5f
push edi
lea eax, [ebp - 0xa8]
push eax
push esi
call fcn.0045c330
mov edx, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
xor ecx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x28], ecx
cmp edi, ebx
jge 0x4d4de7
movzx esi, byte [edi + esi]
not ecx
mov eax, esi
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
mov eax, ecx
and ecx, edi
not eax
inc edi
and eax, dword [ebp - 0x14]
or eax, ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x14], eax
or ecx, edx
mov edx, dword [ebp - 0xc]
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [ebp + 0x28], ecx
mov esi, dword [ebp - 8]
neg eax
or eax, ecx
and edx, eax
mov dword [ebp - 0xc], edx
cmp edi, ebx
jl 0x4d4d94
test edx, ecx
je 0x4d4e13
mov eax, dword [ebp - 0x14]
mov edi, ebx
inc eax
sub edi, eax
cmp dword [ebp + 0xc], edi
jge 0x4d4e33
push 0xdd
push 0x556318
push 0x6d
push 0xa1
push 4
call fcn.0045bdb0
add esp, 0x14
push 0xea
push 0x556318
push 0x79
push 0xa1
push 4
or edi, 0xffffffff
call fcn.0045bdb0
add esp, 0x14
jmp 0x4d4e62
push edi
add eax, esi
push eax
push dword [ebp + 8]
call fcn.004f8270
add esp, 0xc
jmp 0x4d4e62
push 0x9a
push 0x556318
push 0x41
push 0xa1
push 4
call fcn.0045bdb0
add esp, 0x14
or edi, 0xffffffff
pop ebx
test esi, esi
je 0x4d4e70
push esi
call fcn.0045e890
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d4e80
push eax
call fcn.0045e890
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret