Function at 0x51a490
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x228
mov rax, qword [rcx + 0x18]
mov r12, qword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
mov r13, qword [rcx + 0x28]
mov r11, qword [rcx + 0x38]
mov rbx, qword [rcx + 0x58]
mov r10, qword [rcx + 0x60]
mov rbp, qword [rcx + 0x70]
mov qword [rsp + 0x28], rax
mov rdi, qword [rcx + 0x78]
shl r8, 7
mov qword [rsp + 0xe8], rax
mov rax, qword [rcx + 0x30]
mov rsi, qword [rcx + 0x80]
mov qword [rsp + 0x278], rdx
mov r14, qword [rcx + 0x68]
mov rdx, qword [rcx + 0x90]
mov qword [rsp], rax
mov rax, qword [rcx + 0x48]
add r8, qword [rsp + 0x278]
mov qword [rsp + 0x270], rcx
mov qword [rsp + 0x288], r9
mov r9, qword [rcx + 0x40]
mov qword [rsp + 0x18], rax
mov rax, qword [rcx + 0x50]
mov qword [rsp + 0xd0], r8
lea r8, [rsp + 0xe0]
mov qword [rsp + 0x10], rax
mov rax, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x98]
mov qword [rsp + 0xd8], r8
mov r8, rbx
mov qword [rsp + 0x20], r15
mov rbx, rax
mov r15, rdi
mov rax, rdx
mov qword [rsp + 8], r10
mov rdx, rsi
mov r10, r9
mov rsi, r11
mov r9, qword [rsp + 0x10]
mov r11, rcx
mov rcx, r12
mov rdi, rbp
mov r12, r13
mov rbp, r15
mov r13, rcx
nop dword [rax]
mov rcx, qword [rsp]
mov r15, qword [rsp + 0x20]
mov qword [rsp + 0x100], r12
add r13, qword [rsp + 0x288]
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x108], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0xf8], r15
mov r15, qword [rsp + 0x18]
xor rcx, r11
mov qword [rsp + 0x30], r13
xor rcx, r12
xor rcx, qword [rsp]
mov qword [rsp + 0xe0], r13
xor rcx, rsi
mov r13, qword [rsp + 8]
mov qword [rsp + 0x120], r15
xor rcx, r10
mov qword [rsp + 0x118], r10
xor rcx, r15
mov qword [rsp + 0x138], r13
movabs r15, 0x1bd11bdaa9fc1a22
xor rcx, r9
mov qword [rsp + 0x128], r9
xor rcx, r8
mov qword [rsp + 0x130], r8
xor rcx, r13
mov qword [rsp + 0x140], r14
xor rcx, r14
mov qword [rsp + 0x148], rdi
xor rcx, rdi
mov qword [rsp + 0x150], rbp
xor rcx, rbp
mov qword [rsp + 0x158], rdx
xor rcx, rdx
mov qword [rsp + 0x160], rbx
xor rcx, rbx
mov qword [rsp + 0x168], rax
xor rcx, rax
mov qword [rsp + 0x170], r11
xor rcx, r15
mov r15, qword [rsp + 0x278]
mov qword [rsp + 0x178], rcx
mov rcx, qword [rsp + 0x28]
mov r13, qword [r15]
xor rcx, qword [rsp + 0x30]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xc0], r13
mov rcx, qword [r15 + 8]
mov r15, qword [r15 + 0x10]
mov qword [rsp + 0xc8], rcx
add r12, rcx
mov qword [rsp + 0x50], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x18]
mov qword [rsp + 0x58], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x20]
mov qword [rsp + 0x60], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x28]
mov qword [rsp + 0x68], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x30]
mov qword [rsp + 0x70], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x38]
mov qword [rsp + 0x78], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x40]
mov qword [rsp + 0x80], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x48]
mov qword [rsp + 0x88], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x50]
mov qword [rsp + 0x90], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x58]
mov qword [rsp + 0x98], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x60]
add rdi, qword [rsp + 0x90]
mov rcx, qword [rsp]
add rcx, qword [rsp + 0x50]
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0xa0], r15
mov r15, qword [rsp + 0x278]
add rsi, qword [rsp + 0x58]
add r10, qword [rsp + 0x60]
mov r15, qword [r15 + 0x68]
add r9, qword [rsp + 0x70]
add r8, qword [rsp + 0x78]
add r14, qword [rsp + 0x88]
mov qword [rsp + 0xa8], r15
mov r15, qword [rsp + 0x278]
add rbp, qword [rsp + 0x98]
add rdx, qword [rsp + 0xa0]
mov r15, qword [r15 + 0x70]
mov qword [rsp + 0xb0], r15
mov r15, qword [rsp + 0x278]
mov r15, qword [r15 + 0x78]
mov qword [rsp + 0xb8], r15
mov r15, qword [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x18]
add r15, r13
mov r13, qword [rsp + 8]
add r13, qword [rsp + 0x80]
mov qword [rsp + 8], r13
mov r13, qword [rsp + 0x30]
add r13, qword [rsp + 0xa8]
add rcx, qword [rsp + 0x68]
add r13, rbx
add rax, qword [rsp + 0x28]
add rax, qword [rsp + 0xb0]
mov qword [rsp], 1
add r11, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x18], rax
mov rbx, r11
mov r11, qword [rsp + 0xd8]
mov rax, rbx
nop word [rax + rax]
add r10, rcx
rol rcx, 8
mov rbx, qword [rsp + 8]
add r15, r12
xor rcx, r10
rol r12, 0x18
add rdx, r13
add rdi, rsi
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x10]
xor r12, r15
add rbx, r14
rol r14, 8
mov qword [rsp + 0x20], r12
rol r13, 0x16
add r9, r8
xor r14, rbx
add rcx, rbp
mov r12, qword [rsp + 0x18]
rol rbp, 0x11
xor rbp, rcx
xor r13, rdx
add r15, r14
rol rsi, 0xd
ror r8, 0x11
ror r14, 0x1a
xor rsi, rdi
add r12, rax
xor r8, r9
xor r14, r15
add rdi, r13
add r9, rbp
ror rax, 0x1b
rol r13, 0x13
mov qword [rsp + 8], r14
mov r14, qword [rsp + 0x20]
rol rbp, 0xa
xor rax, r12
xor r13, rdi
xor rbp, r9
add rdx, rsi
rol rsi, 0x12
add r10, rax
mov qword [rsp + 0x10], rbp
mov rbp, qword [rsp + 0x28]
xor rsi, rdx
add rbx, r14
ror rax, 9
ror r14, 0xc
add rcx, r8
xor rax, r10
add r12, rbp
xor r14, rbx
add r10, rsi
ror r8, 0xf
rol rbp, 0x17
add r9, r14
add rdx, rax
ror rsi, 0xd
xor r8, rcx
xor rbp, r12
rol r14, 0xd
xor rsi, r10
add r15, r8
add rdi, rbp
ror r8, 0x1f
mov qword [rsp + 0x20], rsi
rol rbp, 4
mov rsi, r14
ror rax, 0x1e
xor r8, r15
xor rbp, rdi
xor rsi, r9
xor rax, rdx
add r12, r13
ror r13, 0x17
mov qword [rsp + 0x18], rbp
add r15, rax
xor r13, r12
mov rbp, qword [rsp + 0x10]
rol rax, 5
add rdx, r8
add r9, r13
ror r13, 0x10
xor rax, r15
mov r14, qword [rsp + 8]
xor r13, r9
add rbx, rbp
mov qword [rsp + 8], rax
ror rbp, 5
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x28], r13
xor rbp, rbx
add rcx, r14
lea r13, [rsi + r12]
ror rsi, 0x11
add rdi, rbp
rol rbp, 0x14
mov r12, rsi
mov rsi, qword [rsp + 0x20]
add rbx, rax
rol rax, 0x1c
xor r12, r13
xor rbp, rdi
mov qword [rsp + 0x30], r13
rol r14, 0x11
mov r13, rax
lea rax, [rsi + rcx]
rol rsi, 0x10
xor r14, rcx
mov qword [rsp + 0x10], rbp
mov rcx, qword [r11 + 0x28]
mov rbp, rsi
rol r8, 0x19
mov rsi, qword [r11 + 0x58]
add r10, r14
xor r8, rdx
ror r14, 0x17
add r15, qword [r11 + 0x20]
xor r14, r10
add rcx, r12
xor r13, rbx
xor rbp, rax
add rdi, qword [r11 + 0x30]
add rsi, r8
add rbp, qword [r11 + 0x38]
mov qword [rsp + 0x38], rsi
mov rsi, qword [r11 + 0x70]
add r15, rcx
ror rcx, 0x17
add r13, qword [r11 + 0x48]
add r10, qword [r11 + 0x40]
xor rcx, r15
add rdi, rbp
add rsi, rax
add r9, qword [r11 + 0x50]
add rbx, qword [r11 + 0x60]
add r10, r13
mov r8, qword [r11 + 0x68]
mov qword [rsp + 0x40], rsi
rol rbp, 9
ror r13, 0x1b
mov r12, qword [rsp + 0x10]
mov rax, qword [rsp]
xor rbp, rdi
xor r13, r10
add r8, r14
add rdx, qword [r11 + 0x80]
mov rsi, qword [r11 + 0x88]
lea r14, [rax + 1]
mov rax, qword [r11 + 0x10]
add rsi, qword [r11 + 8]
add rbx, r8
mov qword [rsp + 0x48], r14
mov r14, qword [rsp + 0x30]
rol r8, 0xc
add rax, qword [r11 + 0x90]
add rsi, qword [rsp + 0x28]
mov qword [rsp + 0x28], r13
add r14, rax
mov qword [rsp + 0x18], rax
mov rax, qword [r11 + 0x98]
mov qword [rsp + 0x10], r14
mov r14, qword [rsp]
add r12, qword [r11 + 0x78]
add rax, r14
add r14, 2
add rax, qword [rsp + 8]
mov qword [rsp + 8], rcx
mov qword [rsp], r14
mov r14, qword [r11 + 0x18]
mov rcx, qword [rsp + 0x38]
mov qword [r11 + 0xa0], r14
mov qword [rsp + 0x20], r14
mov r14, qword [r11]
add r9, rcx
rol rcx, 0x1f
mov qword [r11 + 0x18], r14
mov r14, rcx
mov rcx, qword [rsp + 0x40]
xor r14, r9
xor r8, rbx
add rdx, rsi
ror rsi, 0x14
lea r13, [rcx + r12]
xor rsi, rdx
ror r12, 0x11
add r15, r8
xor r12, r13
add rdi, rsi
rol r8, 0x10
mov rcx, qword [rsp + 0x10]
ror rsi, 0x1e
xor r8, r15
add r9, r12
ror r12, 8
xor rsi, rdi
xor r12, r9
mov qword [rsp + 0x10], r8
add rcx, rax
mov r8, rsi
mov rsi, qword [rsp + 0x28]
mov qword [rsp + 0x30], r12
add r13, r14
mov r12, qword [rsp + 8]
rol rax, 0x1e
add rdx, rbp
rol r14, 4
xor rax, rcx
ror rbp, 0xb
add rcx, rsi
xor r14, r13
ror rsi, 0x16
add r10, rax
xor rbp, rdx
add rbx, r12
ror rax, 0xd
xor rsi, rcx
ror r12, 0x17
xor rax, r10
xor r12, rbx
add r15, r14
add rdi, rsi
add r10, rbp
rol r14, 0x1f
add rdx, rax
add rcx, r8
ror rsi, 0x14
ror rbp, 0x11
xor r14, r15
add r9, r12
xor rsi, rdi
xor rbp, r10
rol rax, 0x13
mov qword [rsp + 8], r14
xor rax, rdx
mov qword [rsp + 0x28], rsi
mov r14, qword [rsp + 0x10]
mov rsi, r8
mov qword [rsp + 0x38], rbp
ror r12, 0x12
add r15, rax
ror rsi, 0x16
mov rbp, qword [rsp + 0x30]
rol rax, 9
lea r8, [r14 + r13]
xor r12, r9
xor rsi, rcx
mov r13, rax
lea rax, [r12 + rcx]
mov rcx, qword [rsp + 0x28]
add rbx, rbp
ror rbp, 0x14
xor r13, r15
add r9, rsi
ror rsi, 0x1d
xor rbp, rbx
mov qword [rsp + 0x30], r13
rol r14, 0x19
add rdi, rbp
mov r13, rsi
ror rbp, 0x10
xor r14, r8
mov rsi, qword [rsp + 0x38]
xor rbp, rdi
xor r13, r9
add rbx, rcx
rol rcx, 0x1f
mov qword [rsp + 0x40], r13
rol r12, 0x17
add r10, r14
xor rcx, rbx
add rbx, qword [r11 + 0x68]
lea r13, [rsi + r8]
mov r8, qword [rsp + 8]
mov qword [rsp + 8], rbx
xor r12, rax
ror rsi, 0x1b
add r15, qword [r11 + 0x28]
add rdx, r8
xor rsi, r13
ror r14, 0xc
add r13, qword [r11 + 0x78]
rol r8, 0x14
xor r14, r10
mov qword [rsp + 0x10], r13
add r12, qword [r11 + 0x30]
mov rbx, qword [r11 + 0x98]
add rbx, qword [r11]
xor r8, rdx
add rax, rbx
mov rbx, qword [r11 + 0x20]
mov r13, qword [rsp + 0x18]
add rdi, qword [r11 + 0x38]
add rsi, qword [r11 + 0x40]
mov qword [rsp + 0x18], rax
add r10, qword [r11 + 0x48]
mov rax, qword [rsp + 0x20]
add rcx, qword [r11 + 0x50]
add rax, qword [rsp + 0x48]
add r9, qword [r11 + 0x58]
add r8, qword [r11 + 0x60]
add r14, qword [r11 + 0x70]
add rbp, qword [r11 + 0x80]
add rdx, qword [r11 + 0x88]
add r13, qword [rsp + 0x40]
add rax, qword [rsp + 0x30]
mov qword [r11 + 0xa8], rbx
add r11, 0x10
mov rbx, qword [r11 - 8]
mov qword [r11 + 0x10], rbx
cmp qword [rsp], 0x15
jne 0x51a860
mov rbx, qword [rsp + 0x270]
xor rdi, qword [rsp + 0x50]
mov r11, rax
xor rcx, qword [rsp + 0x68]
mov qword [rsp], rdi
xor rsi, qword [rsp + 0x58]
xor r10, qword [rsp + 0x60]
mov qword [rbx + 0x30], rdi
mov rdi, qword [rsp + 8]
xor r9, qword [rsp + 0x70]
mov qword [rbx + 0x48], rcx
xor rdi, qword [rsp + 0x80]
xor r8, qword [rsp + 0x78]
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x60], rdi
xor r15, qword [rsp + 0xc0]
mov qword [rsp + 8], rdi
xor r12, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov qword [rbx + 0x20], r15
xor r14, qword [rsp + 0x88]
xor rdi, qword [rsp + 0x90]
mov qword [rbx + 0x28], r12
xor rbp, qword [rsp + 0x98]
mov qword [rbx + 0x40], r10
mov qword [rsp + 0x18], rcx
mov qword [rbx + 0x50], r9
mov qword [rbx + 0x58], r8
mov qword [rbx + 0x68], r14
mov qword [rbx + 0x70], rdi
mov qword [rbx + 0x78], rbp
mov qword [rsp + 0x20], r15
xor rdx, qword [rsp + 0xa0]
mov qword [rbx + 0x80], rdx
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x270]
xor rax, qword [rsp + 0xb0]
xor rbx, r13
xor r11, qword [rsp + 0xb8]
sub qword [rsp + 0x278], 0xffffffffffffff80
mov qword [rcx + 0x88], rbx
mov r13, qword [rsp + 0xe0]
mov qword [rcx + 0x90], rax
mov qword [rcx + 0x98], r11
movabs rcx, 0xbfffffffffffffff
and rcx, qword [rsp + 0xe8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0xd0]
cmp qword [rsp + 0x278], rcx
jne 0x51a588
mov rax, qword [rsp + 0x270]
mov rdx, qword [rsp + 0x28]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], rdx
add rsp, 0x228
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret