Function at 0x140049e10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r13
push r14
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
mov rax, r9
cqo
mov rdi, r8
and edx, 0xf
mov r13, rcx
add rax, rdx
mov rsi, rax
and eax, 0xf
sub rax, rdx
sar rsi, 4
mov r14, rax
test rax, rax
je 0x140049e60
test rsi, rsi
jne 0x140049e5d
xor eax, eax
jmp 0x14004a04c
dec rsi
mov qword [rsp + 0x70], r12
lea r12, [rcx + 8]
mov qword [rsp + 0x78], r15
mov r15, qword [rbp + 0x50]
mov r9, r15
test rsi, rsi
je 0x140049eca
nop word [rax + rax]
mov eax, dword [rbx]
lea r8, [rbp - 0x10]
xor eax, dword [r9]
mov rcx, r12
mov edx, dword [r13 + 4]
mov dword [rbp - 0x10], eax
mov eax, dword [r9 + 4]
xor eax, dword [rbx + 4]
mov dword [rbp - 0xc], eax
mov eax, dword [r9 + 8]
xor eax, dword [rbx + 8]
mov dword [rbp - 8], eax
mov eax, dword [r9 + 0xc]
mov r9, rdi
xor eax, dword [rbx + 0xc]
mov dword [rbp - 4], eax
call fcn.140048530
mov r9, rdi
add rbx, 0x10
add rdi, 0x10
sub rsi, 1
jne 0x140049e80
test r14, r14
je 0x14004a020
mov ecx, dword [rbx + 4]
xor ecx, dword [r9 + 4]
mov edx, dword [rbx + 8]
xor edx, dword [r9 + 8]
mov r8d, dword [rbx + 0xc]
xor r8d, dword [r9 + 0xc]
mov eax, dword [rbx]
xor eax, dword [r9]
lea r9, [rbp - 0x20]
mov dword [rbp - 0xc], ecx
mov rcx, r12
mov dword [rbp - 8], edx
mov edx, dword [r13 + 4]
mov dword [rbp - 4], r8d
lea r8, [rbp - 0x10]
mov dword [rbp - 0x10], eax
call fcn.140048530
xor ecx, ecx
test r14, r14
je 0x140049fe4
cmp r14, 0x10
jb 0x140049fae
lea rdx, [r14 + 0xf]
add rdx, rdi
lea r9, [rdi + 0x10]
lea r10, [rbp + r14 - 0x21]
cmp r9, r10
ja 0x140049f42
lea rax, [rbp - 0x20]
cmp rdx, rax
jae 0x140049fae
lea r8, [r14 + 0xf]
add r8, rbx
lea rax, [rbx + 0x10]
cmp r9, r8
ja 0x140049f57
cmp rdx, rax
jae 0x140049fae
lea rdx, [rbp - 0x20]
cmp rdx, r8
ja 0x140049f65
cmp r10, rax
jae 0x140049fae
mov rax, r14
mov rdx, r14
and eax, 0xf
sub rdx, rax
mov r8, rbx
sub r8, rdi
nop word [rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x20]
lea rax, [rdi + rcx]
movdqu xmm0, xmmword [rax + r8 + 0x10]
movdqu xmmword [rax + 0x10], xmm1
pxor xmm0, xmm1
movdqu xmmword [rbp + rcx - 0x20], xmm0
add rcx, 0x10
cmp rcx, rdx
jb 0x140049f80
cmp rcx, r14
jae 0x140049fe4
lea rdx, [rbp - 0x20]
mov r10, rdi
sub r10, rdx
sub rbx, rdi
add r10, 0x10
nop
lea r9, [rbp - 0x20]
add r9, rcx
inc rcx
lea rdx, [r9 + r10]
movzx r8d, byte [r9]
movzx eax, r8b
xor al, byte [rdx + rbx]
mov byte [r9], al
mov byte [rdx], r8b
cmp rcx, r14
jb 0x140049fc0
mov edx, dword [r13 + 4]
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x20]
mov rcx, r12
call fcn.140048530
mov eax, dword [rbp - 0x20]
lea r9, [rbp - 0x20]
mov dword [rdi], eax
mov eax, dword [rbp - 0x1c]
mov dword [rdi + 4], eax
mov eax, dword [rbp - 0x18]
mov dword [rdi + 8], eax
mov eax, dword [rbp - 0x14]
mov dword [rdi + 0xc], eax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r9]
mov r12, qword [rsp + 0x70]
mov dword [r15], eax
mov eax, dword [r9 + 4]
mov dword [r15 + 4], eax
mov eax, dword [r9 + 8]
mov dword [r15 + 8], eax
mov eax, dword [r9 + 0xc]
mov dword [r15 + 0xc], eax
mov rax, qword [rbp + 0x48]
mov r15, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret