Function at 0x140078170
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 r14, rdx
mov rsi, rcx
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
add rcx, r15
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x140078473
test dl, dl
jne 0x140078473
mov rdi, r9
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x1400781df
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 0x140078240
test r15, r15
je 0x140078468
nop word cs:[rax + rax]
mov ecx, eax
movzx edx, byte [rsi + rcx + 0x10]
xor dl, byte [rbx]
inc rbx
mov byte [rdi], dl
xor byte [rsi + rcx + 0x40], dl
inc rdi
lea r13, [r15 - 1]
inc eax
and eax, 0xf
je 0x140078229
cmp r15, 1
mov r15, r13
jne 0x140078200
test eax, eax
jne 0x140078468
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.140077330
jmp 0x140078243
mov r13, r15
mov rax, qword [rsp + 0xa8]
mov ebp, dword [rsi + 0xc]
bswap ebp
cmp r13, 0xc00
jb 0x1400782d3
lea rcx, [rsi + 0x60]
mov qword [rsp + 0x30], rcx
lea r12, [rsi + 0x40]
nop word cs:[rax + rax]
mov qword [rsp + 0x20], rsi
mov r8d, 0xc0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
mov r15, r14
mov r14, rax
call rax
add ebp, 0xc0
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
mov r9d, 0xc00
mov rcx, r12
mov rdx, qword [rsp + 0x30]
mov r8, rdi
call fcn.140077460
mov rax, r14
mov r14, r15
add rdi, 0xc00
add rbx, 0xc00
add r13, 0xfffffffffffff400
cmp r13, 0xbff
ja 0x140078270
mov r15, r13
and r15, 0xff0
je 0x140078320
mov r12, r13
shr r12, 4
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
mov r8, r12
mov r9, r14
call rax
add ebp, r12d
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
add rbx, r15
and r13d, 0xf
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r8, rdi
mov r9, r15
call fcn.140077460
add rdi, r15
test r13, r13
je 0x140078466
lea r15, [rsi + 0x10]
mov rcx, rsi
mov rdx, r15
mov r8, r14
call qword [rsi + 0x170]
inc ebp
bswap ebp
mov dword [rsi + 0xc], ebp
movabs rcx, 0xfffffffeffffffff
lea rdx, [rcx + r13]
add rcx, 0x10
xor eax, eax
cmp rdx, rcx
jb 0x1400783fb
lea rdx, [rdi + r13]
lea r9, [rsi + r13]
add r9, 0x40
lea r10, [rbx + r13]
cmp rdi, r9
setb r11b
cmp r15, rdx
setb bpl
cmp rdi, r10
setb cl
cmp rbx, rdx
setb r8b
cmp r15, r10
setb dl
cmp rbx, r9
setb r9b
test r11b, bpl
jne 0x1400783fb
and cl, r8b
jne 0x1400783fb
and dl, r9b
jne 0x1400783fb
mov rax, r13
and rax, 0xfffffffffffffff0
mov ecx, r13d
and ecx, 0xf
xor edx, edx
nop word cs:[rax + rax]
movups xmm0, xmmword [rbx + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
xorps xmm1, xmm0
movups xmmword [rdi + rdx], xmm1
movups xmm0, xmmword [rsi + rdx + 0x40]
xorps xmm0, xmm1
movups xmmword [rsi + rdx + 0x40], xmm0
add rdx, 0x10
cmp rax, rdx
jne 0x1400783c0
cmp r13, rax
je 0x140078468
test cl, 1
jne 0x140078403
mov rdx, rcx
cmp rcx, 1
jne 0x140078430
jmp 0x140078468
mov rcx, r13
test cl, 1
je 0x1400783f0
lea rdx, [rcx - 1]
mov r8d, eax
movzx r9d, byte [rsi + r8 + 0x10]
xor r9b, byte [rbx + r8]
mov byte [rdi + r8], r9b
xor byte [rsi + r8 + 0x40], r9b
inc eax
cmp rcx, 1
je 0x140078468
nop word cs:[rax + rax]
mov ecx, eax
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rbx + rcx]
mov byte [rdi + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
lea ecx, [rax + 1]
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rbx + rcx]
mov byte [rdi + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
add eax, 2
add rdx, 0xfffffffffffffffe
jne 0x140078430
jmp 0x140078468
xor eax, eax
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