Function at 0x140031ef0
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x1400321ba
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov qword [rax + 0x10], rbp
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
sub rdi, 8
lea r14, [r8 + 2]
and rdi, 0xfffffffffffffff0
sub r8, rdx
mov rsi, rcx
mov qword [rax - 0x38], r15
lea rcx, [r8 - 2]
lea rax, [rdx + 2]
mov rbx, r9
mov qword [rsp + 0x10], r14
mov qword [rsp + 0x18], rcx
mov qword [rsp + 8], rax
nop
movzx r9d, byte [rax + 3]
movzx ecx, byte [rax + 4]
movzx r15d, byte [rax - 2]
movzx r8d, byte [rax - 1]
movzx r10d, byte [rax]
movzx r12d, byte [rax + 1]
movzx r11d, byte [rax + 2]
movzx r13d, byte [rax + 5]
xor ebp, ebp
mov byte [rsp], r9b
mov byte [rsp + 1], cl
test rdi, rdi
je 0x1400320f5
mov rax, qword [rsi + 8]
movzx r14d, r9b
movzx edx, byte [rax + rbp]
movzx ecx, r15b
lea r9, [0x140000000]
xor rdx, rcx
movzx ecx, r10b
add rbp, 0x10
movzx r15d, byte [rdx + r9 + 0x2f88e0]
movzx edx, byte [rax + rbp - 0xe]
add r15b, byte [rax + rbp - 8]
add rdx, rcx
movzx ecx, r11b
movzx ebx, byte [rdx + r9 + 0x2f7650]
movzx edx, byte [rax + rbp - 0xc]
xor bl, byte [rax + rbp - 6]
xor rdx, rcx
movzx ecx, byte [rsp + 1]
movzx r11d, byte [rdx + r9 + 0x2f88e0]
movzx edx, byte [rax + rbp - 0xa]
add r11b, byte [rax + rbp - 4]
add rdx, rcx
movzx ecx, r8b
movzx r10d, byte [rdx + r9 + 0x2f7650]
movzx edx, byte [rax + rbp - 0xf]
xor r10b, byte [rax + rbp - 2]
add rdx, rcx
movzx ecx, r12b
movzx r9d, byte [rdx + r9 + 0x2f7650]
movzx edx, byte [rax + rbp - 0xd]
xor r9b, byte [rax + rbp - 7]
xor rdx, rcx
lea rcx, [0x140000000]
movzx r8d, byte [rdx + rcx + 0x2f88e0]
movzx edx, byte [rax + rbp - 0xb]
add r9b, r15b
add r8b, byte [rax + rbp - 5]
add r15b, r9b
movzx ecx, r14b
add rdx, rcx
movzx ecx, r13b
add r8b, bl
lea r14, [0x140000000]
movzx r12d, byte [rdx + r14 + 0x2f7650]
movzx edx, byte [rax + rbp - 9]
xor r12b, byte [rax + rbp - 3]
xor rdx, rcx
lea ecx, [r15 + r8]
movzx r13d, byte [rdx + r14 + 0x2f88e0]
add r12b, r11b
add bl, cl
add r13b, byte [rax + rbp - 1]
add r11b, r12b
add r8b, r9b
add r13b, r10b
add r9b, r8b
add r15b, bl
lea ecx, [r11 + r13]
add r13b, r12b
add r10b, cl
add r12b, r13b
add r13b, r8b
lea ecx, [r8 + r13]
lea r8d, [r11 + r10]
add r12b, r9b
lea r14d, [rbx + r10]
add r8b, r15b
mov byte [rsp + 1], cl
lea ecx, [r9 + r12]
add r15b, r8b
lea r11d, [rbx + r14]
movzx r10d, cl
cmp rbp, rdi
jne 0x140031f91
mov rax, qword [rsp + 8]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
mov byte [rsp], r14b
mov r14, qword [rsp + 0x10]
movzx r9d, byte [rsp]
mov rcx, qword [rsi + 8]
add r14, 8
add rax, 8
movzx edx, byte [rdi + rcx]
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 8], rax
xor dl, r15b
mov qword [rsp + 0x10], r14
mov byte [rax + rcx - 8], dl
mov rcx, qword [rsi + 8]
movzx edx, byte [rdi + rcx + 1]
add dl, r8b
mov byte [r14 - 9], dl
mov rcx, qword [rsi + 8]
movzx edx, byte [rdi + rcx + 2]
add dl, r10b
mov byte [r14 - 8], dl
mov rcx, qword [rsi + 8]
movzx edx, byte [rdi + rcx + 3]
xor dl, r12b
mov byte [r14 - 7], dl
mov rcx, qword [rsi + 8]
movzx edx, byte [rdi + rcx + 4]
xor dl, r11b
mov byte [r14 - 6], dl
mov rcx, qword [rsi + 8]
movzx edx, byte [rdi + rcx + 5]
add dl, r9b
mov byte [r14 - 5], dl
mov rcx, qword [rsi + 8]
movzx edx, byte [rdi + rcx + 6]
add dl, byte [rsp + 1]
mov byte [r14 - 4], dl
mov rcx, qword [rsi + 8]
movzx edx, byte [rdi + rcx + 7]
xor dl, r13b
dec rbx
mov byte [r14 - 3], dl
mov qword [rsp + 0x78], rbx
jne 0x140031f50
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret