Function at 0x140078490
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 0x1400787a1
test dl, dl
jne 0x1400787a1
mov rdi, r9
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x1400784ff
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 0x140078566
test r15, r15
je 0x140078796
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, [r15 - 1]
inc eax
and eax, 0xf
je 0x14007854f
cmp r15, 1
mov r15, r13
jne 0x140078520
test eax, eax
jne 0x140078796
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.140077330
jmp 0x140078569
mov r13, r15
mov qword [rsp + 0x30], r14
mov ebp, dword [rsi + 0xc]
bswap ebp
cmp r13, 0xc00
jb 0x1400785ea
lea r15, [rsi + 0x60]
lea r12, [rsi + 0x40]
mov r14, qword [rsp + 0x30]
nop dword [rax]
mov r9d, 0xc00
mov rcx, r12
mov rdx, r15
mov r8, rbx
call fcn.140077460
mov qword [rsp + 0x20], rsi
mov r8d, 0xc0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call qword [rsp + 0xa8]
add ebp, 0xc0
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
add rdi, 0xc00
add rbx, 0xc00
add r13, 0xfffffffffffff400
cmp r13, 0xbff
ja 0x140078590
mov r15, r13
and r15, 0xff0
je 0x140078786
mov r12, r13
shr r12, 4
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r8, rbx
mov r9, r15
call fcn.140077460
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
mov r8, r12
mov r14, qword [rsp + 0x30]
mov r9, r14
call qword [rsp + 0xa8]
add ebp, r12d
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
add rdi, r15
add rbx, r15
and r13d, 0xf
test r13, r13
je 0x140078794
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 0x14007871f
lea rdx, [rsi + r13]
add rdx, 0x40
lea r9, [rdi + r13]
lea r10, [rbx + r13]
cmp r15, r9
setb r11b
cmp rdi, rdx
setb bpl
cmp r15, r10
setb cl
cmp rbx, rdx
setb r8b
cmp rdi, r10
setb dl
cmp rbx, r9
setb r9b
test r11b, bpl
jne 0x14007871f
and cl, r8b
jne 0x14007871f
and dl, r9b
jne 0x14007871f
mov rax, r13
and rax, 0xfffffffffffffff0
mov ecx, r13d
and ecx, 0xf
xor edx, edx
nop dword [rax + rax]
movups xmm0, xmmword [rbx + 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 [rdi + rdx], xmm1
add rdx, 0x10
cmp rax, rdx
jne 0x1400786e0
cmp r13, rax
je 0x140078796
test cl, 1
jne 0x140078727
mov rdx, rcx
cmp rcx, 1
jne 0x140078750
jmp 0x140078796
mov rcx, r13
test cl, 1
je 0x140078714
lea rdx, [rcx - 1]
mov r8d, eax
movzx r9d, byte [rbx + r8]
xor byte [rsi + r8 + 0x40], r9b
xor r9b, byte [rsi + r8 + 0x10]
mov byte [rdi + r8], r9b
inc eax
cmp rcx, 1
je 0x140078796
nop dword [rax]
mov ecx, eax
movzx r8d, byte [rbx + rcx]
xor byte [rsi + rcx + 0x40], r8b
xor r8b, byte [rsi + rcx + 0x10]
mov byte [rdi + rcx], r8b
lea ecx, [rax + 1]
movzx r8d, byte [rbx + rcx]
xor byte [rsi + rcx + 0x40], r8b
xor r8b, byte [rsi + rcx + 0x10]
add eax, 2
mov byte [rdi + rcx], r8b
add rdx, 0xfffffffffffffffe
jne 0x140078750
jmp 0x140078796
mov r14, qword [rsp + 0x30]
test r13, r13
jne 0x14007864e
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