Function at 0x10018940
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 0x10065920
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
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
cmp byte [0x1007a242], 0
je 0x10018b3b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
sub eax, dword [0x1007a348]
sbb edx, dword [0x1007a34c]
mov dword [ebp - 0x5c], edx
jne 0x100189af
cmp eax, 0xbb8
jb 0x10018b3b
call esi
movaps xmm0, xmmword [0x1006f1c0]
xor ecx, ecx
mov dword [0x1007a348], eax
mov dword [0x1007a34c], edx
movups xmmword [ebp - 0x24], xmm0
nop dword [eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x100189d0
sub esp, 0x18
mov byte [ebp - 0x15], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.100029c0
lea ecx, [ebp - 0x48]
call fcn.1005fff0
add esp, 0x18
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x49], 0xa1
mov dword [ebp - 0x30], vtable.ByteBuffer.0
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x1000
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.10007af0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
mov edi, edx
mov ecx, dword [ebp - 0x20]
sub edi, ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], vtable.Packet.0
cmp edi, 0x989680
ja 0x10018a9a
lea esi, [eax + 1]
cmp edi, esi
jae 0x10018a8d
push esi
lea ecx, [ebp - 0x20]
call fcn.10007a10
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dl, byte [ebp - 0x49]
mov byte [ecx + eax], dl
inc eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
sub edx, ecx
mov byte [ebp - 4], 3
mov byte [ebp - 0x49], 0xa5
cmp edx, 0x989680
ja 0x10018acc
lea esi, [eax + 1]
cmp edx, esi
jae 0x10018ac2
push esi
lea ecx, [ebp - 0x20]
call fcn.10007a10
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dl, byte [ebp - 0x49]
mov byte [ecx + eax], dl
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.1001a640
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], esi
cmp eax, 0x4000
ja 0x10018b10
mov eax, dword [0x1007a2c8]
mov dword [ebp - 0x5c], eax
mov ecx, dword ds:[0x10069720]
mov ecx, dword ds:[ecx]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call dword [ebp - 0x5c]
test esi, esi
je 0x10018b25
mov edx, dword [ebp - 0x18]
mov ecx, esi
push 1
sub edx, esi
call fcn.10002790
add esp, 4
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x10018b3b
mov ecx, dword [ebp - 0x48]
inc edx
push 1
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