Function at 0x100158a0
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 0x1005df05
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x1007a040]
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
mov dword [ebp - 0x58], esi
test esi, esi
je 0x10015b8e
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x50], vtable.ByteBuffer.0
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x20
call fcn.1000f240
mov dword [ebp - 0x50], vtable.Packet.0
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x10015a51
mov eax, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x34]
mov al, byte [eax]
mov byte [ebp - 0x51], al
call fcn.1000f300
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x20]
mov eax, edi
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], vtable.Packet.0
mov dword [ebp - 0x18], eax
cmp eax, 0x989680
ja 0x100159dd
inc edx
cmp eax, edx
jae 0x100159c7
mov eax, dword [ebp - 0x1c]
sub eax, ecx
cmp edx, eax
jbe 0x100159ac
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.1000f480
jmp 0x100159c4
sub edx, dword [ebp - 0x18]
push edx
push 0
push edi
lea esi, [edi + edx]
call fcn.1003e0a0
mov dword [ebp - 0x20], esi
add esp, 0xc
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dl, byte [ebp - 0x51]
mov byte [ecx + eax], dl
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
inc edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 3
sub edi, ecx
mov al, byte [ebp - 0x30]
push edi
mov byte [ebp - 0x4c], al
mov eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
call fcn.10015dc0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x34], vtable.ByteBuffer.0
test edx, edx
je 0x10015a3b
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10015a31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015bac
push ecx
push edx
call fcn.1003bf86
add esp, 8
mov eax, dword [esi + 4]
test eax, eax
jle 0x10015a51
dec eax
lea ecx, [ebp - 0x50]
push eax
mov eax, dword [esi + 8]
inc eax
push eax
call fcn.1000f590
cmp byte [0x1007f01f], 0
jne 0x10015b4f
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
movaps xmm0, xmmword [0x10073d80]
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 0x10015a80
sub esp, 0x18
mov byte [ebp - 0x60], 0
mov edx, esp
lea ecx, [ebp - 0x6f]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015ab0
sub ecx, edi
lea eax, [ebp - 0x6f]
push ecx
push eax
mov ecx, edx
call fcn.10004850
lea ecx, [ebp - 0x30]
call fcn.10030fd0
add esp, 0x18
mov dword [ebp - 0x18], 0
test esi, esi
jle 0x10015b1f
nop dword [eax + eax]
mov edx, dword [ebp - 0x1c]
lea esi, [ebp - 0x30]
mov edi, dword [ebp - 0x30]
cmp edx, 0xf
cmova esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10015af2
sub esi, ecx
cmp edx, 0xf
lea ecx, [ebp - 0x30]
cmova ecx, edi
mov edi, dword [ebp - 0x18]
mov eax, edi
xor edx, edx
div esi
mov al, byte [edx + ecx]
mov ecx, dword [ebp - 0x58]
xor byte [edi + ecx], al
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x5c]
jl 0x10015ae0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10015b4f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10015b45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015bb1
push ecx
push edx
call fcn.1003bf86
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.10015580
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x50], vtable.ByteBuffer.0
test ecx, ecx
je 0x10015b8e
mov edx, dword [ebp - 0x38]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10015b84
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015bb6
push edx
push ecx
call fcn.1003bf86
add esp, 8
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.1003bf25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10041254
call fcn.10041254
call fcn.10041254
int3