Function at 0x4ff510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x70
call fcn.00629030
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x18
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x48], 0
mov dword [0x70e32c], 0
call fcn.0063320d
add esp, 4
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4ff91f
xorps xmm0, xmm0
test esi, esi
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov eax, ebx
cmovne eax, esi
mov dword [ebp - 0x4c], eax
test ebx, ebx
jne 0x4ff5a8
push 0x143
push 0x6d6d38
push 0x9f
mov edx, 0xa2
lea ecx, [ebx + 6]
call fcn.004818c0
add esp, 0xc
jmp 0x4ff91f
push edi
mov edi, dword [ebx + 8]
mov dword [ebp - 0x60], edi
test edi, edi
js 0x4ff91e
mov ebx, dword [ebp + 0x14]
cmp ebx, 0xffffffff
jne 0x4ff60f
mov ebx, edi
mov dword [ebp + 0x14], ebx
mov esi, dword [ebp - 0x5c]
mov esi, dword [esi + 0x10]
push esi
call fcn.00474800
dec eax
and eax, 7
push esi
mov dword [ebp - 0x5c], eax
call fcn.00474800
mov ecx, dword [ebp - 0x5c]
add eax, 7
cdq
add esp, 8
and edx, 7
lea esi, [edx + eax]
mov edx, dword [ebp - 0x50]
mov eax, 0xff
sar esi, 3
shl eax, cl
test byte [edx], al
je 0x4ff61b
push 0x46
push 0x6e8868
push 0x85
jmp 0x4ff80f
cmp ebx, 0xfffffffd
jge 0x4ff5c4
push 0x3f
jmp 0x4ff805
mov eax, dword [ebp - 0x5c]
lea ecx, [edx + 1]
test eax, eax
lea eax, [edi + 2]
cmovne ecx, edx
lea edx, [esi - 1]
cmovne edx, esi
mov dword [ebp - 0x50], ecx
cmp edx, eax
jge 0x4ff644
push 0x4e
push 0x6e8868
push 0x6d
jmp 0x4ff80f
mov esi, edx
sub esi, edi
lea eax, [esi - 2]
cmp ebx, 0xfffffffd
jne 0x4ff66b
mov dword [ebp + 0x14], eax
cmp byte [ecx + edx - 1], 0xbc
je 0x4ff67d
push 0x58
push 0x6e8868
push 0x86
jmp 0x4ff80f
cmp ebx, eax
jle 0x4ff653
push 0x54
push 0x6e8868
push 0x6d
jmp 0x4ff80f
dec esi
push 0x5d
push 0x6e8868
push esi
mov dword [ebp - 0x54], esi
lea ebx, [ecx + esi]
call fcn.004729f0
add esp, 0xc
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4ff6a9
push 0x5f
push 0x6e8868
push 0x41
jmp 0x4ff80f
push dword [ebp - 0x4c]
mov edx, esi
mov ecx, eax
push edi
push ebx
call fcn.004df3a0
add esp, 0xc
test eax, eax
js 0x4ff91e
xor eax, eax
mov edx, esi
mov dword [ebp - 0x4c], eax
test edx, edx
jle 0x4ff7a1
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x50]
cmp edx, 0x40
jb 0x4ff77c
mov dword [ebp - 0x4c], eax
lea eax, [edx - 1]
add eax, esi
cmp ecx, eax
ja 0x4ff6f9
lea eax, [ecx - 1]
add eax, edx
cmp eax, esi
jae 0x4ff779
mov eax, edx
and eax, 0x8000003f
jns 0x4ff707
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp - 0x50], edx
mov edx, esi
sub dword [ebp - 0x50], eax
sub edx, ecx
mov dword [ebp - 0x68], edx
lea eax, [ecx + 0x10]
mov ecx, dword [ebp - 0x50]
lea edx, [esi + 0x30]
mov edi, dword [ebp - 0x68]
movups xmm0, xmmword [eax - 0x10]
add dword [ebp - 0x4c], 0x40
lea edx, [edx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [edx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp dword [ebp - 0x4c], ecx
jl 0x4ff720
mov edi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
cmp eax, edx
jge 0x4ff7a1
sub esi, dword [ebp - 0x48]
add ecx, eax
mov dword [ebp - 0x60], edx
sub edx, dword [ebp - 0x4c]
nop dword [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x4ff790
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4ff7c3
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x60]
and byte [eax], cl
jmp 0x4ff7c6
mov eax, dword [ebp - 0x48]
mov cl, byte [eax]
xor esi, esi
test cl, cl
jne 0x4ff7dc
lea ecx, [edx - 1]
cmp esi, ecx
jge 0x4ff7dc
inc esi
cmp byte [esi + eax], 0
je 0x4ff7d1
mov al, byte [esi + eax]
inc esi
cmp al, 1
je 0x4ff7f2
push 0x6a
push 0x6e8868
push 0x87
jmp 0x4ff80f
mov eax, dword [ebp + 0x14]
sub edx, esi
mov dword [ebp - 0x54], edx
cmp eax, 0xfffffffe
je 0x4ff824
cmp edx, eax
je 0x4ff824
push 0x6e
push 0x6e8868
push 0x88
mov edx, 0x7e
lea ecx, [edx - 0x7a]
call fcn.004818c0
add esp, 0xc
jmp 0x4ff91e
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x58]
call fcn.00478380
add esp, 0xc
test eax, eax
je 0x4ff91e
mov eax, dword [ebp - 0x58]
push 8
push 0x6b7a68
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
test eax, eax
je 0x4ff91e
test edi, edi
je 0x4ff873
mov eax, dword [ebp - 0x58]
push edi
push dword [ebp - 0x70]
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
test eax, eax
je 0x4ff91e
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4ff895
push eax
mov eax, dword [ebp - 0x48]
add eax, esi
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
test eax, eax
je 0x4ff91e
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x58]
call fcn.00478680
add esp, 0xc
test eax, eax
je 0x4ff91e
lea ecx, [ebp - 0x44]
sub edi, 4
jb 0x4ff8c3
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4ff8c8
add ecx, 4
add ebx, 4
sub edi, 4
jae 0x4ff8b2
cmp edi, 0xfffffffc
je 0x4ff917
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x4ff8f5
cmp edi, 0xfffffffd
je 0x4ff917
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x4ff8f5
cmp edi, 0xfffffffe
je 0x4ff917
mov al, byte [ecx + 2]
cmp al, byte [ebx + 2]
jne 0x4ff8f5
cmp edi, 0xffffffff
je 0x4ff917
mov al, byte [ecx + 3]
cmp al, byte [ebx + 3]
je 0x4ff917
mov edx, 0x7e
push 0x7c
push 0x6e8868
push 0x68
lea ecx, [edx - 0x7a]
call fcn.004818c0
add esp, 0xc
mov dword [ebp - 0x64], 0
jmp 0x4ff91e
mov dword [ebp - 0x64], 1
pop edi
push dword [ebp - 0x48]
call fcn.0062fb07
mov ebx, dword [ebp - 0x58]
mov ecx, ebx
call fcn.00478250
push ebx
call fcn.0062fb07
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x64]
xor ecx, ebp
pop esi
pop ebx
call fcn.00628f0a
mov esp, ebp
pop ebp
ret