Function at 0x140078210
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [rcx + 0x170]
mov rdi, rcx
mov rbp, qword [rcx + 0x160]
mov rbx, r9
mov r14, qword [rsp + 0xa0]
mov rsi, r8
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 0x168]
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x30], rax
add rcx, r14
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x14007850d
cmp rcx, r14
jb 0x14007850d
mov qword [rdi + 0x38], rcx
lea rdx, [rdi + 0x60]
cmp dword [rdi + 0x184], 0
lea r8, [rdi + 0x40]
mov qword [rsp + 0x90], r12
je 0x1400782a6
mov rcx, r8
call rbp
lea r8, [rdi + 0x40]
mov dword [rdi + 0x184], 0
lea rdx, [rdi + 0x60]
mov r12d, dword [rdi + 0x180]
mov dword [rsp + 0x80], r12d
test r12d, r12d
je 0x1400782f8
nop word [rax + rax]
test r14, r14
je 0x1400784ff
mov ecx, r12d
dec r14
movzx eax, byte [rcx + rdi + 0x10]
xor al, byte [rsi]
inc rsi
mov byte [rbx], al
inc rbx
xor byte [rcx + rdi + 0x40], al
inc r12d
and r12d, 0xf
jne 0x1400782c0
mov rcx, r8
call rbp
mov dword [rsp + 0x80], r12d
mov qword [rsp + 0x48], r13
lea rbp, [rdi + 0x10]
mov r13d, dword [rdi + 0xc]
mov qword [rsp + 0x40], r15
bswap r13d
cmp r14, 0xc00
jb 0x1400783e4
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
mov r15, rdx
shr r15, 0xb
imul rax, r15, 0xfffffffffffff400
mov qword [rsp + 0x28], r15
add r14, rax
mov qword [rsp + 0xa0], r14
mov r14, qword [rsp + 0x20]
nop word [rax + rax]
mov r15, qword [rsp + 0x88]
mov ebp, 0xc0
nop dword [rax]
mov r8, r15
lea rdx, [rdi + 0x10]
mov rcx, rdi
call r14
inc r13d
mov r9, rsi
mov eax, r13d
bswap eax
mov dword [rdi + 0xc], eax
xor eax, eax
sub r9, rbx
lea r8, [rax + rbx]
mov rcx, rax
mov rdx, qword [r9 + r8]
add rax, 8
shr rcx, 3
xor rdx, qword [rdi + rcx*8 + 0x10]
mov qword [r8], rdx
cmp rax, 0x10
jb 0x140078380
add rbx, 0x10
add rsi, 0x10
sub rbp, 1
jne 0x140078360
lea r8, [rbx - 0xc00]
mov r9d, 0xc00
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call qword [rsp + 0x30]
sub qword [rsp + 0x28], 1
jne 0x140078350
mov r14, qword [rsp + 0xa0]
lea rbp, [rdi + 0x10]
mov r12d, dword [rsp + 0x80]
mov r15, r14
and r15, 0xfffffffffffffff0
je 0x140078499
cmp r14, 0x10
jb 0x140078484
mov r12, qword [rsp + 0x88]
mov rbp, r14
shr rbp, 4
imul rax, rbp, 0xfffffffffffffff0
add r14, rax
mov qword [rsp + 0xa0], r14
mov r14, qword [rsp + 0x20]
nop
mov r8, r12
lea rdx, [rdi + 0x10]
mov rcx, rdi
call r14
inc r13d
xor r8d, r8d
mov eax, r13d
mov r10, rsi
bswap eax
mov dword [rdi + 0xc], eax
sub r10, rbx
lea rdx, [r8 + rbx]
mov rax, r8
mov rcx, qword [r10 + rdx]
add r8, 8
shr rax, 3
xor rcx, qword [rdi + rax*8 + 0x10]
mov qword [rdx], rcx
cmp r8, 0x10
jb 0x140078441
add rbx, 0x10
add rsi, 0x10
sub rbp, 1
jne 0x140078420
mov r14, qword [rsp + 0xa0]
lea rbp, [rdi + 0x10]
mov r12d, dword [rsp + 0x80]
mov r8, rbx
lea rdx, [rdi + 0x60]
sub r8, r15
lea rcx, [rdi + 0x40]
mov r9, r15
call qword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
test r14, r14
je 0x1400784db
mov r8, qword [rsp + 0x88]
mov rdx, rbp
mov rcx, rdi
call qword [rsp + 0x20]
lea eax, [r13 + 1]
bswap eax
mov dword [rdi + 0xc], eax
nop
mov ecx, r12d
inc r12d
movzx eax, byte [rcx + rsi]
xor al, byte [rcx + rdi + 0x10]
mov byte [rcx + rbx], al
xor byte [rcx + rdi + 0x40], al
sub r14, 1
jne 0x1400784c0
mov r13, qword [rsp + 0x48]
mov eax, 1
mov dword [rdi + 0x180], r12d
mov r12, qword [rsp + 0x90]
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rdi + 0x180], r12d
mov eax, 1
jmp 0x1400784ec
xor eax, eax
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret