Function at 0x140077320
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 rbp, r8
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
add rcx, rdi
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x1400776d1
test dl, dl
jne 0x1400776d1
mov r12, r9
lea r13, [rsi + 0x50]
mov r15, qword [rsi + 0x160]
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x174], 0
je 0x140077399
lea rcx, [rsi + 0x40]
mov rdx, r13
call fcn.140076890
mov dword [rsi + 0x174], 0
mov eax, dword [rsi + 0x170]
test eax, eax
je 0x1400773f7
test rdi, rdi
je 0x1400776c6
nop dword [rax]
movzx ecx, byte [rbp]
inc rbp
mov edx, eax
movzx r8d, byte [rsi + rdx + 0x10]
xor r8b, cl
mov byte [r12], r8b
xor byte [rsi + rdx + 0x40], cl
inc r12
lea rbx, [rdi - 1]
inc eax
and eax, 0xf
je 0x1400773e1
cmp rdi, 1
mov rdi, rbx
jne 0x1400773b0
test eax, eax
jne 0x1400776c6
lea rcx, [rsi + 0x40]
mov rdx, r13
call fcn.140076890
jmp 0x1400773fa
mov rbx, rdi
mov edi, dword [rsi + 0xc]
bswap edi
cmp rbx, 0xc00
jb 0x1400774d6
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
lea rax, [rsi + 0x40]
mov qword [rsp + 0x30], rax
lea r13, [rsi + 0x10]
mov rax, r12
mov rcx, rbp
nop dword [rax]
mov rbp, rcx
mov rbx, rax
mov r9d, 0xc00
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov r8, rbp
call fcn.1400769c0
xor r12d, r12d
nop word cs:[rax + rax]
mov rcx, rsi
mov rdx, r13
mov r8, r14
call r15
inc edi
mov eax, edi
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbp + r12]
mov qword [rbx + r12], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbp + r12 + 8]
mov qword [rbx + r12 + 8], rax
add r12, 0x10
cmp r12, 0xc00
jne 0x140077460
mov rdx, qword [rsp + 0x20]
add rdx, 0xfffffffffffff400
lea rax, [rbx + r12]
lea rcx, [r12 + rbp]
mov qword [rsp + 0x20], rdx
cmp rdx, 0xbff
ja 0x140077430
add rbx, r12
add rbp, r12
mov r12, rbx
mov rbx, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r9, rbx
and r9, 0xff0
je 0x140077540
lea rcx, [rsi + 0x40]
mov rdx, r13
mov r8, rbp
call fcn.1400769c0
lea r13, [rsi + 0x10]
nop word cs:[rax + rax]
mov rcx, rsi
mov rdx, r13
mov r8, r14
call r15
inc edi
mov eax, edi
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbp]
mov qword [r12], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbp + 8]
mov qword [r12 + 8], rax
add r12, 0x10
add rbp, 0x10
add rbx, 0xfffffffffffffff0
cmp rbx, 0xf
ja 0x140077500
test rbx, rbx
je 0x140077593
lea r13, [rsi + 0x10]
mov rcx, rsi
mov rdx, r13
mov r8, r14
call r15
inc edi
bswap edi
mov dword [rsi + 0xc], edi
movabs rcx, 0xfffffffeffffffff
lea rdx, [rbx + rcx]
add rcx, 0x20
xor eax, eax
cmp rdx, rcx
jae 0x14007759a
mov rcx, rbx
test cl, 1
jne 0x140077663
mov rdx, rcx
cmp rcx, 1
jne 0x140077690
jmp 0x1400776c6
xor eax, eax
jmp 0x1400776c6
lea rdx, [rsi + rbx]
add rdx, 0x40
lea r9, [r12 + rbx]
mov rdi, rbx
lea r10, [rbx + rbp]
cmp r13, r9
setb r11b
cmp r12, rdx
setb bl
cmp r13, r10
setb cl
cmp rbp, rdx
setb r8b
cmp r12, r10
setb dl
cmp rbp, r9
setb r9b
test r11b, bl
jne 0x1400776ea
and cl, r8b
jne 0x1400776ea
and dl, r9b
mov r8, rdi
jne 0x1400776e2
movabs rax, 0x1ffffffe0
and rax, r8
mov ecx, r8d
and ecx, 0x1f
xor edx, edx
nop word [rax + rax]
movups xmm0, xmmword [rbp + rdx]
movups xmm1, xmmword [rbp + rdx + 0x10]
movups xmm2, xmmword [rsi + rdx + 0x10]
movups xmm3, xmmword [rsi + rdx + 0x20]
movups xmm4, xmmword [rsi + rdx + 0x40]
movups xmm5, xmmword [rsi + rdx + 0x50]
xorps xmm4, xmm0
xorps xmm5, xmm1
movups xmmword [rsi + rdx + 0x40], xmm4
movups xmmword [rsi + rdx + 0x50], xmm5
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [r12 + rdx], xmm2
movups xmmword [r12 + rdx + 0x10], xmm3
add rdx, 0x20
cmp rax, rdx
jne 0x140077610
cmp r8, rax
jne 0x140077578
jmp 0x1400776c6
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 0x1400776c6
nop word cs:[rax + 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 0x140077690
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
mov rcx, r8
jmp 0x140077578
mov rcx, rdi
jmp 0x140077578