Function at 0x14000ec1c
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14000f087
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, r8
mov r14, r9
shr rdi, 4
mov rsi, rdx
cmp byte [rcx], 0
mov rbx, rcx
je 0x14000ec66
mov r8, rdi
call fcn.14000f088
jmp 0x14000f06a
lea r15, [rcx + 8]
mov r8d, 0x10
mov rdx, r15
mov qword [rbp + 0x40], r15
lea rcx, [rbp - 0x10]
call fcn.140024650
test rdi, rdi
je 0x14000f058
lea r10, [rbp - 0x30]
sub r10, rsi
lea r11, [rbp - 0x10]
neg r11
lea r15, [0x140000000]
movsxd r9, dword [rbx + 4]
lea rdx, [rbx + 0x18]
mov rax, r9
mov rcx, rsi
shl rax, 4
mov r8d, 4
add rdx, rax
sub rdx, rsi
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [r10 + rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x14000ecbc
movzx ecx, byte [rbp - 0x30]
movzx eax, byte [rbp - 0x29]
mov edx, dword [r15 + rcx*4 + 0x49230]
xor edx, dword [r15 + rax*4 + 0x49e30]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r15 + rax*4 + 0x49a30]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r15 + rax*4 + 0x49630]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r15 + rcx*4 + 0x49630]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r15 + rax*4 + 0x49230]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r15 + rax*4 + 0x49e30]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r15 + rax*4 + 0x49a30]
movzx eax, byte [rbp - 0x28]
mov dword [rbp - 0x1c], edx
mov edx, dword [r15 + rcx*4 + 0x49a30]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r15 + rax*4 + 0x49230]
movzx eax, byte [rbp - 0x2b]
xor edx, dword [r15 + rax*4 + 0x49630]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r15 + rax*4 + 0x49e30]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r15 + rcx*4 + 0x49e30]
xor edx, dword [r15 + rax*4 + 0x49a30]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r15 + rax*4 + 0x49630]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r15 + rax*4 + 0x49230]
lea eax, [r9 - 1]
movsxd rcx, eax
mov dword [rbp - 0x14], edx
cmp rcx, 1
jle 0x14000eebc
mov rax, rcx
lea rdx, [rbp - 0x20]
shl rax, 4
lea r8, [rbx + 0x18]
sub rax, rdx
lea r9, [rcx - 1]
add r8, rax
xor edx, edx
lea rax, [rbp - 0x20]
add rax, rdx
mov ecx, dword [r8 + rax]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x30], ecx
add rdx, 4
cmp rdx, 0x10
jl 0x14000edc7
movzx ecx, byte [rbp - 0x30]
sub r8, 0x10
movzx eax, byte [rbp - 0x29]
mov edx, dword [r15 + rcx*4 + 0x49230]
xor edx, dword [r15 + rax*4 + 0x49e30]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r15 + rax*4 + 0x49a30]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r15 + rax*4 + 0x49630]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r15 + rcx*4 + 0x49630]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r15 + rax*4 + 0x49230]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r15 + rax*4 + 0x49e30]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r15 + rax*4 + 0x49a30]
movzx eax, byte [rbp - 0x28]
mov dword [rbp - 0x1c], edx
mov edx, dword [r15 + rcx*4 + 0x49a30]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r15 + rax*4 + 0x49230]
movzx eax, byte [rbp - 0x2b]
xor edx, dword [r15 + rax*4 + 0x49630]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r15 + rax*4 + 0x49e30]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r15 + rcx*4 + 0x49e30]
xor edx, dword [r15 + rax*4 + 0x49a30]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r15 + rax*4 + 0x49630]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r15 + rax*4 + 0x49230]
mov dword [rbp - 0x14], edx
sub r9, 1
jne 0x14000edc5
lea rax, [rbx + 0x28]
mov edx, 4
neg rax
lea r8, [rbp - 0x20]
add r8, rax
lea r9, [rbp - 0x30]
add r9, rax
lea rcx, [rbx + 0x28]
mov eax, dword [r8 + rcx]
xor eax, dword [rcx]
mov dword [r9 + rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x14000eeda
movzx eax, byte [rbp - 0x30]
lea r8, [rbx + 0x18]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x20], al
movzx eax, byte [rbp - 0x23]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x1f], al
movzx eax, byte [rbp - 0x26]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x1e], al
movzx eax, byte [rbp - 0x29]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x1d], al
movzx eax, byte [rbp - 0x2c]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp - 0x2f]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x22]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x25]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x19], al
movzx eax, byte [rbp - 0x28]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x18], al
movzx eax, byte [rbp - 0x2b]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x2e]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp - 0x21]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x24]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp - 0x27]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x2a]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x12], al
movzx eax, byte [rbp - 0x2d]
mov al, byte [rax + r15 + 0x48110]
mov byte [rbp - 0x11], al
lea rax, [rbp - 0x20]
sub r8, rax
lea rax, [r8 + rdx*4]
mov ecx, dword [rbp + rax - 0x20]
xor dword [rbp + rdx*4 - 0x20], ecx
inc rdx
cmp rdx, 4
jl 0x14000efe9
cmp byte [rbx + 1], 0
je 0x14000f018
xor ecx, ecx
mov eax, dword [rbp + rcx - 0x10]
xor dword [rbp + rcx - 0x20], eax
add rcx, 4
cmp rcx, 0x10
jl 0x14000f006
xor r9d, r9d
lea rdx, [rbp - 0x10]
add rdx, r9
lea rax, [r11 + rdx]
mov ecx, dword [rax + rsi]
mov eax, dword [rbp + r9 - 0x20]
mov dword [r14 + r9], eax
add r9, 4
mov dword [rdx], ecx
cmp r9, 0x10
jl 0x14000f01b
add rsi, 0x10
sub r10, 0x10
add r14, 0x10
sub rdi, 1
jne 0x14000ec9e
mov r15, qword [rbp + 0x40]
mov r8d, 0x10
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.140024650
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret