Function at 0x10017e90
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065898
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10078014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x100180ff
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x4c], vtable.ByteBuffer.0
movq qword [ebp - 0x3c], xmm0
mov byte [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push 0x20
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.10007af0
mov dword [ebp - 0x4c], vtable.Packet.0
mov dword [ebp - 4], 1
mov edx, dword [esi + 4]
test edx, edx
jle 0x1001801d
mov eax, dword [esi + 8]
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x30], vtable.ByteBuffer.0
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov al, byte [eax]
mov byte [ebp - 0x4d], al
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
test edx, edx
mov dword [ebp - 0x54], 0x20
mov byte [ebp - 4], 2
cmove edx, dword [ebp - 0x54]
test edx, edx
je 0x10017f96
push edx
lea ecx, [ebp - 0x20]
call fcn.10007af0
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], vtable.Packet.0
cmp eax, 0x989680
ja 0x10017fca
lea edx, [ecx + 1]
cmp eax, edx
jae 0x10017fc0
push edx
lea ecx, [ebp - 0x20]
call fcn.10007a10
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 0x4d]
mov byte [edi + ecx], al
inc ecx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 4
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x48], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x3c]
push eax
call fcn.10006ed0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10018003
mov edx, dword [ebp - 0x18]
push 1
sub edx, ecx
call fcn.10002790
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
jle 0x1001801d
add eax, 0xffffffff
je 0x1001801d
push eax
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x4c]
inc eax
push eax
call fcn.10007a60
cmp byte [0x1007a243], 0
jne 0x100180da
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
movaps xmm0, xmmword [str._fPGCOqMDVT]
sub esi, eax
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov dword [ebp - 0x5c], esi
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x60], 0
nop dword [eax]
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0xf
jb 0x10018050
sub esp, 0x18
mov byte [ebp - 0x60], 0
lea eax, [ebp - 0x6f]
mov ecx, esp
push eax
call fcn.100029c0
lea ecx, [ebp - 0x2c]
call fcn.1005fff0
add esp, 0x18
mov dword [ebp - 0x54], 0
test esi, esi
jle 0x100180c4
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
cmp edx, 0x10
cmovae ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018097
sub ecx, esi
cmp edx, 0x10
lea esi, [ebp - 0x2c]
cmovae esi, edi
mov edi, dword [ebp - 0x54]
mov eax, edi
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x58]
mov al, byte [edx + esi]
xor byte [edi + ecx], al
inc edi
mov dword [ebp - 0x54], edi
cmp edi, dword [ebp - 0x5c]
jl 0x10018085
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100180da
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.10002790
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.10017940
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], vtable.ByteBuffer.0
test ecx, ecx
je 0x100180ff
mov edx, dword [ebp - 0x34]
push 1
sub edx, ecx
call fcn.10002790
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10063065
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret