Function at 0x10015ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060df8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10075604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x10015f01
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], vtable.ByteBuffer.0
movq qword [ebp - 0x38], xmm0
mov byte [ebp - 0x44], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x20
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.10006cf0
mov dword [ebp - 0x48], vtable.Packet.0
mov edx, dword [esi + 4]
mov dword [ebp - 4], 1
test edx, edx
jle 0x10015e18
mov eax, dword [esi + 8]
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x2c], vtable.ByteBuffer.0
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov al, byte [eax]
mov byte [ebp - 0x49], al
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
test edx, edx
mov dword [ebp - 0x50], 0x20
mov byte [ebp - 4], 2
cmove edx, dword [ebp - 0x50]
test edx, edx
je 0x10015d93
push edx
lea ecx, [ebp - 0x1c]
call fcn.10006cf0
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], vtable.Packet.0
cmp eax, 0x989680
ja 0x10015dc7
lea edx, [ecx + 1]
cmp eax, edx
jae 0x10015dbd
push edx
lea ecx, [ebp - 0x1c]
call fcn.10006e80
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov al, byte [ebp - 0x49]
mov byte [edi + ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
mov al, byte [ebp - 0x28]
mov byte [ebp - 0x44], al
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.10005f00
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10015e02
mov eax, dword [ebp - 0x14]
push 1
sub eax, ecx
push eax
push ecx
call fcn.10002610
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
jle 0x10015e18
dec eax
lea ecx, [ebp - 0x48]
push eax
mov eax, dword [esi + 8]
inc eax
push eax
call fcn.10006e00
cmp byte [0x100761c8], 0
jne 0x10015ed6
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
movaps xmm0, xmmword [0x100686f0]
sub esi, eax
mov dword [ebp - 0x54], eax
xor ecx, ecx
mov dword [ebp - 0x58], esi
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 0x5c], 0
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0xf
jb 0x10015e44
sub esp, 0x18
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x6b]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x28]
push eax
call fcn.1005aed0
add esp, 0x1c
mov dword [ebp - 0x50], 0
test esi, esi
jle 0x10015ebf
nop word [eax + eax]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp edx, 0x10
cmovae ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015e92
sub ecx, esi
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, edi
mov edi, dword [ebp - 0x50]
mov eax, edi
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x54]
mov al, byte [edx + esi]
xor byte [edi + ecx], al
inc edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x58]
jl 0x10015e80
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10015ed6
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call fcn.10017d20
mov ecx, dword [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x48], vtable.ByteBuffer.0
test ecx, ecx
je 0x10015f01
mov eax, dword [ebp - 0x30]
push 1
sub eax, ecx
push eax
push ecx
call fcn.10002610
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005e77e
mov esp, ebp
pop ebp
ret