Function at 0x10015d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061d28
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10077604]
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 0x10015f81
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.10006c60
mov dword [ebp - 0x48], vtable.Packet.0
mov edx, dword [esi + 4]
mov dword [ebp - 4], 1
test edx, edx
jle 0x10015e98
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 0x10015e13
push edx
lea ecx, [ebp - 0x1c]
call fcn.10006c60
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 0x10015e47
lea edx, [ecx + 1]
cmp eax, edx
jae 0x10015e3d
push edx
lea ecx, [ebp - 0x1c]
call fcn.10006f20
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.10005ed0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10015e82
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 0x10015e98
dec eax
lea ecx, [ebp - 0x48]
push eax
mov eax, dword [esi + 8]
inc eax
push eax
call fcn.10006d70
cmp byte [0x100781c8], 0
jne 0x10015f56
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
movaps xmm0, xmmword [str.cUBFJtHASQ]
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 0x10015ec4
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.1005be00
add esp, 0x1c
mov dword [ebp - 0x50], 0
test esi, esi
jle 0x10015f3f
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 0x10015f12
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 0x10015f00
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10015f56
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call fcn.10017db0
mov ecx, dword [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x48], vtable.ByteBuffer.0
test ecx, ecx
je 0x10015f81
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.1005f6be
mov esp, ebp
pop ebp
ret