Function at 0x7ff910136080
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x7ff91020e040]
xor rax, rsp
mov qword [rbp - 0x10], rax
movzx r12d, r8b
mov byte [rbp - 0x60], r12b
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x40], rcx
mov r13d, dword [rcx + 0x1d4]
mov dword [rbp - 0x38], r13d
mov rax, qword [rdx + 0x28]
mov qword [rbp - 0x30], rax
add rcx, 0xd8
lea rdx, [rbp - 0x30]
call fcn.7ff91013dab0
xor ecx, ecx
test rax, rax
je 0x7ff9101360ee
movups xmm2, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
jmp 0x7ff910136102
mov qword [rbp - 0x30], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
movups xmm2, xmmword [rbp - 0x30]
unpckhpd xmm0, xmm0
movsd qword [rbp - 0x48], xmm0
movd eax, xmm2
cmp eax, 3
jne 0x7ff9101361fe
movaps xmm1, xmm2
unpckhpd xmm1, xmm2
comisd xmm1, xmmword [0x7ff9101f1e28]
jb 0x7ff9101361fe
movsd xmm0, qword [0x7ff9101f1e68]
comisd xmm0, xmm1
jb 0x7ff9101361fe
cvttsd2si esi, xmm1
movd xmm0, esi
cvtdq2pd xmm0, xmm0
ucomisd xmm0, xmm1
jp 0x7ff9101361fe
jne 0x7ff9101361fe
dec sil
mov rbx, qword [r14 + 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910138000
mov edx, eax
test eax, eax
jns 0x7ff9101361a9
lea ecx, [r13 + 1]
cmp ecx, 0xff
ja 0x7ff9101364ee
mov dword [rdi + 0x1d4], ecx
mov eax, dword [rdi + 0x1d8]
cmp eax, ecx
cmovb eax, ecx
mov dword [rdi + 0x1d8], eax
movzx r8d, r13b
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910137330
movzx edx, r13b
mov rax, qword [r14 + 0x28]
cmp dword [rdi + 0xc], 1
jl 0x7ff9101361c1
mov rcx, qword [rdi]
mov eax, dword [rax + 0xc]
inc eax
mov dword [rcx + 0x1b8], eax
mov rbx, qword [rdi]
movzx ecx, sil
shl ecx, 8
movzx eax, dl
or ecx, eax
shl ecx, 8
or ecx, r12d
shl ecx, 8
or ecx, 0x11
mov dword [rbp - 0x5c], ecx
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x7ff9101361f5
mov dword [rdx], ecx
add qword [rbx + 0x30], 4
jmp 0x7ff91013647c
lea r8, [rbp - 0x5c]
jmp 0x7ff910136473
cmp eax, 5
jne 0x7ff91013639d
movdqa xmm0, xmm2
psrldq xmm0, 8
movq r15, xmm0
psrldq xmm2, 4
movd esi, xmm2
mov rbx, qword [rdi]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], rsi
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.7ff91012a340
mov dword [rbp - 0x30], 4
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x58], 4
mov eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.7ff91012a230
mov dword [rbp - 0x30], eax
test eax, eax
js 0x7ff91013650b
mov rbx, qword [r14 + 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910138000
mov r12d, eax
test eax, eax
jns 0x7ff9101362ca
mov r12d, dword [rdi + 0x1d4]
lea ecx, [r12 + 1]
cmp ecx, 0xff
ja 0x7ff91013651c
mov dword [rdi + 0x1d4], ecx
mov eax, dword [rdi + 0x1d8]
cmp eax, ecx
cmovb eax, ecx
mov dword [rdi + 0x1d8], eax
movzx r8d, r12b
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910137330
mov rax, qword [r14 + 0x28]
cmp dword [rdi + 0xc], 1
jl 0x7ff9101362e2
mov rcx, qword [rdi]
mov eax, dword [rax + 0xc]
inc eax
mov dword [rcx + 0x1b8], eax
mov rbx, qword [rdi]
test rsi, rsi
je 0x7ff91013630c
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [r15 + rdx - 1]
mov eax, esi
shl eax, 5
add ecx, eax
mov eax, esi
shr eax, 2
add ecx, eax
xor esi, ecx
sub rdx, 1
jne 0x7ff9101362f0
movzx ecx, sil
shl ecx, 8
movzx eax, r12b
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x60]
or ecx, eax
shl ecx, 8
or ecx, 0xf
mov dword [rbp - 0x5c], ecx
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x7ff91013633e
mov dword [rdx], ecx
add qword [rbx + 0x30], 4
jmp 0x7ff91013634b
lea r8, [rbp - 0x5c]
lea rcx, [rbx + 0x28]
call fcn.7ff9100c4e60
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x7ff91013636c
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x7ff910136371
call fcn.7ff9100c4e60
mov rbx, qword [rdi]
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x30], eax
lea rcx, [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x7ff910136394
mov dword [rdx], eax
add qword [rbx + 0x30], 4
jmp 0x7ff91013647c
lea r8, [rbp - 0x30]
jmp 0x7ff910136477
mov rbx, qword [r14 + 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910138000
mov r15d, eax
test eax, eax
jns 0x7ff9101363ed
lea ecx, [r13 + 1]
cmp ecx, 0xff
ja 0x7ff910136539
mov dword [rdi + 0x1d4], ecx
mov eax, dword [rdi + 0x1d8]
cmp eax, ecx
cmovb eax, ecx
mov dword [rdi + 0x1d8], eax
movzx r8d, r13b
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910137330
movzx r15d, r13b
mov rbx, qword [r14 + 0x28]
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910138000
mov esi, eax
test eax, eax
jns 0x7ff91013643d
mov esi, dword [rdi + 0x1d4]
lea ecx, [rsi + 1]
cmp ecx, 0xff
ja 0x7ff9101364d1
mov dword [rdi + 0x1d4], ecx
mov eax, dword [rdi + 0x1d8]
cmp eax, ecx
cmovb eax, ecx
mov dword [rdi + 0x1d8], eax
movzx r8d, sil
mov rdx, rbx
mov rcx, rdi
call fcn.7ff910137330
mov rbx, qword [rdi]
movzx ecx, sil
shl ecx, 8
movzx eax, r15b
or ecx, eax
shl ecx, 8
or ecx, r12d
shl ecx, 8
or ecx, 0xd
mov dword [rbp - 0x30], ecx
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x7ff91013646f
mov dword [rdx], ecx
add qword [rbx + 0x30], 4
jmp 0x7ff91013647c
lea r8, [rbp - 0x30]
lea rcx, [rbx + 0x28]
call fcn.7ff9100c4e60
mov rdx, qword [rbx + 0x48]
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
cmp rdx, qword [rbx + 0x50]
je 0x7ff91013649d
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x7ff9101364a3
call fcn.7ff9100c4e60
nop
mov dword [rdi + 0x1d4], r13d
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.7ff9101c9690
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbx + 0xc]
mov r9d, 0xff
mov r8d, 1
lea rdx, [0x7ff9101ea9a0]
call fcn.7ff91012ebb0
int3
lea rcx, [rbx + 0xc]
mov r9d, 0xff
mov r8d, 1
lea rdx, [0x7ff9101ea9a0]
call fcn.7ff91012ebb0
int3
lea rcx, [r14 + 0xc]
lea rdx, [0x7ff9101ea5d8]
call fcn.7ff91012ebb0
int3
lea rcx, [rbx + 0xc]
mov r9d, 0xff
mov r8d, 1
lea rdx, [0x7ff9101ea9a0]
call fcn.7ff91012ebb0
int3
lea rcx, [rbx + 0xc]
mov r9d, 0xff
mov r8d, 1
lea rdx, [0x7ff9101ea9a0]
call fcn.7ff91012ebb0
int3