Function at 0x4d6440
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x74
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x9c]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 1
call fcn.0048d530
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4d67ab
call fcn.0048c9d0
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x4d67ab
test esi, esi
jne 0x4d64b5
xor ecx, ecx
jmp 0x4d64cf
mov ecx, dword [esp + 0x8c]
cmp ecx, 0xffffffff
jne 0x4d64cf
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d64c6
sub ecx, edx
push 0
push edi
push ecx
push esi
push ebp
call fcn.0048cbb0
add esp, 0x14
test eax, eax
je 0x4d67a2
call fcn.0048c9d0
mov ebp, eax
mov dword [esp + 0x38], ebp
test ebp, ebp
je 0x4d679e
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x4d674d
mov ecx, 1
nop dword [eax]
cmp edx, dword [esp + 0x1c]
mov edi, edx
push dword [esp + 0x10]
cmovg edi, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, ecx
shr eax, 8
push ebp
mov dword [esp + 0x44], edi
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], cl
call fcn.0048c8b0
add esp, 8
test eax, eax
je 0x4d6777
push dword [esp + 0x94]
push dword [esp + 0x2c]
push ebp
call fcn.0048cdc0
add esp, 0xc
test eax, eax
je 0x4d6777
push 4
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.0048cdc0
add esp, 0xc
test eax, eax
je 0x4d6777
push 0
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.0048cb00
add esp, 0xc
test eax, eax
je 0x4d6777
push ebp
call fcn.0048ca10
push edi
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.005b0670
mov esi, 1
add esp, 0x10
mov dword [esp + 0x18], esi
cmp dword [esp + 0x98], esi
jle 0x4d6726
nop word [eax + eax]
push dword [esp + 0x10]
push ebp
call fcn.0048c8b0
add esp, 8
test eax, eax
je 0x4d6777
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.0048cdc0
add esp, 0xc
test eax, eax
je 0x4d6777
push 0
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.0048cb00
add esp, 0xc
test eax, eax
je 0x4d6777
push ebp
call fcn.0048ca10
add esp, 4
xor ecx, ecx
test edi, edi
jle 0x4d6714
cmp edi, 0x40
jb 0x4d66f1
lea edx, [ebx - 1]
lea eax, [esp + edi + 0x3f]
add edx, edi
cmp ebx, eax
ja 0x4d664c
lea eax, [esp + 0x40]
cmp edx, eax
jae 0x4d66f1
mov eax, edi
and eax, 0x8000003f
jns 0x4d665a
dec eax
or eax, 0xffffffc0
inc eax
lea ebp, [esp + 0x50]
mov edx, edi
sub ebp, ebx
lea esi, [esp + 0x40]
mov dword [esp + 0x2c], ebp
sub edx, eax
mov edi, dword [esp + 0x2c]
lea ebp, [esp + 0x60]
sub ebp, ebx
sub esi, ebx
mov dword [esp + 0x30], ebp
mov eax, ebx
lea ebp, [esp + 0x70]
sub ebp, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
nop dword [eax]
movups xmm0, xmmword [eax]
mov ebp, dword [esp + 0x34]
add ecx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [eax + ebp - 0x40]
mov ebp, dword [esp + 0x38]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x4d6690
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp ecx, edi
jge 0x4d6714
lea esi, [esp + 0x40]
mov edx, edi
sub esi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4d6702
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x98]
jl 0x4d65d0
mov edx, dword [esp + 0xa0]
add ebx, edi
mov ecx, dword [esp + 0x20]
sub edx, edi
inc ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x4d6510
push ebp
call fcn.0048c960
push dword [esp + 0x14]
call fcn.0048c960
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0052e057
add esp, 0x74
ret
push ebp
call fcn.0048c960
push dword [esp + 0x14]
call fcn.0048c960
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0052e057
add esp, 0x74
ret
mov ebp, dword [esp + 0x10]
push ebp
call fcn.0048c960
add esp, 4
mov ecx, dword [esp + 0x80]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052e057
add esp, 0x74
ret