Function at 0x140081e80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, rdx
movzx eax, byte [r8 + 0x17]
mov r14d, eax
and r14d, 0x7f
test al, al
mov r15, qword [r8]
cmovns r15, r8
cmovs r14, qword [r8 + 8]
cmp r14, 0x20
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x50], r9
jbe 0x14008214d
cmp r14, 0x40
ja 0x14008223d
mov rcx, qword [r15 + 0x10]
mov r9, qword [r15 + 0x18]
mov r11, qword [r15 + r14 - 0x10]
lea rdx, [r11 + r14]
movabs rax, 0xc3a5c85c97cb3127
imul rdx, rax
add rdx, qword [r15]
lea r8, [rdx + r9]
rol r8, 0xc
mov rbx, rdx
rol rbx, 0x1b
add rdx, qword [r15 + 8]
mov r10, rdx
rol r10, 0x39
add rdx, rcx
add rcx, qword [r15 + r14 - 0x20]
mov rsi, qword [r15 + r14 - 8]
add rsi, r9
lea r12, [rsi + rcx]
rol r12, 0xc
mov r13, rcx
rol r13, 0x1b
add rcx, qword [r15 + r14 - 0x18]
add r10, rbx
mov rbx, rcx
rol rbx, 0x39
add rcx, r11
add rsi, rcx
rol rcx, 0x21
add r13, r9
add r13, rbx
add r13, r12
add r13, rcx
add r13, rdx
rol rdx, 0x21
add r10, r8
add rdx, r10
movabs rcx, 0x9ae16a3b2f90404f
imul r13, rcx
add rsi, rdx
imul rsi, rax
add rsi, r13
mov r8, rsi
shr r8, 0x2f
xor r8, rsi
imul r8, rax
add r8, rdx
mov r12, r8
shr r12, 0x2f
xor r12, r8
imul r12, rcx
mov r11, qword [rsp + 0x30]
mov rsi, qword [r11 + 8]
test rsi, rsi
je 0x14008263f
mov rax, rsi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rsi
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rbx, 0x101010101010101
imul rbx, rax
shr rbx, 0x38
cmp rbx, 1
jbe 0x1400825e4
mov rbp, r12
cmp r12, rsi
jb 0x14008201a
mov rax, r12
xor edx, edx
div rsi
mov rbp, rdx
mov rax, qword [r11]
mov rax, qword [rax + rbp*8]
test rax, rax
jne 0x1400821ab
mov ecx, 0x28
call fcn.14016ecd4
mov rcx, rax
add rcx, 0x10
je 0x1400826c5
mov r13, rax
mov r8, qword [rsp + 0x50]
cmp byte [r8 + 0x17], 0
jns 0x140082229
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
call fcn.14003d5a6
mov qword [r13 + 8], r12
mov qword [r13], 0
mov r8, qword [rsp + 0x30]
mov rax, qword [r8 + 0x18]
inc rax
js 0x140082084
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x14008209c
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
js 0x1400820b6
cvtsi2ss xmm1, rsi
jmp 0x1400820bf
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [r8 + 0x20]
je 0x140082531
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140082531
mov rcx, qword [r8]
mov rax, qword [rcx + rbp*8]
test rax, rax
jne 0x14008221d
lea rax, [r8 + 0x10]
mov rdx, qword [r8 + 0x10]
mov qword [r13], rdx
mov qword [r8 + 0x10], r13
mov qword [rcx + rbp*8], rax
mov rax, qword [r13]
test rax, rax
je 0x14008212d
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x140082662
cmp rax, rsi
jb 0x140082123
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [r8]
mov qword [rax], r13
inc qword [r8 + 0x18]
mov cl, 1
mov qword [rdi], r13
mov byte [rdi + 8], cl
mov rax, rdi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r11, rcx
cmp r14, 0x10
ja 0x1400824a2
cmp r14, 9
jb 0x1400825fb
mov rax, qword [r15 + r14 - 8]
lea rdx, [rax + r14]
mov ecx, r14d
ror rdx, cl
mov rcx, qword [r15]
xor rcx, rdx
movabs r8, 0x9ddfea08eb382d69
imul rcx, r8
xor rdx, rcx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, r8
mov r12, rcx
shr r12, 0x2f
xor r12, rcx
imul r12, r8
xor r12, rax
jmp 0x140081f94
mov r13, qword [rax]
test r13, r13
je 0x14008202a
mov rax, qword [r13 + 8]
cmp rax, r12
je 0x1400821df
cmp ebx, 1
jbe 0x140082656
cmp rax, rsi
jb 0x1400821d6
xor edx, edx
div rsi
mov rax, rdx
cmp rax, rbp
jne 0x14008202a
movzx edx, byte [r13 + 0x27]
mov eax, edx
and eax, 0x7f
mov rcx, rax
test dl, dl
jns 0x1400821f4
mov rcx, qword [r13 + 0x18]
cmp rcx, r14
je 0x1400825b8
mov r13, qword [r13]
jmp 0x1400821ae
mov cl, byte [r13 + rdx + 0x10]
cmp cl, byte [r15 + rdx]
jne 0x1400821fd
inc rdx
xor ecx, ecx
cmp rax, rdx
jne 0x140082203
jmp 0x140082133
mov rcx, qword [rax]
mov qword [r13], rcx
jmp 0x14008212a
mov rax, qword [r8 + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [r8]
movups xmmword [rcx], xmm0
jmp 0x140082060
mov qword [rsp + 0x48], rdi
movabs rbp, 0xb492b66fbe98f273
movabs rdi, 0x9ddfea08eb382d69
mov r11, qword [r15 + r14 - 0x28]
mov rax, qword [r15 + r14 - 0x10]
mov rcx, qword [r15 + r14 - 0x38]
mov r10, qword [r15 + r14 - 0x30]
lea rdx, [rcx + rax]
mov r9, qword [r15 + r14 - 0x18]
lea rsi, [r10 + r14]
xor rsi, r9
imul rsi, rdi
mov r8, r9
xor r8, rsi
shr rsi, 0x2f
xor rsi, r8
imul rsi, rdi
mov r8, rsi
shr r8, 0x2f
xor r8, rsi
imul r8, rdi
mov rbx, qword [r15 + r14 - 0x40]
add rbx, r14
lea r12, [rbx + r11]
add r12, r8
rol r12, 0x2b
add r10, rcx
add r10, rbx
mov rsi, r10
rol rsi, 0x14
add rsi, rbx
add rsi, r12
add r10, r11
mov rcx, qword [r15 + r14 - 0x20]
add rcx, rdx
mov r12, qword [r15 + r14 - 8]
add rcx, rbp
lea r13, [r12 + r11]
add r13, rcx
rol r13, 0x2b
add r9, rax
add r9, rcx
mov rbx, r9
rol rbx, 0x14
add rbx, rcx
add rbx, r13
imul r11, rbp
add r11, qword [r15]
add r9, r12
lea rax, [r14 - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov rcx, r8
add r11, r10
add r11, rdx
mov rax, qword [r15 + r13 + 8]
mov rbp, qword [r15 + r13 + 0x10]
add r11, rax
rol r11, 0x1b
add rdx, rsi
mov r8, qword [r15 + r13 + 0x30]
mov qword [rsp + 0x38], r8
add rdx, r8
rol rdx, 0x16
movabs r8, 0xb492b66fbe98f273
imul r11, r8
mov rdi, rdx
imul rdi, r8
mov r8, r11
xor r8, rbx
mov r12, qword [r15 + r13 + 0x28]
add r10, r12
mov rdx, r10
add rdx, rdi
add rcx, r9
movabs r10, 0xb492b66fbe98f273
imul rsi, r10
mov rdi, qword [r15 + r13 + 0x18]
add rsi, qword [r15 + r13]
add r9, rdi
add r9, rsi
add r9, r8
rol r9, 0x2b
add rax, rbp
add rax, rsi
mov r10, rax
rol r10, 0x14
add rsi, r10
add rsi, r9
rol rcx, 0x1f
mov r10, rax
mov r11, rcx
movabs rax, 0xb492b66fbe98f273
imul r11, rax
add r10, rdi
add rbx, r11
mov rax, qword [r15 + r13 + 0x38]
add rbx, qword [r15 + r13 + 0x20]
add rbp, rax
add rbp, rdx
add rbp, rbx
add r12, qword [rsp + 0x38]
add r12, rbx
mov rcx, r12
rol rcx, 0x14
add rbx, rcx
rol rbp, 0x2b
add rbx, rbp
mov r9, r12
add r9, rax
add r13, 0x40
cmp qword [rsp + 0x40], r13
jne 0x14008230e
xor rsi, rbx
movabs rdi, 0x9ddfea08eb382d69
imul rsi, rdi
mov rcx, rsi
shr rcx, 0x2f
xor rcx, rbx
xor rcx, rsi
imul rcx, rdi
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
imul rax, rdi
add rax, r11
xor r10, r9
imul r10, rdi
mov rcx, r10
shr rcx, 0x2f
xor rcx, r9
xor rcx, r10
imul rcx, rdi
mov r9, rcx
shr r9, 0x2f
xor r9, rcx
imul r9, rdi
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
movabs rdx, 0xb492b66fbe98f273
imul rcx, rdx
add rcx, r8
add rcx, r9
xor rcx, rax
imul rcx, rdi
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, rdi
mov r12, rcx
shr r12, 0x2f
xor r12, rcx
imul r12, rdi
mov rdi, qword [rsp + 0x48]
jmp 0x140081f8f
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r15]
mov rdx, qword [r15 + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [r15 + r14 - 8]
movabs r8, 0xc3a5c85c97cb3127
imul r8, qword [r15 + r14 - 0x10]
movabs r9, 0xc949d7c7509e6557
xor r9, rdx
rol r9, 0x2c
add r9, rcx
add r9, r14
sub rcx, rdx
rol rcx, 0x15
sub r9, rax
rol rax, 0x22
add rax, r8
add rax, rcx
xor rax, r9
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r9, rax
shr rax, 0x2f
xor rax, r9
imul rax, rcx
mov r12, rax
shr r12, 0x2f
xor r12, rax
imul r12, rcx
jmp 0x140081f94
divss xmm0, xmm2
call fcn.14019036c
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402eebd8]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
mov edx, 1
cmp rsi, 3
jb 0x140082574
lea r8, [rsi - 1]
xor edx, edx
test rsi, r8
setne dl
or rdx, rcx
cmp rdx, rax
cmovbe rdx, rax
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1400826fa
mov r8, rsi
mov rsi, qword [rsi + 8]
lea rbp, [rsi - 1]
test rsi, rbp
je 0x14008264e
cmp r12, rsi
jb 0x1400826f1
mov rax, r12
xor edx, edx
div rsi
mov rbp, rdx
jmp 0x1400820d8
lea rcx, [r13 + 0x10]
test dl, dl
jns 0x1400825c3
mov rcx, qword [rcx]
jns 0x1400825f0
test r14, r14
je 0x1400825dd
mov rdx, r15
mov r8, r14
call fcn.140172fb0
test eax, eax
jne 0x1400821fd
xor ecx, ecx
jmp 0x140082133
lea rbp, [rsi - 1]
and rbp, r12
jmp 0x14008201a
test al, al
je 0x1400825dd
xor edx, edx
jmp 0x140082203
cmp r14, 4
jb 0x14008266a
mov eax, dword [r15]
mov ecx, dword [r15 + r14 - 4]
lea rax, [r14 + rax*8]
xor rax, rcx
movabs rdx, 0x9ddfea08eb382d69
imul rax, rdx
xor rcx, rax
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
mov r12, rax
shr r12, 0x2f
xor r12, rax
imul r12, rdx
jmp 0x140081f94
movabs rbp, 0xaaaaaaaaaaaaaaaa
jmp 0x14008202a
and rbp, r12
jmp 0x1400820d8
lea rcx, [rsi - 1]
and rax, rcx
jmp 0x1400821d6
and rax, rcx
jmp 0x140082123
movabs r12, 0x9ae16a3b2f90404f
test r14, r14
je 0x140081f94
movzx eax, byte [r15]
mov rcx, r14
shr rcx, 1
movzx ecx, byte [r15 + rcx]
movzx edx, byte [r14 + r15 - 1]
shl rcx, 8
or rcx, rax
lea rax, [r14 + rdx*4]
imul rcx, r12
movabs rdx, 0xc949d7c7509e6557
imul rdx, rax
xor rdx, rcx
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul r12, rax
jmp 0x140081f94
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401c469a
mov rbp, r12
jmp 0x1400820d8