Function at 0x10087d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [esp + 0x84]
mov ebp, dword [eax + 8]
mov edx, dword [eax]
test ebp, ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
je 0x10087d76
mov esi, 0xcbf29ce4
mov ecx, 0x84222325
mov ebx, edx
nop dword [eax + eax]
movzx edi, byte [ebx]
imul esi, esi, 0x1b3
inc ebx
xor edi, ecx
mov ecx, 0x1b3
mov eax, edi
shl edi, 8
mul ecx
add edi, edx
mov ecx, eax
add esi, edi
dec ebp
jne 0x10087d30
xor ecx, 0xff
mov edx, 0x1b3
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
imul edx, esi, 0x1b3
add edx, ecx
mov dword [esp], edx
mov edx, dword [esp + 8]
jmp 0x10087d82
mov dword [esp], 0xaf64724c
mov eax, 0x8602eb6e
mov ecx, dword [esp + 0x80]
mov esi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
shr esi, 0x19
movd xmm0, esi
punpcklbw xmm0, xmm0
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
movdqu xmmword [esp + 0x48], xmm0
mov dword [esp + 0x18], ecx
lea esi, [ecx - 0x2c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], edi
and edi, eax
mov eax, dword [esp + 0x18]
movdqu xmm0, xmmword [esp + 0x48]
movdqu xmm1, xmmword [eax + edi]
pcmpeqb xmm0, xmm1
movdqu xmmword [esp + 0x58], xmm1
pmovmskb ebp, xmm0
test ebp, ebp
jne 0x10087e2c
movdqu xmm1, xmmword [esp + 0x58]
pcmpeqd xmm0, xmm0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
jne 0x10087ee2
mov eax, dword [esp + 4]
lea edi, [edi + eax + 0x10]
add eax, 0x10
and edi, dword [esp + 0x10]
mov dword [esp + 4], eax
jmp 0x10087dc8
lea eax, [ebp - 1]
and eax, ebp
test ax, ax
mov ebp, eax
je 0x10087de9
bsf ax, bp
movzx eax, ax
add eax, edi
and eax, dword [esp + 0x10]
neg eax
imul ebx, eax, 0x2c
cmp ecx, dword [esi + ebx + 8]
jne 0x10087e20
push ecx
push dword [esi + ebx]
push edx
call sub.VCRUNTIME140.dll_memcmp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x10087e20
movsd xmm0, qword [esi + ebx + 0x24]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x88]
movsd qword [edi + 0x18], xmm0
movsd xmm0, qword [esi + ebx + 0x1c]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [esi + ebx + 0xc]
movsd xmm1, qword [esi + ebx + 0x14]
movsd qword [edi], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [edi + 8], xmm1
movsd qword [esi + ebx + 0x24], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esi + ebx + 0x1c], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x84]
movsd qword [esi + ebx + 0x14], xmm1
movsd qword [esi + ebx + 0xc], xmm0
mov eax, dword [eax + 4]
test eax, eax
je 0x10087ed8
push 1
push eax
push edx
call fcn.1001d520
add esp, 0xc
mov eax, edi
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
movsd qword [esp + 0x1c], xmm0
movsd xmm1, qword [eax + 8]
movsd xmm0, qword [eax]
movsd xmm2, qword [eax + 0x10]
movsd qword [esp + 0x30], xmm1
movsd xmm1, qword [eax + 0x18]
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x38], xmm2
lea eax, [esp + 0x1c]
movsd qword [esp + 0x40], xmm1
push ecx
push eax
push dword [esp + 8]
push dword [esp + 0x20]
push ecx
call fcn.10081420
add esp, 0x14
mov edi, dword [esp + 0x7c]
mov dword [edi], 6
jmp 0x10087ed8