Function at 0x1400777f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbx, r8
mov r15, rdx
mov rsi, rcx
mov r14, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
add rcx, r14
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x140077b51
test dl, dl
jne 0x140077b51
mov rdi, r9
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x174], 0
je 0x14007785f
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x40]
call fcn.140076620
mov dword [rsi + 0x174], 0
mov eax, dword [rsi + 0x170]
test eax, eax
je 0x1400778c6
test r14, r14
je 0x140077b46
nop word cs:[rax + rax]
movzx ecx, byte [rbx]
inc rbx
mov edx, eax
movzx r8d, byte [rsi + rdx + 0x10]
xor r8b, cl
mov byte [rdi], r8b
xor byte [rsi + rdx + 0x40], cl
inc rdi
lea r13, [r14 - 1]
inc eax
and eax, 0xf
je 0x1400778af
cmp r14, 1
mov r14, r13
jne 0x140077880
test eax, eax
jne 0x140077b46
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x40]
call fcn.140076620
jmp 0x1400778c9
mov r13, r14
mov qword [rsp + 0x28], r15
mov r14d, dword [rsi + 0xc]
bswap r14d
cmp r13, 0xc00
jb 0x14007794c
lea r15, [rsi + 0x50]
lea r12, [rsi + 0x40]
mov rbp, qword [rsp + 0x28]
nop dword [rax + rax]
mov r9d, 0xc00
mov rcx, r12
mov rdx, r15
mov r8, rbx
call fcn.140076750
mov qword [rsp + 0x20], rsi
mov r8d, 0xc0
mov rcx, rbx
mov rdx, rdi
mov r9, rbp
call qword [rsp + 0xa8]
add r14d, 0xc0
mov eax, r14d
bswap eax
mov dword [rsi + 0xc], eax
add rdi, 0xc00
add rbx, 0xc00
add r13, 0xfffffffffffff400
cmp r13, 0xbff
ja 0x1400778f0
mov r15, r13
and r15, 0xff0
je 0x140077a04
mov r12, r13
shr r12, 4
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x40]
mov r8, rbx
mov r9, r15
call fcn.140076750
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
mov r8, r12
mov r9, qword [rsp + 0x28]
call qword [rsp + 0xa8]
add r14d, r12d
mov eax, r14d
bswap eax
mov dword [rsi + 0xc], eax
lea r12, [rdi + r15]
lea rbp, [rbx + r15]
and r13d, 0xf
test r13, r13
je 0x140077a0f
lea rdx, [rsi + 0x10]
mov rcx, rsi
mov qword [rsp + 0x30], rdx
mov r8, qword [rsp + 0x28]
call qword [rsi + 0x160]
inc r14d
bswap r14d
mov dword [rsi + 0xc], r14d
movabs rcx, 0xfffffffeffffffff
lea rdx, [rcx + r13]
add rcx, 0x20
xor eax, eax
cmp rdx, rcx
jae 0x140077a16
mov rcx, r13
test cl, 1
jne 0x140077aea
mov rdx, rcx
cmp rcx, 1
jne 0x140077b10
jmp 0x140077b46
mov rbp, rbx
mov r12, rdi
test r13, r13
jne 0x1400779ac
xor eax, eax
jmp 0x140077b46
lea rdx, [rsi + r13]
add rdx, 0x40
lea r9, [r15 + r13]
lea r10, [rdi + r9]
add r9, rbx
mov rcx, qword [rsp + 0x30]
cmp rcx, r10
setb r11b
cmp r12, rdx
setb r14b
cmp rcx, r9
setb cl
cmp rbp, rdx
setb r8b
cmp r12, r9
setb dl
cmp rbp, r10
setb r9b
test r11b, r14b
jne 0x1400779e6
and cl, r8b
jne 0x1400779e6
and dl, r9b
jne 0x1400779e6
movabs rax, 0x1ffffffe0
and rax, r13
mov ecx, r13d
and ecx, 0x1f
lea rdx, [rbx + r15]
add rdx, 0x10
lea r8, [rdi + r15]
add r8, 0x10
xor r9d, r9d
nop dword [rax + rax]
movups xmm0, xmmword [rdx + r9 - 0x10]
movups xmm1, xmmword [rdx + r9]
movups xmm2, xmmword [rsi + r9 + 0x10]
movups xmm3, xmmword [rsi + r9 + 0x20]
movups xmm4, xmmword [rsi + r9 + 0x40]
movups xmm5, xmmword [rsi + r9 + 0x50]
xorps xmm4, xmm0
xorps xmm5, xmm1
movups xmmword [rsi + r9 + 0x40], xmm4
movups xmmword [rsi + r9 + 0x50], xmm5
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [r8 + r9 - 0x10], xmm2
movups xmmword [r8 + r9], xmm3
add r9, 0x20
cmp rax, r9
jne 0x140077a90
cmp r13, rax
jne 0x1400779e9
jmp 0x140077b46
lea rdx, [rcx - 1]
mov r8d, eax
movzx r9d, byte [rbp + r8]
xor byte [rsi + r8 + 0x40], r9b
xor r9b, byte [rsi + r8 + 0x10]
mov byte [r12 + r8], r9b
inc eax
cmp rcx, 1
je 0x140077b46
nop dword [rax]
mov ecx, eax
movzx r8d, byte [rbp + rcx]
xor byte [rsi + rcx + 0x40], r8b
xor r8b, byte [rsi + rcx + 0x10]
mov byte [r12 + rcx], r8b
lea ecx, [rax + 1]
movzx r8d, byte [rbp + rcx]
xor byte [rsi + rcx + 0x40], r8b
xor r8b, byte [rsi + rcx + 0x10]
add eax, 2
mov byte [r12 + rcx], r8b
add rdx, 0xfffffffffffffffe
jne 0x140077b10
mov dword [rsi + 0x170], eax
mov eax, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret