Function at 0x140046170
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rbx, rdx
mov r15, rcx
xor edi, edi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov cl, 1
call fcn.14001ce70
mov qword [rbp - 0x10], rax
lea edx, [rdi + 0x24]
lea rcx, [rbp - 0x28]
call fcn.1400bf580
nop
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov cl, 1
call fcn.14001ce70
mov qword [rbp - 0x30], rax
lea edx, [rdi + 0x24]
lea rcx, [rbp - 0x48]
call fcn.1400bf580
nop
mov r13, qword [rbp - 0x28]
mov rdx, r13
sub rbx, r13
mov r12d, 4
mov r8d, r12d
nop
mov ecx, dword [rbx + rdx]
mov eax, ecx
ror eax, 8
rol ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
mov dword [rdx], ecx
lea rdx, [rdx + 4]
dec r8
jne 0x140046200
mov rsi, rdi
lea rbx, [r13 + 4]
mov rax, r13
mov rcx, qword [rbp - 0x48]
sub rax, rcx
mov qword [rbp + 0x40], rax
lea rdi, [rax - 0x60]
lea r14, [rcx + 0x70]
nop dword [rax]
mov eax, dword [rbx + 8]
rol eax, 8
mov rcx, rsi
mov edx, 0x1000000
shl edx, cl
xor edx, eax
xor edx, dword [rbx - 4]
mov dword [rbx + 0xc], edx
xor edx, dword [rbx]
mov dword [rbx + 0x10], edx
mov eax, dword [rbx + 4]
xor eax, edx
mov dword [rbx + 0x14], eax
xor eax, dword [rbx + 8]
mov dword [rbx + 0x18], eax
mov rax, r14
mov r8, r12
mov edx, dword [rax + rdi]
mov dword [rax], edx
lea rax, [rax + 4]
dec r8
jne 0x140046271
lea rcx, [rbx - 4]
call fcn.140046420
inc rsi
add rdi, 0x20
sub r14, 0x10
add rbx, 0x10
cmp rsi, 8
jne 0x140046240
mov r11, r13
mov rax, qword [rbp + 0x40]
sub rax, 0xffffffffffffff80
mov r14, qword [rbp - 0x48]
sub r14, r13
mov edi, 0x10
sub rdi, r13
mov rsi, r13
neg rsi
mov r13, rax
xor r10d, r10d
lea rbx, [r14 + r11]
nop word [rax + rax]
mov r8, qword [r15 + 0x48]
mov rax, r10
and eax, 3
mov ecx, 3
sub rcx, rax
shl rcx, 3
lea r9, [rsi + r11]
mov edx, dword [r11]
shr edx, cl
lea rax, [r9 + r8]
mov byte [rax + r10], dl
mov rax, qword [r15 + 0x48]
lea r8, [rdi + r11]
mov edx, dword [rbx + r13]
shr edx, cl
add rax, r8
mov byte [rax + r10], dl
mov rax, qword [r15 + 0x68]
mov edx, dword [rbx]
shr edx, cl
add rax, r9
mov byte [rax + r10], dl
mov rax, qword [r15 + 0x68]
mov edx, dword [r11]
shr edx, cl
add rax, r8
mov byte [rax + r10], dl
inc r10
cmp r10, 4
jne 0x1400462d0
add r11, r10
dec r12
jne 0x1400462c0
mov qword [rbp + 0x58], 0x1c
mov rax, qword [r15 + 0x10]
mov qword [rbp + 0x40], rax
lea r8, [rbp + 0x40]
lea rcx, [rbp + 0x58]
cmp rax, 0x1c
cmovae r8, rcx
mov r8, qword [r8]
lea r8, [r8*4]
mov r13, qword [rbp - 0x28]
lea rdx, [r13 + 0x10]
mov rcx, qword [r15 + 8]
call fcn.140298710
mov qword [rbp + 0x58], 0x1c
mov rax, qword [r15 + 0x30]
mov qword [rbp + 0x40], rax
lea r8, [rbp + 0x40]
lea rcx, [rbp + 0x58]
cmp rax, 0x1c
cmovae r8, rcx
mov r8, qword [r8]
lea r8, [r8*4]
mov rbx, qword [rbp - 0x48]
lea rdx, [rbx + 0x10]
mov rcx, qword [r15 + 0x28]
call fcn.140298710
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400463dd
test rbx, rbx
je 0x1400463dd
mov r8, qword [rbp - 0x38]
test r8, r8
je 0x1400463dd
mov rax, qword [rcx]
lea r8, [r8*4]
mov rdx, rbx
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140046405
test r13, r13
je 0x140046405
mov r8, qword [rbp - 0x18]
test r8, r8
je 0x140046405
mov rax, qword [rcx]
lea r8, [r8*4]
mov rdx, r13
call qword [rax + 8]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret