Function at 0x140078a00
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140078cb5
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x168
mov qword [rax - 0x18], rbx
xor r14d, r14d
mov qword [rax - 0x20], rsi
mov r11, rcx
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r15
mov qword [rbp + 0x98], r14
nop dword [rax + rax]
mov ecx, dword [r11 + 0x40]
movzx eax, byte [r14 + rdx]
mov byte [rcx + r11], al
inc dword [r11 + 0x40]
cmp dword [r11 + 0x40], 0x40
jne 0x140078c64
xor r8b, r8b
lea r9, [rsp + 0x30]
mov r10d, 0x10
nop word [rax + rax]
movzx ecx, r8b
lea r9, [r9 + 4]
movzx eax, r8b
add r8b, 4
movzx edx, byte [rax + r11 + 1]
movzx eax, byte [rcx + r11]
shl eax, 8
or edx, eax
movzx eax, byte [rcx + r11 + 2]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + r11 + 3]
shl edx, 8
or edx, eax
mov dword [r9 - 4], edx
sub r10, 1
jne 0x140078a80
mov esi, dword [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov bl, 0x10
nop dword [rax + rax]
mov r10d, dword [rdi + 4]
lea rdi, [rdi + 4]
movzx eax, bl
mov r8d, r10d
ror r8d, 0x12
inc bl
mov edx, dword [rsp + rax*4 + 0x28]
mov ecx, edx
ror ecx, 0x13
mov eax, r10d
ror eax, 7
xor r8d, eax
mov eax, r10d
shr eax, 3
xor r8d, eax
mov eax, edx
ror eax, 0x11
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add r8d, ecx
add r8d, dword [rdi + 0x20]
add r8d, esi
mov esi, r10d
mov dword [rdi + 0x3c], r8d
cmp bl, 0x40
jb 0x140078ad0
movups xmm0, xmmword [r11 + 0x50]
lea rax, [r11 + 0x50]
xor esi, esi
movups xmm1, xmmword [rax + 0x10]
mov qword [rsp + 0x20], rax
movups xmmword [rsp], xmm0
mov r13d, dword [rsp + 8]
lea r14d, [rsi + 0x40]
mov ebx, dword [rsp]
mov r11d, dword [rsp + 4]
movups xmmword [rsp + 0x10], xmm1
mov r15d, dword [rsp + 0x18]
mov r12d, dword [rsp + 0x14]
mov edi, dword [rsp + 0x10]
mov eax, dword [rsp + 0x1c]
nop dword [rax]
nop word [rax + rax]
mov ecx, edi
lea rsi, [rsi + 4]
ror ecx, 0xb
mov r10d, edi
ror r10d, 0x19
mov edx, edi
xor r10d, ecx
not edx
and edx, r15d
mov ecx, edi
ror ecx, 6
mov r8d, r13d
xor r10d, ecx
mov r9d, r11d
mov ecx, r12d
and r9d, r8d
and ecx, edi
xor edx, ecx
lea rcx, [0x140167560]
add r10d, edx
mov edx, ebx
add r10d, dword [rsi + rcx - 4]
mov ecx, ebx
add r10d, dword [rsp + rsi + 0x2c]
ror ecx, 0xd
add r10d, eax
ror edx, 0x16
mov eax, r15d
xor edx, ecx
mov r15d, r12d
mov ecx, ebx
mov r12d, edi
mov edi, dword [rsp + 0xc]
ror ecx, 2
add edi, r10d
xor edx, ecx
mov dword [rsp + 0xc], r13d
mov r13d, r11d
mov r11d, ebx
mov ecx, r13d
or ecx, r8d
and ebx, ecx
lea ecx, [r10 + rdx]
or ebx, r9d
add ebx, ecx
sub r14, 1
jne 0x140078b70
mov dword [rsp + 4], r11d
lea r8, [rsp]
mov r11, qword [rbp + 0x80]
lea edx, [r14 + 8]
mov r14, qword [rbp + 0x98]
sub r8, r11
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x20]
mov dword [rsp], ebx
mov dword [rsp + 0x10], edi
mov dword [rsp + 0x18], r15d
mov dword [rsp + 0x14], r12d
mov dword [rsp + 8], r13d
nop
mov ecx, dword [r8 + rax - 0x50]
add dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140078c40
add qword [r11 + 0x48], 0x200
mov dword [r11 + 0x40], edx
mov rdx, qword [rbp + 0x88]
inc r14
mov qword [rbp + 0x98], r14
cmp r14, qword [rbp + 0x90]
jb 0x140078a50
mov r15, qword [rsp + 0x138]
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x160]
add rsp, 0x168
pop r14
pop rbp
ret