Function at 0x10022b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c954d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100f2040]
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, ecx
test esi, esi
je 0x10022d94
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.1000f450
mov dword [ebp - 0x34], vtable.Packet.0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x10022c29
mov eax, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x74]
movzx eax, byte [eax]
mov byte [ebp - 0x14], al
call fcn.1000f000
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], vtable.Packet.0
call fcn.1000f1c0
mov byte [ebp - 4], 2
movzx eax, byte [ebp - 0x70]
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.1000eb80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x74], vtable.ByteBuffer.0
call fcn.1000f550
mov eax, dword [esi + 4]
test eax, eax
jle 0x10022c29
dec eax
lea ecx, [ebp - 0x34]
push eax
mov eax, dword [esi + 8]
inc eax
push eax
call fcn.1000f1c0
cmp byte [0x100f5f63], 0
jne 0x10022d7d
push 0
lea ecx, [ebp - 0x24]
call fcn.1000bb70
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x20]
xor ecx, ecx
movaps xmm0, xmmword [0x100e90a0]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], edi
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x58], 0
nop dword [eax]
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0xf
jb 0x10022c60
sub esp, 0x1c
mov byte [ebp - 0x58], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022ca0
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea ecx, [ebp - 0x50]
call fcn.10083f10
add esp, 0x1c
xor esi, esi
test edi, edi
jle 0x10022d60
nop word [eax + eax]
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x4c]
cmp edi, 0xf
cmova ecx, dword [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022ce0
sub ecx, edx
mov eax, esi
xor edx, edx
div ecx
mov eax, edx
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x3c]
jbe 0x10022d40
push str.string_subscript_out_of_range
push 0x100e0bf8
push 0
push 0x8d0
push 0x100e0da8
push 2
call fcn.10090860
add esp, 0x18
cmp eax, 1
jne 0x10022d1f
int3
push 0
push 0x8d0
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120includexstring
push 0x100e0d34
push str._string_subscript_out_of_range_
call fcn.1008fb80
mov edi, dword [ebp - 0x38]
add esp, 0x14
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
cmp edi, 0xf
cmova eax, dword [ebp - 0x4c]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x78]
xor byte [esi + ecx], al
inc esi
cmp esi, dword [ebp - 0x7c]
jl 0x10022cd0
lea ecx, [ebp - 0x50]
call fcn.10002f50
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.100891b0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.100223d0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], vtable.ByteBuffer.0
call fcn.1000f550
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.10089100
mov esp, ebp
pop ebp
ret