Function at 0x4d47b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
sub esp, 0x54
push esi
push edi
mov edi, dword [ebp + 0xc]
dec edi
test eax, eax
jne 0x4d47cb
call fcn.00483c40
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
push eax
cmove ecx, eax
mov dword [ebp + 0x24], ecx
call fcn.00454d00
mov esi, eax
mov ecx, edi
add esp, 4
mov dword [ebp - 8], esi
lea eax, [esi + esi]
sub ecx, eax
mov dword [ebp - 0xc], ecx
dec ecx
cmp dword [ebp + 0x14], ecx
jle 0x4d4814
push 0x3a
push 0x556318
push 0x6e
push 0xa0
push 4
call fcn.0045bdb0
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
inc eax
cmp edi, eax
jge 0x4d4824
push 0x40
push 0x556318
push 0x78
jmp 0x4d47fd
mov eax, dword [ebp + 8]
push ebx
push 0
push dword [ebp + 0x20]
lea ebx, [eax + 1]
mov byte [eax], 0
push 0
add ebx, esi
lea ecx, [eax + 1]
push ebx
push dword [ebp + 0x1c]
mov dword [ebp - 4], ecx
push dword [ebp + 0x18]
mov dword [ebp + 0xc], ebx
call fcn.0045dc20
add esp, 0x18
test eax, eax
je 0x4d48c4
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0x14]
dec eax
push eax
lea eax, [ebx + esi]
push 0
push eax
call fcn.004f7a50
mov ecx, dword [ebp + 0x14]
mov eax, ebx
sub eax, esi
sub eax, ecx
push ecx
push dword [ebp + 0x10]
add eax, edi
push eax
mov byte [eax - 1], 1
call fcn.004f8270
mov ebx, dword [ebp - 4]
push esi
push ebx
call fcn.0045eb90
add esp, 0x20
test eax, eax
jle 0x4d48c4
push 0x55
sub edi, esi
push 0x556318
push edi
mov dword [ebp - 0x14], edi
call fcn.0045e910
add esp, 0xc
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x4d48cd
push 0x57
push 0x556318
push 0x41
push 0xa0
push 4
call fcn.0045bdb0
add esp, 0x14
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x24]
push esi
push ebx
push edi
push eax
call fcn.004d4660
add esp, 0x14
test eax, eax
js 0x4d48c4
xor ebx, ebx
test edi, edi
jle 0x4d4995
mov edx, dword [ebp + 0xc]
cmp edi, 0x20
jb 0x4d4976
mov ecx, dword [ebp + 0x14]
lea eax, [ecx - 1]
add eax, edi
cmp edx, eax
ja 0x4d490b
lea eax, [edx - 1]
add eax, edi
cmp eax, ecx
jae 0x4d4976
mov eax, edi
and eax, 0x8000001f
jns 0x4d4919
dec eax
or eax, 0xffffffe0
inc eax
mov esi, ecx
mov dword [ebp + 0x20], edi
sub dword [ebp + 0x20], eax
sub esi, edx
add ecx, 0x10
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov eax, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x20]
mov edi, dword [ebp - 0x10]
lea ebx, [ebx]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [edi + ebx]
add ebx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ebx, ecx
jl 0x4d4940
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
cmp ebx, edi
jge 0x4d4995
mov esi, dword [ebp + 0x14]
lea ecx, [ebx + edx]
sub esi, edx
mov edx, edi
sub edx, ebx
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x4d4986
mov esi, dword [ebp - 8]
push dword [ebp + 0x24]
lea eax, [ebp - 0x54]
push edi
push dword [ebp + 0xc]
push esi
push eax
call fcn.004d4660
add esp, 0x14
test eax, eax
js 0x4d48c4
xor edx, edx
test esi, esi
jle 0x4d4a4e
mov ebx, dword [ebp - 4]
cmp esi, 0x20
jb 0x4d4a34
lea ecx, [ebx - 1]
lea eax, [ebp + esi - 0x55]
add ecx, esi
cmp ebx, eax
ja 0x4d49d7
lea eax, [ebp - 0x54]
cmp ecx, eax
jae 0x4d4a34
mov eax, esi
and eax, 0x8000001f
jns 0x4d49e5
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, esi
lea edi, [ebp - 0x54]
sub ecx, eax
lea esi, [ebp - 0x44]
sub edi, ebx
mov eax, ebx
sub esi, ebx
mov dword [ebp + 0x24], esi
mov esi, dword [ebp - 8]
mov ebx, dword [ebp + 0x24]
mov edi, edi
movdqu xmm0, xmmword [eax]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x4d4a00
mov ebx, dword [ebp - 4]
cmp edx, esi
jge 0x4d4a4e
lea edi, [ebp - 0x54]
sub edi, ebx
lea ecx, [edx + ebx]
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x4d4a42
push dword [ebp + 0x14]
call fcn.0045e890
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret