Function at 0x140077dd0
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 0x140078151
test dl, dl
jne 0x140078151
mov r12, r9
mov r15, qword [rsi + 0x170]
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x140077e46
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.140077330
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
je 0x140077ea8
test rdi, rdi
je 0x140078146
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 0x140077e91
cmp rdi, 1
mov rdi, rbx
jne 0x140077e60
test eax, eax
jne 0x140078146
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.140077330
jmp 0x140077eab
mov rbx, rdi
mov edi, dword [rsi + 0xc]
bswap edi
cmp rbx, 0xc00
jb 0x140077f81
mov qword [rsp + 0x20], rbx
lea rax, [rsi + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsi + 0x40]
mov qword [rsp + 0x28], rax
lea r13, [rsi + 0x10]
mov rax, r12
mov rcx, rbp
nop
mov rbp, rcx
mov rbx, rax
mov r9d, 0xc00
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r8, rbp
call fcn.140077460
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 0x140077f10
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 0x140077ee0
add rbx, r12
add rbp, r12
mov r12, rbx
mov rbx, qword [rsp + 0x20]
mov r9, rbx
and r9, 0xff0
je 0x140077ff0
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r8, rbp
call fcn.140077460
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 0x140077fb0
test rbx, rbx
je 0x140078036
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, 0x10
xor eax, eax
cmp rdx, rcx
jae 0x14007803d
mov rcx, rbx
test cl, 1
jne 0x1400780ea
jmp 0x1400780d7
xor eax, eax
jmp 0x140078146
lea rdx, [rbx + rsi]
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 0x1400780cf
and cl, r8b
jne 0x1400780cf
and dl, r9b
mov r8, rdi
jne 0x1400780e2
mov rax, r8
and rax, 0xfffffffffffffff0
mov ecx, r8d
and ecx, 0xf
xor edx, edx
nop dword [rax + rax]
movups xmm0, xmmword [rbp + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
movups xmm2, xmmword [rsi + rdx + 0x40]
xorps xmm2, xmm0
movups xmmword [rsi + rdx + 0x40], xmm2
xorps xmm1, xmm0
movups xmmword [r12 + rdx], xmm1
add rdx, 0x10
cmp rax, rdx
jne 0x1400780a0
cmp r8, rax
jne 0x1400780d2
jmp 0x140078146
mov rcx, rdi
test cl, 1
jne 0x1400780ea
mov rdx, rcx
cmp rcx, 1
jne 0x140078110
jmp 0x140078146
mov rcx, r8
test cl, 1
je 0x1400780d7
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 0x140078146
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 0x140078110
mov dword [rsi + 0x180], eax
mov eax, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret