Function at 0x140344f50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x60], r9
mov rdi, rcx
mov rax, qword [0x1405476f8]
mov qword [rsp + 0x80], r8
add rax, r8
movabs r15, 0xfb7dfef17c41f5b3
add r15, rax
mov qword [rsp + 0x78], r15
sar r15, 1
lea r14, [rsp + 0x58]
mov rsi, rdx
mov qword [rsp + 0x68], rdx
cmp r15, rdx
jle 0x140345113
lea r12, [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
nop word cs:[rax + rax]
mov dword [rsp + 0x20], 0x16fd48b7
mov rcx, rbp
mov rdx, r14
mov r8, r12
mov r9d, 0x2c55081a
call fcn.1403470b0
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
lea rax, [rbx + rbx*4]
lea rcx, [r13*4]
add rcx, r13
lea r8, [rdi + rcx*8]
lea rdx, [rdi + rax*8 + 8]
lea r9, [rdi + rcx*8 + 8]
mov rsi, qword [rdi + rax*8 + 0x18]
lea rcx, [rdi + rax*8 + 0x20]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x9ddfafa5
mov dword [rsp + 0x38], 0x1a6c0cb7
call fcn.140346e80
mov rdx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rsi, r14
mov r8, r14
cmovb r8, rsi
mov dword [rsp + 0x20], 0x5e963558
mov r9d, 0x72546429
call fcn.1400ac8e0
mov ecx, dword [0x140547700]
lea edx, [rcx + 0xdd32440]
mov r8d, ecx
xor r8d, 0xf37cf582
and ecx, 0x737cf582
lea ecx, [r8 + rcx*2]
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x28], ecx
mov ecx, eax
mov rdx, r14
lea r14, [rsp + 0x58]
mov r8, rsi
mov r9, r12
call fcn.140346f00
movzx ecx, byte [rsp + 0x50]
mov eax, dword [0x140547700]
lea edx, [rax - 0x32cbe67f]
add eax, 0xfb7b079e
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov r8, r13
mov r9, rdi
call fcn.140347030
mov rsi, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
lea rax, [rbp*4]
add rax, rbp
lea rcx, [rdi + rax*8]
mov dword [rsp + 0x20], 0x2435ed01
mov r8d, 0xc743a886
mov r9d, 0x9ddfafa5
call fcn.140178f00
mov rbp, rsi
cmp rsi, r15
jl 0x140344fc0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov r8d, 0x72546429
mov r9d, 0xb924231
call fcn.1402f3510
cmp rsi, r15
sete al
cmp qword [rsp + 0x50], 0
setne cl
cmp al, cl
je 0x140345190
cmp rsi, r15
jne 0x140345190
mov r15, qword [rsp + 0x78]
lea rax, [r15 + r15*4]
lea rdx, [rdi + rax*8]
lea rax, [rsi + rsi*4]
lea rcx, [rdi + rax*8]
mov eax, dword [0x140547700]
lea r8d, [rax - 0x503a4c90]
lea r9d, [rax - 0x799e4571]
mov r10d, eax
xor r10d, 0xcb7f7eb
and eax, 0xcb7f7eb
lea eax, [r10 + rax*2]
mov dword [rsp + 0x20], eax
call fcn.140178f00
jmp 0x140345193
mov r15, rsi
mov rcx, r15
mov rdx, qword [rsp + 0x68]
mov r8d, 0xaef5d2
mov r9d, 0x96a0ae0b
call fcn.140346fb0
test al, 1
je 0x1403452d4
mov rax, qword [rsp + 0x60]
lea rsi, [rax + 8]
lea rbp, [rax + 0x18]
nop word cs:[rax + rax]
lea r13, [r15 - 1]
sar r13, 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x38], 0x50440b55
mov dword [rsp + 0x30], 0x7e64af5c
mov rcx, rdi
mov rdx, r13
mov r8, rbp
lea r9, [rsp + 0x70]
call fcn.140346f50
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x20], 0x10
mov rdx, rsi
jb 0x140345221
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 8]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov r12, qword [rbx + 0x18]
mov rax, qword [0x1405476f8]
movabs r8, 0xfb7dfef17c41f5c3
add rax, r8
cmp qword [rbx + 0x20], rax
jbe 0x140345251
mov rcx, qword [rcx]
cmp r14, r12
mov r8, r12
cmovb r8, r14
mov dword [rsp + 0x20], 0x5e963558
mov r9d, 0x72546429
call fcn.1400ac8e0
xor ecx, ecx
cmp r12, r14
setb cl
xor edx, edx
test eax, eax
sets dl
cmovne ecx, edx
cmp cl, 1
jne 0x1403452d4
lea rax, [r15 + r15*4]
lea rcx, [rdi + rax*8]
mov dword [rsp + 0x20], 0x2435ed01
mov rdx, rbx
mov r8d, 0xc743a886
mov r9d, 0x9ddfafa5
call fcn.140178f00
mov rcx, r13
mov rdx, qword [rsp + 0x68]
mov r8d, 0x10c51734
mov r9d, 0xc1d34837
call fcn.140346fb0
mov r15, r13
test al, 1
lea r14, [rsp + 0x58]
jne 0x1403451d0
jmp 0x1403452d7
mov r13, r15
mov dword [rsp + 0x20], 0x657fbdcf
lea r8, [rsp + 0x50]
mov rcx, rdi
mov rdx, r13
mov r9d, 0x19a05c2a
call fcn.140346f80
mov rcx, qword [rsp + 0x50]
mov eax, dword [0x140547700]
mov edx, eax
xor edx, 0xafc5b370
mov r8d, eax
and r8d, 0x2fc5b370
lea r8d, [rdx + r8*2]
lea r9d, [rax - 0x799e4571]
add eax, 0xcb7f7eb
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0x60]
call fcn.140178f00
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret