Function at 0x51e560
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor eax, eax
mov qword [rsp + 0x80], rcx
mov rdx, rcx
nop dword [rax]
mov rcx, qword [rdx + rax*8 + 0xa0]
xor qword [rdx + rax*8 + 0x20], rcx
add rax, 1
cmp rax, 8
jne 0x51e580
lea rax, [0x008b51c0]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x80]
add rax, 0x30
mov qword [rsp], rax
mov rax, qword [rsp + 0x80]
add rax, 0xb0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x10], rax
nop word [rax + rax]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 8]
mov qword [rsp + 0x20], r15
mov rcx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x70]
mov rdi, qword [r15 + 0x40]
mov rsi, qword [r15 + 0x50]
mov r9, rcx
mov qword [rsp + 0x18], rax
mov r8, rax
mov rax, qword [r15 + 0x20]
not r9
not r8
mov rbx, rdi
mov rdx, qword [r15 + 0x30]
mov r10, r9
mov qword [r15 + 0x60], r9
mov r13, rax
not rbx
mov qword [r15 + 0x70], r8
and r10, rdi
and rbx, qword [r14]
mov r11, rsi
xor rbx, qword [r15]
not r13
mov r12, qword [r15 + 0x30]
not r11
mov qword [r15], rbx
mov rbp, rbx
xor rbx, r10
mov r10, r8
and r11, qword [r14 + 0x10]
and r10, rsi
xor r11, qword [r15 + 0x10]
and r13, rdi
mov qword [r15 + 0x10], r11
and rdx, r11
xor rcx, r13
xor r11, r10
mov r10, rdi
xor r9, r13
and rcx, rbx
not r12
and r10, rbx
and r12, rsi
xor rcx, rdi
mov rdi, r9
xor r10, rax
xor r8, r12
and rbp, rax
mov rax, rsi
or rdi, r10
and rax, r11
xor rax, qword [r15 + 0x30]
xor r12, qword [rsp + 0x18]
xor rbx, rdi
mov rdi, r8
and r12, r11
xor rbp, qword [r14]
or rdi, rax
xor rdx, qword [r14 + 0x10]
xor rsi, r12
xor r11, rdi
mov rdi, r10
and rdi, rcx
mov r12, r11
xor r9, rdi
mov rdi, rbp
and rdi, rbx
xor rcx, rbp
and r11, rdx
xor rdx, rsi
xor r10, rdi
mov rdi, rax
and rax, rsi
xor rdx, rbx
xor r8, rax
xor r12, r10
xor rdi, rcx
xor rdx, r9
xor r8, rbx
xor r11, rdi
xor r9, r12
xor r10, rdx
xor rcx, r8
lea rax, [r12 + r12]
xor rbx, r11
mov qword [r15 + 0x20], r10
movabs rsi, 0xaaaaaaaaaaaaaaaa
xor rcx, r12
shr r12, 1
mov qword [r15], rbx
movabs rdi, 0x5555555555555555
and rax, rsi
mov qword [r15 + 0x40], rcx
and r12, rdi
mov qword [r15 + 0x60], r9
or r12, rax
lea rax, [r11 + r11]
shr r11, 1
and rax, rsi
and r11, rdi
mov qword [r15 + 0x10], r12
or r11, rax
lea rax, [rdx + rdx]
shr rdx, 1
and rax, rsi
and rdx, rdi
mov qword [r15 + 0x30], r11
or rdx, rax
lea rax, [r8 + r8]
shr r8, 1
and rax, rsi
and r8, rdi
mov qword [r15 + 0x50], rdx
add r14, 8
or r8, rax
add r15, 8
mov qword [r15 + 0x68], r8
cmp r15, qword [rsp]
jne 0x51e5ef
mov rax, qword [rsp + 8]
mov r15, qword [rsp + 0x10]
lea r14, [rax + 0x20]
mov rcx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x70]
mov rdi, qword [r15 + 0x40]
mov rsi, qword [r15 + 0x50]
mov r9, rcx
mov qword [rsp + 0x18], rax
mov r8, rax
mov rax, qword [r15 + 0x20]
not r9
not r8
mov rbx, rdi
mov rdx, qword [r15 + 0x30]
mov r10, r9
mov qword [r15 + 0x60], r9
mov r13, rax
not rbx
mov qword [r15 + 0x70], r8
and r10, rdi
and rbx, qword [r14]
mov r11, rsi
xor rbx, qword [r15]
not r13
mov r12, qword [r15 + 0x30]
not r11
mov qword [r15], rbx
mov rbp, rbx
xor rbx, r10
mov r10, r8
and r11, qword [r14 + 0x10]
and r10, rsi
xor r11, qword [r15 + 0x10]
and r13, rdi
mov qword [r15 + 0x10], r11
and rdx, r11
xor rcx, r13
xor r11, r10
mov r10, rdi
xor r9, r13
and rcx, rbx
not r12
and r10, rbx
and r12, rsi
xor rcx, rdi
mov rdi, r9
xor r10, rax
xor r8, r12
and rbp, rax
mov rax, rsi
or rdi, r10
and rax, r11
xor rax, qword [r15 + 0x30]
xor r12, qword [rsp + 0x18]
xor rbx, rdi
mov rdi, r8
and r12, r11
xor rbp, qword [r14]
or rdi, rax
xor rdx, qword [r14 + 0x10]
xor rsi, r12
xor r11, rdi
mov rdi, r10
and rdi, rcx
mov r12, r11
xor r9, rdi
mov rdi, rbp
and rdi, rbx
xor rcx, rbp
and r11, rdx
xor rdx, rsi
xor r10, rdi
mov rdi, rax
and rax, rsi
xor rdx, rbx
xor r8, rax
xor r12, r10
xor rdi, rcx
xor rdx, r9
xor r8, rbx
xor r11, rdi
xor r9, r12
xor r10, rdx
xor rcx, r8
xor rbx, r11
mov qword [r15 + 0x20], r10
movabs rsi, 0xcccccccccccccccc
movabs rdi, 0x3333333333333333
xor rcx, r12
lea rax, [r12*4]
shr r12, 2
and rax, rsi
and r12, rdi
mov qword [r15], rbx
or r12, rax
lea rax, [r11*4]
shr r11, 2
mov qword [r15 + 0x40], rcx
and rax, rsi
and r11, rdi
mov qword [r15 + 0x60], r9
or r11, rax
lea rax, [rdx*4]
shr rdx, 2
mov qword [r15 + 0x10], r12
and rax, rsi
and rdx, rdi
mov qword [r15 + 0x30], r11
or rdx, rax
lea rax, [r8*4]
shr r8, 2
and rax, rsi
and r8, rdi
mov qword [r15 + 0x50], rdx
add r14, 8
or r8, rax
add r15, 8
mov qword [r15 + 0x68], r8
cmp r15, qword [rsp]
jne 0x51e790
mov rax, qword [rsp + 8]
mov r15, qword [rsp + 0x10]
lea r14, [rax + 0x40]
mov rcx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x70]
mov rdi, qword [r15 + 0x40]
mov rsi, qword [r15 + 0x50]
mov r9, rcx
mov qword [rsp + 0x18], rax
mov r8, rax
mov rax, qword [r15 + 0x20]
not r9
not r8
mov rbx, rdi
mov rdx, qword [r15 + 0x30]
mov r10, r9
mov qword [r15 + 0x60], r9
mov r13, rax
not rbx
mov qword [r15 + 0x70], r8
and r10, rdi
and rbx, qword [r14]
mov r11, rsi
xor rbx, qword [r15]
not r13
mov r12, qword [r15 + 0x30]
not r11
mov qword [r15], rbx
mov rbp, rbx
xor rbx, r10
mov r10, r8
and r11, qword [r14 + 0x10]
and r10, rsi
xor r11, qword [r15 + 0x10]
and r13, rdi
mov qword [r15 + 0x10], r11
and rdx, r11
xor rcx, r13
xor r11, r10
mov r10, rdi
xor r9, r13
and rcx, rbx
not r12
and r10, rbx
and r12, rsi
xor rcx, rdi
mov rdi, r9
xor r10, rax
xor r8, r12
and rbp, rax
mov rax, rsi
or rdi, r10
and rax, r11
xor rax, qword [r15 + 0x30]
xor r12, qword [rsp + 0x18]
xor rbx, rdi
mov rdi, r8
and r12, r11
xor rbp, qword [r14]
or rdi, rax
xor rdx, qword [r14 + 0x10]
xor rsi, r12
xor r11, rdi
mov rdi, r10
and rdi, rcx
mov r12, r11
xor r9, rdi
mov rdi, rbp
and rdi, rbx
xor rcx, rbp
and r11, rdx
xor rdx, rsi
xor r10, rdi
mov rdi, rax
and rax, rsi
xor rdx, rbx
xor rdi, rcx
xor r8, rax
xor r12, r10
xor rdx, r9
xor r8, rbx
xor r11, rdi
mov rax, r12
xor r9, r12
xor rbx, r11
xor rcx, r8
shl rax, 4
xor r10, rdx
movabs rsi, 0xf0f0f0f0f0f0f0f0
xor rcx, r12
mov qword [r15], rbx
shr r12, 4
movabs rbx, 0xf0f0f0f0f0f0f0f
and rax, rsi
mov qword [r15 + 0x20], r10
and r12, rbx
mov qword [r15 + 0x40], rcx
or r12, rax
mov rax, r11
shr r11, 4
mov qword [r15 + 0x60], r9
shl rax, 4
and r11, rbx
mov qword [r15 + 0x10], r12
and rax, rsi
or r11, rax
mov rax, rdx
shr rdx, 4
shl rax, 4
and rdx, rbx
mov qword [r15 + 0x30], r11
and rax, rsi
or rdx, rax
mov rax, r8
shr r8, 4
add r15, 8
shl rax, 4
and r8, rbx
mov qword [r15 + 0x48], rdx
add r14, 8
and rax, rsi
or r8, rax
mov qword [r15 + 0x68], r8
cmp r15, qword [rsp]
jne 0x51e945
mov rax, qword [rsp + 8]
mov r15, qword [rsp + 0x10]
lea r14, [rax + 0x60]
mov rcx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x70]
mov rdi, qword [r15 + 0x40]
mov rsi, qword [r15 + 0x50]
mov r9, rcx
mov qword [rsp + 0x18], rax
mov r8, rax
mov rax, qword [r15 + 0x20]
not r9
not r8
mov rbx, rdi
mov rdx, qword [r15 + 0x30]
mov r10, r9
mov qword [r15 + 0x60], r9
mov r13, rax
not rbx
mov qword [r15 + 0x70], r8
and r10, rdi
and rbx, qword [r14]
mov r11, rsi
xor rbx, qword [r15]
not r13
mov r12, qword [r15 + 0x30]
not r11
mov qword [r15], rbx
mov rbp, rbx
xor rbx, r10
mov r10, r8
and r11, qword [r14 + 0x10]
and r10, rsi
xor r11, qword [r15 + 0x10]
and r13, rdi
mov qword [r15 + 0x10], r11
and rdx, r11
xor rcx, r13
xor r11, r10
mov r10, rdi
xor r9, r13
and rcx, rbx
not r12
and r10, rbx
and r12, rsi
xor rcx, rdi
mov rdi, r9
xor r10, rax
xor r8, r12
and rbp, rax
mov rax, rsi
or rdi, r10
and rax, r11
xor rax, qword [r15 + 0x30]
xor r12, qword [rsp + 0x18]
xor rbx, rdi
mov rdi, r8
and r12, r11
xor rbp, qword [r14]
or rdi, rax
xor rdx, qword [r14 + 0x10]
xor rsi, r12
xor r11, rdi
mov rdi, r10
and rdi, rcx
mov r12, r11
xor r9, rdi
mov rdi, rbp
and rdi, rbx
xor rcx, rbp
and r11, rdx
xor rdx, rsi
xor r10, rdi
mov rdi, rax
and rax, rsi
xor rdx, rbx
xor r8, rax
xor r12, r10
xor rdi, rcx
xor rdx, r9
xor r8, rbx
mov rax, r12
xor r11, rdi
xor r9, r12
xor rcx, r8
shl rax, 8
xor rbx, r11
xor r10, rdx
movabs rdi, 0xff00ff00ff00ff
xor rcx, r12
shr r12, 8
mov qword [r15], rbx
mov qword [r15 + 0x40], rcx
and r12, rdi
movabs rcx, 0xff00ff00ff00ff00
and rax, rcx
mov qword [r15 + 0x20], r10
or r12, rax
mov rax, r11
shr r11, 8
mov qword [r15 + 0x60], r9
shl rax, 8
and r11, rdi
mov qword [r15 + 0x10], r12
and rax, rcx
or r11, rax
mov rax, rdx
shr rdx, 8
shl rax, 8
and rdx, rdi
mov qword [r15 + 0x30], r11
and rax, rcx
or rdx, rax
mov rax, r8
shr r8, 8
add r15, 8
shl rax, 8
and r8, rdi
mov qword [r15 + 0x48], rdx
add r14, 8
and rax, rcx
or r8, rax
mov qword [r15 + 0x68], r8
cmp r15, qword [rsp]
jne 0x51eaf6
mov rax, qword [rsp + 8]
mov r15, qword [rsp + 0x10]
lea r14, [rax + 0x80]
mov rcx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x70]
mov rdi, qword [r15 + 0x40]
mov rsi, qword [r15 + 0x50]
mov r9, rcx
mov qword [rsp + 0x18], rax
mov r8, rax
mov rax, qword [r15 + 0x20]
not r9
not r8
mov rbx, rdi
mov rdx, qword [r15 + 0x30]
mov r10, r9
mov qword [r15 + 0x60], r9
mov r13, rax
not rbx
mov qword [r15 + 0x70], r8
and r10, rdi
and rbx, qword [r14]
mov r11, rsi
xor rbx, qword [r15]
not r13
mov r12, qword [r15 + 0x30]
not r11
mov qword [r15], rbx
mov rbp, rbx
xor rbx, r10
mov r10, r8
and r11, qword [r14 + 0x10]
and r10, rsi
xor r11, qword [r15 + 0x10]
and r13, rdi
mov qword [r15 + 0x10], r11
and rdx, r11
xor rcx, r13
xor r11, r10
mov r10, rdi
xor r9, r13
and rcx, rbx
not r12
and r10, rbx
and r12, rsi
xor rcx, rdi
mov rdi, r9
xor r10, rax
xor r8, r12
and rbp, rax
mov rax, rsi
or rdi, r10
and rax, r11
xor rax, qword [r15 + 0x30]
xor r12, qword [rsp + 0x18]
xor rbx, rdi
mov rdi, r8
and r12, r11
xor rbp, qword [r14]
or rdi, rax
xor rdx, qword [r14 + 0x10]
xor rsi, r12
xor r11, rdi
mov rdi, r10
and rdi, rcx
mov r12, r11
xor r9, rdi
mov rdi, rbp
and rdi, rbx
xor rcx, rbp
and r11, rdx
xor rdx, rsi
xor r10, rdi
mov rdi, rax
and rax, rsi
xor rdx, rbx
xor rdi, rcx
xor r8, rax
xor r12, r10
xor rdx, r9
xor r8, rbx
xor r11, rdi
mov rax, r12
xor r9, r12
xor rbx, r11
xor rcx, r8
shl rax, 0x10
xor r10, rdx
movabs rsi, 0xffff0000ffff0000
xor rcx, r12
mov qword [r15], rbx
shr r12, 0x10
movabs rbx, 0xffff0000ffff
and rax, rsi
mov qword [r15 + 0x20], r10
and r12, rbx
mov qword [r15 + 0x40], rcx
or r12, rax
mov rax, r11
shr r11, 0x10
mov qword [r15 + 0x60], r9
shl rax, 0x10
and r11, rbx
mov qword [r15 + 0x10], r12
and rax, rsi
or r11, rax
mov rax, rdx
shr rdx, 0x10
shl rax, 0x10
and rdx, rbx
mov qword [r15 + 0x30], r11
and rax, rsi
or rdx, rax
mov rax, r8
shr r8, 0x10
add r15, 8
shl rax, 0x10
and r8, rbx
mov qword [r15 + 0x48], rdx
add r14, 8
and rax, rsi
or r8, rax
mov qword [r15 + 0x68], r8
cmp r15, qword [rsp]
jne 0x51ecaa
mov rax, qword [rsp + 8]
mov r15, qword [rsp + 0x10]
lea r14, [rax + 0xa0]
mov rax, qword [r15 + 0x60]
mov r13, qword [r15 + 0x70]
mov rsi, qword [r15 + 0x40]
mov rbx, qword [r15 + 0x50]
mov r8, rax
mov qword [rsp + 0x18], rax
mov rcx, r13
mov rax, qword [r15 + 0x20]
not r8
not rcx
mov r11, rsi
mov rdx, qword [r15 + 0x30]
mov r9, r8
mov qword [r15 + 0x60], r8
mov r12, rax
not r11
mov qword [r15 + 0x70], rcx
and r9, rsi
and r11, qword [r14]
mov r10, rbx
xor r11, qword [r15]
not r12
mov rbp, qword [r15 + 0x30]
not r10
mov qword [r15], r11
mov rdi, r11
xor r11, r9
mov r9, rcx
and r10, qword [r14 + 0x10]
and r9, rbx
xor r10, qword [r15 + 0x10]
and r12, rsi
mov qword [r15 + 0x10], r10
xor r8, r12
and rdx, r10
xor r12, qword [rsp + 0x18]
xor r10, r9
mov r9, rsi
and r12, r11
not rbp
and r9, r11
and rbp, rbx
xor r12, rsi
mov rsi, r8
xor r9, rax
xor rcx, rbp
and rdi, rax
mov rax, rbx
or rsi, r9
and rax, r10
xor rax, qword [r15 + 0x30]
xor rbp, r13
xor r11, rsi
mov rsi, rcx
and rbp, r10
xor rdi, qword [r14]
or rsi, rax
xor rdx, qword [r14 + 0x10]
xor rbx, rbp
xor r10, rsi
mov rsi, r9
and rsi, r12
mov rbp, r10
xor r8, rsi
mov rsi, rdi
and rsi, r11
xor r12, rdi
and r10, rdx
xor rdx, rbx
xor r9, rsi
mov rsi, rax
and rax, rbx
xor rdx, r11
xor rcx, rax
xor rsi, r12
xor rbp, r9
xor rdx, r8
xor rcx, r11
xor r10, rsi
xor r9, rdx
xor r8, rbp
xor r12, rcx
xor r11, r10
rol rdx, 0x20
mov qword [r15 + 0x20], r9
xor r12, rbp
rol r10, 0x20
mov qword [r15], r11
add r14, 8
rol rbp, 0x20
rol rcx, 0x20
mov qword [r15 + 0x40], r12
add r15, 8
mov qword [r15 + 0x58], r8
mov qword [r15 + 8], rbp
mov qword [r15 + 0x28], r10
mov qword [r15 + 0x48], rdx
mov qword [r15 + 0x68], rcx
cmp r15, qword [rsp]
jne 0x51ee5e
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x20]
lea r15, [rax + 0xc0]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x40]
mov rbx, qword [rbp + 0x50]
mov r8, rax
mov rcx, rdx
mov r9, qword [rbp + 0x30]
mov qword [rsp + 0x18], rdx
not r8
not rcx
mov r11, rsi
mov r10, rbx
mov qword [rbp + 0x60], r8
not r11
not r10
mov rdx, qword [rbp + 0x20]
mov qword [rbp + 0x70], rcx
and r11, qword [r15]
xor r11, qword [rbp]
mov r13, rdx
mov r12, qword [rbp + 0x30]
mov qword [rbp], r11
and r10, qword [r15 + 0x10]
mov rdi, r11
not r13
xor r10, qword [rbp + 0x10]
and r13, rsi
not r12
and rdi, rdx
mov qword [rbp + 0x10], r10
mov r14, qword [r15 + 0x10]
and r9, r10
xor rax, r13
and r12, rbx
xor rdi, qword [r15]
xor r14, r9
mov r9, r8
xor r8, r13
and r9, rsi
xor r11, r9
mov r9, rcx
xor rcx, r12
xor r12, qword [rsp + 0x18]
and r9, rbx
and rax, r11
xor r10, r9
mov r9, rsi
xor rsi, rax
mov rax, r8
and r9, r11
and r12, r10
xor r9, rdx
mov rdx, rbx
xor rbx, r12
or rax, r9
and rdx, r10
xor rdx, qword [rbp + 0x30]
xor r11, rax
mov rax, rcx
or rax, rdx
xor r10, rax
mov rax, r9
and rax, rsi
mov r12, r10
xor r8, rax
mov rax, rdi
and rax, r11
xor rsi, rdi
and r10, r14
add rbp, 8
xor r9, rax
mov rax, rdx
and rdx, rbx
add r15, 8
xor rax, rsi
xor rcx, rdx
xor r12, r9
xor r10, rax
mov rax, r14
xor rcx, r11
mov qword [rbp + 8], r12
xor rax, rbx
xor rsi, rcx
mov qword [rbp + 0x28], r10
xor rax, r11
xor rsi, r12
xor r11, r10
mov qword [rbp + 0x68], rcx
xor rax, r8
xor r8, r12
mov qword [rbp - 8], r11
xor r9, rax
mov qword [rbp + 0x48], rax
mov rax, qword [rsp]
mov qword [rbp + 0x18], r9
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x58], r8
cmp rbp, rax
jne 0x51efbe
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
add rax, 0x20
mov qword [rax - 0x20], rcx
mov qword [rax - 0x18], rdx
cmp qword [rsp + 0x28], rax
jne 0x51f109
add qword [rsp + 8], 0xe0
mov rax, qword [rsp + 8]
lea rcx, [0x008b5700]
cmp rax, rcx
jne 0x51e5e0
mov rcx, qword [rsp + 0x80]
xor edx, edx
nop dword [rax + rax]
lea rax, [rdx + 8]
mov r8, rdx
and r8d, 1
and rax, 0xfffffffffffffffe
add rax, r8
mov r8, qword [rcx + rdx*8 + 0xa0]
add rdx, 1
xor qword [rcx + rax*8 + 0x20], r8
cmp rdx, 8
jne 0x51f150
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret