Function at 0x1400ab580
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 rdi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, qword [0x140352bb8]
cmp rsi, 1
jbe 0x1400abb26
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400abb63
mov qword [rsp + 0x50], rsi
mov rax, qword [0x140352bb8]
cmp rax, 1
jbe 0x1400abb70
mov r14, qword [0x140352bc8]
test r14, r14
je 0x1400abbad
mov rbx, qword [rdi + 8]
mov r12b, 1
test rbx, rbx
je 0x1400abb1c
mov rcx, rbx
call fcn.140198c60
test rax, rax
je 0x1400abb1c
mov rbp, rax
xor eax, eax
xor r15d, r15d
movsx rcx, byte [rbx + rax]
imul r15, r15, 0x83
add r15, rcx
inc rax
cmp rbp, rax
jne 0x1400ab619
xor r12d, r12d
mov rsi, qword [r14 + 8]
test rsi, rsi
mov qword [rsp + 0x40], rdi
je 0x1400ab7a8
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 rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
ja 0x1400abd49
lea r13, [rsi - 1]
and r13, r15
mov rax, qword [r14]
mov rax, qword [rax + r13*8]
test rax, rax
jne 0x1400ab7b7
mov rdi, qword [rsp + 0x40]
mov ecx, 0x28
call fcn.14016ecd4
mov r12, rax
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
xor eax, eax
mov qword [r12 + 0x20], rax
mov qword [r12 + 8], r15
mov qword [r12], rax
mov rax, qword [r14 + 0x18]
inc rax
js 0x1400ab6fc
cvtsi2ss xmm0, rax
jmp 0x1400ab711
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
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 0x1400ab72b
cvtsi2ss xmm1, rsi
jmp 0x1400ab734
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [r14 + 0x20]
je 0x1400ab749
mulss xmm1, xmm2
ucomiss xmm0, xmm1
jbe 0x1400ab818
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
jae 0x1400abd65
or rdx, rcx
cmp rdx, rax
cmovbe rdx, rax
mov rcx, r14
call fcn.1400e1400
mov rsi, qword [r14 + 8]
lea r13, [rsi - 1]
test rsi, r13
jne 0x1400ab804
and r13, r15
jmp 0x1400ab818
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x1400ab6c7
mov dword [rsp + 0x30], r12d
mov r12, qword [rax]
test r12, r12
je 0x1400ab6c2
lea rcx, [rsi - 1]
mov rax, qword [r12 + 8]
cmp rax, r15
je 0x1400ab7eb
cmp edi, 1
ja 0x1400abd76
and rax, rcx
cmp rax, r13
jne 0x1400ab6c2
cmp qword [r12 + 0x18], rbp
je 0x1400ac026
mov r12, qword [r12]
test r12, r12
jne 0x1400ab7cc
jmp 0x1400ab6c2
cmp r15, rsi
jb 0x1400ac059
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
mov rcx, qword [r14]
mov rax, qword [rcx + r13*8]
test rax, rax
jne 0x1400abbcb
lea rax, [r14 + 0x10]
mov rdx, qword [r14 + 0x10]
mov qword [r12], rdx
mov qword [r14 + 0x10], r12
mov qword [rcx + r13*8], rax
mov rax, qword [r12]
test rax, rax
je 0x1400ab86e
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
jne 0x1400ab857
and rax, rcx
jmp 0x1400ab864
cmp rax, rsi
jb 0x1400ab864
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [r14]
mov qword [rax], r12
inc qword [r14 + 0x18]
mov rsi, qword [r12 + 0x20]
test rsi, rsi
jne 0x1400abbd7
mov qword [r12 + 0x20], rdi
test rbx, rbx
je 0x1400abc0f
mov r13, qword [0x140352bc8]
movabs rdi, 0x7fffffffffffffef
mov rcx, rbx
call fcn.140198c60
cmp rax, rdi
ja 0x1400abc3b
mov r14, rax
lea rsi, [rsp + 0x68]
cmp rax, 0x16
jbe 0x1400abc40
mov r15, r14
or r15, 0xf
inc r15
mov rcx, r15
call fcn.14016ecd4
mov qword [rsp + 0x68], rax
add rdi, 0x11
or rdi, r15
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r14
lea rdi, [rax + r14]
cmp rax, rbx
ja 0x1400ab8fc
cmp rdi, rbx
ja 0x1400abffa
test r14, r14
je 0x1400ab90f
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.1401730b0
mov byte [rdi], 0
movzx ebp, byte [rsp + 0x7f]
mov r14d, ebp
and r14d, 0x7f
test bpl, bpl
mov rbx, qword [rsp + 0x68]
mov r15, rsi
cmovs r15, rbx
cmovs r14, qword [rsp + 0x70]
cmp r14, 0x20
jbe 0x1400aba7c
mov qword [rsp + 0x30], r13
cmp r14, 0x40
ja 0x1400abd8c
test bpl, bpl
cmovs rsi, rbx
mov r13, qword [rsi + 0x10]
mov r9, qword [rsi + 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 rdi, rdx
rol rdi, 0x1b
add rdx, qword [rsi + 8]
mov r10, rdx
rol r10, 0x39
add rdx, r13
add r13, qword [r15 + r14 - 0x20]
mov rsi, qword [r15 + r14 - 8]
add rsi, r9
lea r12, [rsi + r13]
rol r12, 0xc
mov rcx, r13
rol rcx, 0x1b
add r13, qword [r15 + r14 - 0x18]
add r10, rdi
mov rdi, r13
rol rdi, 0x39
add r13, r11
add rsi, r13
rol r13, 0x21
add rcx, r9
add rcx, rdi
add rcx, r12
add rcx, r13
add rcx, rdx
rol rdx, 0x21
add r10, r8
add rdx, r10
movabs r8, 0x9ae16a3b2f90404f
imul rcx, r8
add rsi, rdx
imul rsi, rax
add rsi, rcx
mov rcx, rsi
shr rcx, 0x2f
xor rcx, rsi
imul rcx, rax
add rcx, rdx
mov r12, rcx
shr r12, 0x2f
xor r12, rcx
imul r12, r8
mov r13, qword [rsp + 0x30]
mov rsi, qword [r13 + 0x30]
test rsi, rsi
jne 0x1400abc4d
xor r13d, r13d
test bpl, bpl
jns 0x1400aba39
mov rcx, rbx
call fcn.14016eccc
test r13, r13
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
jne 0x1400abd37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140171860
mov rax, rdi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp r14, 0x10
jbe 0x1400ac061
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r15]
test bpl, bpl
cmovs rsi, rbx
mov rdx, qword [rsi + 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
add rcx, r8
rol rax, 0x22
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 0x1400aba1c
xor ebp, ebp
xor r15d, r15d
jmp 0x1400ab633
lea rcx, [0x140352bb8]
call fcn.14006d330
test al, al
je 0x1400ac1d2
lea rsi, [0x140352bc0]
mov rcx, rsi
call fcn.140075520
lea rcx, [0x140352bb8]
mov rdx, rsi
xor r8d, r8d
mov r9, rcx
call fcn.14006d410
jmp 0x1400ab5b9
mov rcx, rsi
call fcn.140047ff0
jmp 0x1400ab5ca
lea rcx, [0x140352bb8]
call fcn.14006d330
test al, al
je 0x1400ac1de
lea rbx, [0x140352bc0]
mov rcx, rbx
call fcn.140075520
lea rcx, [0x140352bb8]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14006d410
jmp 0x1400ab5e0
mov ecx, 0xc0
call fcn.14016ecd4
mov rcx, rax
call fcn.1400ce3a0
mov r14, qword [0x140352bc8]
jmp 0x1400ab5f0
mov rcx, qword [rax]
mov qword [r12], rcx
jmp 0x1400ab86b
cmp rsi, rdi
mov rbx, qword [rsp + 0x50]
je 0x1400aba4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rdi, rdi
je 0x1400abc07
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x140211850.0]
mov rdi, rsi
jmp 0x1400aba55
lea rax, str.basic_string_const_char__detected_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__s___nullptr
mov r8d, 0x368
call fcn.1401c469a
call fcn.14016fee0
mov byte [rsp + 0x7f], r14b
mov rax, rsi
jmp 0x1400ab8ea
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 rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
mov rax, rcx
mov qword [rsp + 0x38], rcx
cmp rcx, 1
jbe 0x1400ac14d
mov rax, r12
mov qword [rsp + 0x30], r12
cmp r12, rsi
jb 0x1400abcd5
mov rax, r12
xor edx, edx
div rsi
mov qword [rsp + 0x30], rdx
mov rax, qword [r13 + 0x28]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1400aba29
mov rdi, qword [rax]
test rdi, rdi
je 0x1400aba29
xor r13d, r13d
mov rax, qword [rdi + 8]
cmp r12, rax
je 0x1400ac16a
cmp dword [rsp + 0x38], 1
jbe 0x1400ac15e
cmp rax, rsi
jb 0x1400abd1f
xor edx, edx
div rsi
mov rax, rdx
cmp rax, qword [rsp + 0x30]
jne 0x1400aba2c
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400abcfa
jmp 0x1400aba2c
mov rcx, rdi
mov edx, 0x20
call fcn.14012f160
jmp 0x1400aba4c
mov r13, r15
cmp r15, rsi
jb 0x1400ab6b2
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
jmp 0x1400ab6b2
lea r8, [rsi - 1]
xor edx, edx
test rsi, r8
setne dl
jmp 0x1400ab784
cmp rax, rsi
jb 0x1400ab7e2
xor edx, edx
div rsi
mov rax, rdx
jmp 0x1400ab7e2
movabs r13, 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 r8, [r10 + r14]
xor r8, r9
imul r8, rdi
mov rsi, r9
xor rsi, r8
shr r8, 0x2f
xor r8, rsi
imul r8, rdi
mov rsi, r8
shr rsi, 0x2f
xor rsi, r8
imul rsi, rdi
mov r8, qword [r15 + r14 - 0x40]
add r8, r14
lea rdi, [r8 + r11]
mov qword [rsp + 0x38], rsi
add rdi, rsi
rol rdi, 0x2b
add r10, rcx
add r10, r8
mov rsi, r10
rol rsi, 0x14
add rsi, r8
add rsi, rdi
add r10, r11
mov rcx, qword [r15 + r14 - 0x20]
add rcx, rdx
mov r8, qword [r15 + r14 - 8]
add rcx, r13
lea r12, [r8 + r11]
add r12, rcx
rol r12, 0x2b
add r9, rax
add r9, rcx
mov rdi, r9
rol rdi, 0x14
add rdi, rcx
add rdi, r12
imul r11, r13
add r11, qword [r15]
add r9, r8
lea rax, [r14 - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x58], rax
xor ecx, ecx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
add r11, r10
add r11, rdx
mov r12, qword [r15 + rcx + 8]
mov rax, qword [r15 + rcx + 0x10]
add r11, r12
rol r11, 0x1b
add rdx, rsi
mov r8, qword [r15 + rcx + 0x30]
mov qword [rsp + 0x60], r8
add rdx, r8
rol rdx, 0x16
movabs r8, 0xb492b66fbe98f273
imul r11, r8
mov r13, rdx
imul r13, r8
xor r11, rdi
mov r8, qword [r15 + rcx + 0x28]
add r10, r8
mov rdx, r10
add rdx, r13
add qword [rsp + 0x48], r9
movabs r10, 0xb492b66fbe98f273
imul rsi, r10
mov r13, qword [r15 + rcx + 0x18]
add rsi, qword [r15 + rcx]
add r9, r13
add r9, rsi
mov qword [rsp + 0x38], r11
add r9, r11
rol r9, 0x2b
add r12, rax
add r12, rsi
mov r10, r12
rol r10, 0x14
add rsi, r10
add rsi, r9
mov r11, qword [rsp + 0x48]
rol r11, 0x1f
mov r10, r12
movabs r9, 0xb492b66fbe98f273
imul r11, r9
add r10, r13
add rdi, r11
mov r12, qword [r15 + rcx + 0x38]
add rdi, qword [r15 + rcx + 0x20]
add rax, r12
add rax, rdx
add rax, rdi
add r8, qword [rsp + 0x60]
add r8, rdi
mov r9, r8
rol r9, 0x14
add rdi, r9
rol rax, 0x2b
add rdi, rax
mov r9, r8
add r9, r12
add rcx, 0x40
cmp qword [rsp + 0x58], rcx
jne 0x1400abe5c
xor rsi, rdi
movabs r13, 0x9ddfea08eb382d69
imul rsi, r13
mov rcx, rsi
shr rcx, 0x2f
xor rcx, rdi
xor rcx, rsi
imul rcx, r13
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
imul rax, r13
add rax, r11
xor r10, r9
imul r10, r13
mov rcx, r10
shr rcx, 0x2f
xor rcx, r9
xor rcx, r10
imul rcx, r13
mov r8, rcx
shr r8, 0x2f
xor r8, rcx
imul r8, r13
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
movabs rdx, 0xb492b66fbe98f273
imul rcx, rdx
add rcx, qword [rsp + 0x38]
add rcx, r8
xor rcx, rax
imul rcx, r13
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, r13
mov r12, rcx
shr r12, 0x2f
xor r12, rcx
imul r12, r13
jmp 0x1400aba17
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0xec
call fcn.1401c469a
mov qword [rsp + 0x38], rcx
cmp byte [rsp + 0x30], 0
jne 0x1400ac04f
mov rcx, qword [r12 + 0x10]
mov rdx, rbx
mov r8, rbp
call fcn.140172fb0
test eax, eax
mov rcx, qword [rsp + 0x38]
jne 0x1400ab7f6
mov rdi, qword [rsp + 0x40]
jmp 0x1400ab872
mov r13, r15
jmp 0x1400ab818
cmp r14, 9
jb 0x1400ac0ae
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 0x1400aba1c
cmp r14, 4
jae 0x1400ac10f
movabs r12, 0x9ae16a3b2f90404f
test r14, r14
je 0x1400aba1c
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 0x1400aba1c
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 0x1400aba1c
lea rax, [rsi - 1]
and rax, r12
mov qword [rsp + 0x30], rax
jmp 0x1400abcd5
lea rcx, [rsi - 1]
and rax, rcx
jmp 0x1400abd1f
movzx edx, byte [rdi + 0x27]
mov eax, edx
and eax, 0x7f
mov rcx, rax
test dl, dl
jns 0x1400ac17e
mov rcx, qword [rdi + 0x18]
cmp rcx, r14
jne 0x1400abd2a
lea rcx, [rdi + 0x10]
test dl, dl
jns 0x1400ac192
mov rcx, qword [rcx]
jns 0x1400ac1b4
test r14, r14
je 0x1400ac1ac
mov rdx, r15
mov r8, r14
call fcn.140172fb0
test eax, eax
jne 0x1400abd2a
mov r13, rdi
jmp 0x1400aba2c
test al, al
je 0x1400ac1ac
xor ecx, ecx
mov dl, byte [rdi + rcx + 0x10]
cmp dl, byte [r15 + rcx]
jne 0x1400abd2a
inc rcx
cmp rax, rcx
jne 0x1400ac1ba
jmp 0x1400ac1ac
mov rsi, qword [0x140352bb8]
jmp 0x1400ab5b9
mov rax, qword [0x140352bb8]
jmp 0x1400ab5e0