Function at 0x140279060
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r15
sub rsp, 0x60
cmp qword [rdx + 8], 0x20
mov r15, rcx
jne 0x140279559
mov qword [rax + 0x20], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
lea rsi, [r15 + 0x10]
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
lea r14, [0x140325d08]
mov rax, qword [rdx]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], 4
mov rcx, qword [rax + 0x18]
mov rbp, qword [rax + 8]
mov r10, qword [rax]
mov r13, qword [rax + 0x10]
lea rax, [r15 + 0x30]
mov qword [rsi], rbp
mov rsi, rcx
mov qword [r15 + 8], r10
mov qword [r15 + 0x18], r13
mov qword [r15 + 0x20], rcx
nop dword [rax + rax]
mov r15d, 4
lea r12, [0x140305d00]
nop dword [rax]
mov r8, r10
mov rbx, r10
xor r8, qword [r14 - 8]
mov r11, rbp
xor r11, qword [r14]
mov rdi, rbp
movzx ecx, r8b
add rcx, rcx
mov r9, qword [r12 + rcx*8]
mov r10, qword [r12 + rcx*8 + 8]
mov rcx, r8
shr rcx, 8
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x10
xor r9, qword [r12 + rdx*8 + 0x1000]
xor r10, qword [r12 + rdx*8 + 0x1008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x18
xor r9, qword [r12 + rdx*8 + 0x2000]
xor r10, qword [r12 + rdx*8 + 0x2008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x20
xor r9, qword [r12 + rdx*8 + 0x3000]
xor r10, qword [r12 + rdx*8 + 0x3008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x28
xor r9, qword [r12 + rdx*8 + 0x4000]
xor r10, qword [r12 + rdx*8 + 0x4008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x30
shr r8, 0x38
add r8, r8
xor r9, qword [r12 + rdx*8 + 0x5000]
xor r10, qword [r12 + rdx*8 + 0x5008]
movzx edx, cl
add rdx, rdx
movzx ecx, r11b
add rcx, rcx
xor r9, qword [r12 + rdx*8 + 0x6000]
xor r10, qword [r12 + rdx*8 + 0x6008]
xor r9, qword [r12 + r8*8 + 0x7000]
xor r9, qword [r12 + rcx*8 + 0x8000]
xor r10, qword [r12 + r8*8 + 0x7008]
xor r10, qword [r12 + rcx*8 + 0x8008]
mov rcx, r11
shr rcx, 8
movzx edx, cl
mov rcx, r11
add rdx, rdx
shr rcx, 0x10
xor r9, qword [r12 + rdx*8 + 0x9000]
xor r10, qword [r12 + rdx*8 + 0x9008]
movzx edx, cl
mov rcx, r11
add rdx, rdx
shr rcx, 0x18
xor r9, qword [r12 + rdx*8 + 0xa000]
xor r10, qword [r12 + rdx*8 + 0xa008]
movzx edx, cl
mov rcx, r11
add rdx, rdx
shr rcx, 0x20
xor r9, qword [r12 + rdx*8 + 0xb000]
xor r10, qword [r12 + rdx*8 + 0xb008]
movzx edx, cl
mov rcx, r11
add rdx, rdx
xor r9, qword [r12 + rdx*8 + 0xc000]
xor r10, qword [r12 + rdx*8 + 0xc008]
shr rcx, 0x28
movzx edx, cl
add rdx, rdx
mov rcx, r11
shr rcx, 0x30
shr r11, 0x38
add r11, r11
xor r10, qword [r12 + rdx*8 + 0xd008]
xor r9, qword [r12 + rdx*8 + 0xd000]
movzx edx, cl
add rdx, rdx
xor r10, qword [r12 + rdx*8 + 0xe008]
xor r9, qword [r12 + rdx*8 + 0xe000]
xor r10, qword [r12 + r11*8 + 0xf008]
xor r9, qword [r12 + r11*8 + 0xf000]
xor r10, rsi
mov rsi, r10
xor r9, r13
mov r8, r9
mov r13, r9
xor r8, qword [r14 + 8]
mov r9, r10
xor r9, qword [r14 + 0x10]
movzx ecx, r8b
add rcx, rcx
mov r10, qword [r12 + rcx*8]
mov rbp, qword [r12 + rcx*8 + 8]
mov rcx, r8
shr rcx, 8
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x10
xor r10, qword [r12 + rdx*8 + 0x1000]
xor rbp, qword [r12 + rdx*8 + 0x1008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x18
xor r10, qword [r12 + rdx*8 + 0x2000]
xor rbp, qword [r12 + rdx*8 + 0x2008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x20
xor r10, qword [r12 + rdx*8 + 0x3000]
xor rbp, qword [r12 + rdx*8 + 0x3008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x28
xor r10, qword [r12 + rdx*8 + 0x4000]
xor rbp, qword [r12 + rdx*8 + 0x4008]
movzx edx, cl
mov rcx, r8
add rdx, rdx
shr rcx, 0x30
shr r8, 0x38
add r8, r8
xor r10, qword [r12 + rdx*8 + 0x5000]
xor rbp, qword [r12 + rdx*8 + 0x5008]
movzx edx, cl
add rdx, rdx
movzx ecx, r9b
add rcx, rcx
xor r10, qword [r12 + rdx*8 + 0x6000]
xor rbp, qword [r12 + rdx*8 + 0x6008]
xor r10, qword [r12 + r8*8 + 0x7000]
xor r10, qword [r12 + rcx*8 + 0x8000]
xor rbp, qword [r12 + r8*8 + 0x7008]
xor rbp, qword [r12 + rcx*8 + 0x8008]
mov rcx, r9
shr rcx, 8
movzx edx, cl
mov rcx, r9
add rdx, rdx
shr rcx, 0x10
xor r10, qword [r12 + rdx*8 + 0x9000]
xor rbp, qword [r12 + rdx*8 + 0x9008]
movzx edx, cl
add rdx, rdx
xor r10, qword [r12 + rdx*8 + 0xa000]
xor rbp, qword [r12 + rdx*8 + 0xa008]
mov rcx, r9
add r14, 0x20
shr rcx, 0x18
movzx edx, cl
mov rcx, r9
add rdx, rdx
shr rcx, 0x20
xor r10, qword [r12 + rdx*8 + 0xb000]
xor rbp, qword [r12 + rdx*8 + 0xb008]
movzx edx, cl
mov rcx, r9
add rdx, rdx
shr rcx, 0x28
xor r10, qword [r12 + rdx*8 + 0xc000]
xor rbp, qword [r12 + rdx*8 + 0xc008]
movzx edx, cl
mov rcx, r9
add rdx, rdx
shr rcx, 0x30
shr r9, 0x38
add r9, r9
xor r10, qword [r12 + rdx*8 + 0xd000]
xor rbp, qword [r12 + rdx*8 + 0xd008]
movzx edx, cl
add rdx, rdx
xor r10, qword [r12 + rdx*8 + 0xe000]
xor rbp, qword [r12 + rdx*8 + 0xe008]
xor r10, qword [r12 + r9*8 + 0xf000]
xor rbp, qword [r12 + r9*8 + 0xf008]
xor r10, rbx
xor rbp, rdi
sub r15, 1
jne 0x1402790f0
mov qword [rax - 8], r10
mov qword [rax], rbp
mov qword [rax + 8], r13
mov qword [rax + 0x10], rsi
add rax, 0x20
sub qword [rsp + 0x78], 1
jne 0x1402790e0
mov r15, qword [rsp + 0x70]
xor ebx, ebx
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
lea rdi, [r15 + 0x140]
lea r14, [r15 + 0x138]
nop
mov rax, qword [rsi - 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rcx
test rbx, rbx
je 0x140279518
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x78]
call fcn.140276c20
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov qword [r14], rax
inc rbx
mov qword [rdi], rcx
sub r14, 0x10
sub rdi, 0x10
add rsi, 0x10
cmp rbx, 0xa
jne 0x1402794e0
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x88]
mov byte [r15 + 0x148], 1
add rsp, 0x60
pop r15
ret
lea r9, [0x140325f00]
mov dword [rsp + 0x20], 0xe3
lea r8, str.key_schedule
lea rdx, [0x1402fcaa0]
lea rcx, str.key.size____32
call fcn.140251590
int3