Function at 0x14004b990
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x1401a19d8]
cmp rdi, 1
jbe 0x14004c4dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004c4cf
mov rax, qword [0x1401a19d8]
cmp rax, 1
jbe 0x14004c519
mov qword [rsp + 0x30], rdi
mov rbx, qword [0x1401a19e8]
test rbx, rbx
je 0x14004c556
mov qword [rsp + 0x38], rsi
mov r14, qword [rsi + 8]
mov r12b, 1
test r14, r14
je 0x14004bb58
mov rcx, r14
call fcn.1400c56b0
mov rbp, rax
test rax, rax
sete al
je 0x14004bb58
xor ecx, ecx
xor r15d, r15d
nop dword [rax + rax]
movsx rdx, byte [r14 + rcx]
imul r15, r15, 0x83
add r15, rdx
inc rcx
cmp rbp, rcx
jne 0x14004ba30
mov r12d, eax
mov rsi, qword [rbx + 8]
movabs rcx, 0x5555555555555555
movabs r9, 0x3333333333333333
movabs r8, 0xf0f0f0f0f0f0f0f
movabs rdx, 0x101010101010101
test rsi, rsi
je 0x14004bb62
mov rax, rsi
shr rax, 1
and rax, rcx
mov rcx, rsi
sub rcx, rax
mov rax, rcx
and rax, r9
shr rcx, 2
and rcx, r9
add rcx, rax
mov rdi, rcx
shr rdi, 4
add rdi, rcx
and rdi, r8
imul rdi, rdx
shr rdi, 0x38
cmp rdi, 1
jbe 0x14004bb6e
mov r13, r15
cmp r15, rsi
jb 0x14004bad0
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
mov rax, qword [rbx]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x14004bb1e
mov byte [rsp + 0x40], r12b
mov r12, qword [rax]
test r12, r12
je 0x14004bb1e
lea rcx, [rsi - 1]
mov rax, qword [r12 + 8]
cmp rax, r15
je 0x14004bb0e
cmp edi, 1
jbe 0x14004bb53
cmp rax, rsi
jb 0x14004bb09
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r13
jne 0x14004bb1e
cmp qword [r12 + 0x18], rbp
je 0x14004bb7a
mov r12, qword [r12]
test r12, r12
jne 0x14004baed
mov ecx, 0x28
call fcn.1400a27b0
mov r12, rax
mov qword [rax + 0x10], r14
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 [rbx + 0x18]
inc rax
js 0x14004bbad
cvtsi2ss xmm0, rax
jmp 0x14004bbc2
and rax, rcx
jmp 0x14004bb09
xor ebp, ebp
xor r15d, r15d
jmp 0x14004ba4a
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14004bb1e
lea r13, [rsi - 1]
and r13, r15
jmp 0x14004bad0
mov qword [rsp + 0x48], rcx
cmp byte [rsp + 0x40], 0
jne 0x14004bba3
mov rcx, qword [r12 + 0x10]
mov rdx, r14
mov r8, rbp
call fcn.1400a5610
test eax, eax
mov rcx, qword [rsp + 0x48]
jne 0x14004bb15
mov rbp, qword [rsp + 0x38]
jmp 0x14004bc60
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbp, qword [rsp + 0x38]
mov rcx, rsi
shr rcx, 1
mov eax, esi
and eax, 1
or rax, rcx
test rsi, rsi
js 0x14004bbe1
cvtsi2ss xmm1, rsi
jmp 0x14004bbea
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rbx + 0x20]
je 0x14004c41e
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x14004c41e
mov rcx, qword [rbx]
mov rax, qword [rcx + r13*8]
test rax, rax
jne 0x14004bc52
lea rax, [rbx + 0x10]
mov rdx, qword [rbx + 0x10]
mov qword [r12], rdx
mov qword [rbx + 0x10], r12
mov qword [rcx + r13*8], rax
mov rax, qword [r12]
test rax, rax
je 0x14004bc5c
mov rax, qword [rax + 8]
lea rcx, [rsi - 1]
test rsi, rcx
je 0x14004c49c
cmp rax, rsi
jb 0x14004bc49
xor edx, edx
div rsi
mov rax, rdx
shl rax, 3
add rax, qword [rbx]
jmp 0x14004bc59
mov rcx, qword [rax]
mov qword [r12], rcx
mov qword [rax], r12
inc qword [rbx + 0x18]
mov rsi, qword [r12 + 0x20]
test rsi, rsi
jne 0x14004bee4
mov qword [r12 + 0x20], rbp
test r14, r14
je 0x14004c574
mov rbx, qword [0x1401a19e8]
movabs rdi, 0x7fffffffffffffef
mov rcx, r14
call fcn.1400c56b0
cmp rax, rdi
ja 0x14004c5cc
mov r15, rax
lea rsi, [rsp + 0x58]
cmp rax, 0x16
ja 0x14004bcb6
mov byte [rsp + 0x6f], r15b
mov r12, rsi
jmp 0x14004bce1
mov r13, r15
or r13, 0xf
inc r13
mov rcx, r13
call fcn.1400a27b0
mov r12, rax
mov qword [rsp + 0x58], rax
add rdi, 0x11
or rdi, r13
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r15
cmp r12, r14
ja 0x14004bcf5
mov rax, r15
add rax, r12
cmp rax, r14
ja 0x14004c5a0
mov rcx, r12
mov rdx, r14
mov r8, r15
call fcn.1400a5710
mov byte [r12 + r15], 0
movzx r13d, byte [rsp + 0x6f]
mov ecx, r13d
and ecx, 0x7f
test r13b, r13b
mov rdx, qword [rsp + 0x58]
mov rax, rsi
cmovs rax, rdx
cmovs rcx, qword [rsp + 0x60]
cmp rcx, 0x20
ja 0x14004bdd2
cmp rcx, 0x10
ja 0x14004bf59
cmp rcx, 9
movabs rdi, 0x5555555555555555
jae 0x14004bef7
cmp rcx, 4
movabs r8, 0x101010101010101
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r11, 0x3333333333333333
jae 0x14004c069
movabs r14, 0x9ae16a3b2f90404f
test rcx, rcx
je 0x14004c012
movzx edx, byte [rax]
mov r9, rcx
shr r9, 1
movzx r9d, byte [rax + r9]
movzx eax, byte [rcx + rax - 1]
shl r9, 8
or r9, rdx
lea rax, [rcx + rax*4]
imul r9, r14
movabs rcx, 0xc949d7c7509e6557
imul rcx, rax
xor rcx, r9
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
imul r14, rax
jmp 0x14004c012
mov qword [rsp + 0x40], rbx
cmp rcx, 0x40
ja 0x14004c15d
test r13b, r13b
cmovs rsi, rdx
mov r9, qword [rsi + 0x10]
mov rdi, qword [rsi + 0x18]
mov rbx, qword [rax + rcx - 0x10]
lea r10, [rbx + rcx]
movabs rdx, 0xc3a5c85c97cb3127
imul r10, rdx
add r10, qword [rax]
lea r11, [r10 + rdi]
mov r15, r10
add r10, qword [rsi + 8]
mov rsi, r10
add r10, r9
add r9, qword [rax + rcx - 0x20]
mov r14, qword [rax + rcx - 8]
add r14, rdi
lea r12, [r14 + r9]
mov r8, r13
mov r13, r9
add r9, qword [rax + rcx - 0x18]
rol r11, 0xc
rol r15, 0x1b
rol rsi, 0x39
rol r12, 0xc
rol r13, 0x1b
add rsi, r15
mov rax, r9
rol rax, 0x39
add r9, rbx
add r14, r9
rol r9, 0x21
add r13, rdi
add r13, rax
add r13, r12
add r13, r9
add r13, r10
rol r10, 0x21
add rsi, r11
add r10, rsi
movabs rax, 0x9ae16a3b2f90404f
imul r13, rax
add r14, r10
imul r14, rdx
add r14, r13
mov r13, r8
mov rcx, r14
shr rcx, 0x2f
xor rcx, r14
imul rcx, rdx
add rcx, r10
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, rax
movabs r8, 0x101010101010101
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r11, 0x3333333333333333
movabs rdi, 0x5555555555555555
mov rbx, qword [rsp + 0x40]
jmp 0x14004c012
cmp rsi, rbp
mov rdi, qword [rsp + 0x30]
je 0x14004c03f
jmp 0x14004c4a4
mov rdx, qword [rax + rcx - 8]
lea r9, [rdx + rcx]
ror r9, cl
mov rax, qword [rax]
xor rax, r9
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r9, rax
shr rax, 0x2f
xor rax, r9
imul rax, rcx
mov r14, rax
shr r14, 0x2f
xor r14, rax
imul r14, rcx
xor r14, rdx
movabs r8, 0x101010101010101
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r11, 0x3333333333333333
jmp 0x14004c012
movabs r9, 0xb492b66fbe98f273
imul r9, qword [rax]
test r13b, r13b
cmovs rsi, rdx
mov r10, qword [rsi + 8]
movabs rdx, 0x9ae16a3b2f90404f
imul rdx, qword [rax + rcx - 8]
movabs r11, 0xc3a5c85c97cb3127
imul r11, qword [rax + rcx - 0x10]
movabs rax, 0xc949d7c7509e6557
xor rax, r10
rol rax, 0x2c
add rcx, r9
add rcx, rax
sub r9, r10
rol r9, 0x15
sub rcx, rdx
add r9, r11
rol rdx, 0x22
add rdx, r9
xor rdx, rcx
movabs rax, 0x9ddfea08eb382d69
imul rdx, rax
xor rcx, rdx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, rax
mov r14, rdx
shr r14, 0x2f
xor r14, rdx
imul r14, rax
movabs r8, 0x101010101010101
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r11, 0x3333333333333333
movabs rdi, 0x5555555555555555
mov rsi, qword [rbx + 0x30]
test rsi, rsi
jne 0x14004c0a5
xor r12d, r12d
mov rdi, qword [rsp + 0x30]
test r13b, r13b
jns 0x14004c036
mov rcx, qword [rsp + 0x58]
call fcn.1400a27ec
test r12, r12
jne 0x14004c3e6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a3c70
mov rax, rbp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rax]
mov eax, dword [rax + rcx - 4]
lea rcx, [rcx + rdx*8]
xor rcx, rax
movabs rdx, 0x9ddfea08eb382d69
imul rcx, rdx
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, rdx
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, rdx
jmp 0x14004c012
mov rax, rsi
shr rax, 1
and rax, rdi
mov rcx, rsi
sub rcx, rax
mov rax, rcx
and rax, r11
shr rcx, 2
and rcx, r11
add rcx, rax
mov rdi, rcx
shr rdi, 4
add rdi, rcx
and rdi, r10
imul rdi, r8
shr rdi, 0x38
cmp rdi, 1
jbe 0x14004c5de
mov r15, r14
cmp r14, rsi
jb 0x14004c0f6
mov rax, r14
xor edx, edx
div rsi
mov r15, rdx
mov rax, qword [rbx + 0x28]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x14004c01f
mov r12, qword [rax]
test r12, r12
je 0x14004c01f
mov r13, rbx
lea rbx, [rsi - 1]
add r13, 0x4c
mov rax, qword [r12 + 8]
cmp r14, rax
je 0x14004c3f8
cmp edi, 1
jbe 0x14004c5d6
cmp rax, rsi
jb 0x14004c142
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r15
jne 0x14004c150
mov r12, qword [r12]
test r12, r12
jne 0x14004c11e
xor r12d, r12d
mov r13b, byte [rsp + 0x6f]
jmp 0x14004c022
mov qword [rsp + 0x50], r13
movabs rbp, 0xb492b66fbe98f273
movabs r8, 0x9ddfea08eb382d69
mov r15, qword [rax + rcx - 0x28]
mov rdx, qword [rax + rcx - 0x10]
mov r9, qword [rax + rcx - 0x38]
mov r11, qword [rax + rcx - 0x30]
lea r10, [r9 + rdx]
mov r14, qword [rax + rcx - 0x18]
lea rdi, [r11 + rcx]
xor rdi, r14
imul rdi, r8
mov rsi, r14
xor rsi, rdi
shr rdi, 0x2f
xor rdi, rsi
imul rdi, r8
mov rsi, rdi
shr rsi, 0x2f
xor rsi, rdi
imul rsi, r8
mov rdi, qword [rax + rcx - 0x40]
add rdi, rcx
lea rbx, [rdi + r15]
add rbx, rsi
rol rbx, 0x2b
add r11, r9
add r11, rdi
mov r12, r11
rol r12, 0x14
add r12, rdi
add r12, rbx
add r11, r15
mov r9, qword [rax + rcx - 0x20]
add r9, r10
mov rbx, qword [rax + rcx - 8]
add r9, rbp
lea r13, [rbx + r15]
add r13, r9
rol r13, 0x2b
add r14, rdx
add r14, r9
mov rdi, r14
rol rdi, 0x14
add rdi, r9
add rdi, r13
imul r15, rbp
add r15, qword [rax]
add r14, rbx
dec rcx
and rcx, 0xffffffffffffffc0
xor r13d, r13d
mov r9, rsi
add r15, r11
add r15, r10
mov rdx, qword [rax + r13 + 8]
mov rbp, qword [rax + r13 + 0x10]
add r15, rdx
rol r15, 0x1b
add r10, r12
mov r8, qword [rax + r13 + 0x30]
mov qword [rsp + 0x48], r8
add r10, r8
rol r10, 0x16
movabs rsi, 0xb492b66fbe98f273
imul r15, rsi
mov r8, r10
imul r8, rsi
mov rsi, r15
xor rsi, rdi
mov rbx, qword [rax + r13 + 0x28]
add r11, rbx
mov r10, r11
add r10, r8
add r9, r14
movabs r8, 0xb492b66fbe98f273
imul r12, r8
mov r8, qword [rax + r13 + 0x18]
add r12, qword [rax + r13]
add r14, r8
add r14, r12
add r14, rsi
rol r14, 0x2b
add rdx, rbp
add rdx, r12
mov r11, rdx
rol r11, 0x14
add r12, r11
add r12, r14
rol r9, 0x1f
mov r11, rdx
mov r15, r9
movabs rdx, 0xb492b66fbe98f273
imul r15, rdx
add r11, r8
add rdi, r15
mov rdx, qword [rax + r13 + 0x38]
add rdi, qword [rax + r13 + 0x20]
add rbp, rdx
add rbp, r10
add rbp, rdi
add rbx, qword [rsp + 0x48]
add rbx, rdi
mov r8, rbx
rol r8, 0x14
add rdi, r8
rol rbp, 0x2b
add rdi, rbp
mov r14, rbx
add r14, rdx
add r13, 0x40
cmp rcx, r13
jne 0x14004c228
xor r12, rdi
movabs r8, 0x9ddfea08eb382d69
imul r12, r8
xor rdi, r12
shr r12, 0x2f
xor r12, rdi
imul r12, r8
mov rax, r12
shr rax, 0x2f
xor rax, r12
imul rax, r8
add rax, r15
xor r11, r14
imul r11, r8
xor r14, r11
shr r11, 0x2f
xor r11, r14
imul r11, r8
mov rcx, r11
shr rcx, 0x2f
xor rcx, r11
imul rcx, r8
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
movabs r9, 0xb492b66fbe98f273
imul rdx, r9
add rdx, rsi
add rdx, rcx
xor rdx, rax
imul rdx, r8
xor rax, rdx
shr rdx, 0x2f
xor rdx, rax
imul rdx, r8
mov r14, rdx
shr r14, 0x2f
xor r14, rdx
imul r14, r8
mov rbp, qword [rsp + 0x38]
movabs r8, 0x101010101010101
movabs r10, 0xf0f0f0f0f0f0f0f
movabs r11, 0x3333333333333333
movabs rdi, 0x5555555555555555
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
jmp 0x14004c012
mov rcx, rbp
mov edx, 0x20
call fcn.14004af10
jmp 0x14004c03f
lea rdx, [r12 + 0x10]
lea r8, [rsp + 0x58]
mov rcx, r13
call fcn.1400340d0
test al, al
jne 0x14004c153
jmp 0x14004c147
mov edx, 1
jmp 0x14004c45c
divss xmm0, xmm2
call fcn.1400d8590
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x140164618]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rsi + rsi]
cmp rsi, 3
jb 0x14004c417
lea r8, [rsi - 1]
xor edx, edx
test rsi, r8
setne dl
or rdx, rcx
cmp rdx, rax
cmovbe rdx, rax
mov rcx, rbx
call fcn.140088c80
mov rsi, qword [rbx + 8]
lea r13, [rsi - 1]
test rsi, r13
je 0x14004c494
cmp r15, rsi
jb 0x14004c5ea
mov rax, r15
xor edx, edx
div rsi
mov r13, rdx
jmp 0x14004bc02
and r13, r15
jmp 0x14004bc02
and rax, rcx
jmp 0x14004bc49
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbp, rbp
je 0x14004c4c7
mov rax, qword [rbp]
mov rax, qword [rax]
mov rcx, rbp
mov edx, 1
call qword [0x1401b0008]
mov rbp, rsi
jmp 0x14004c048
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14004b9d4
lea rcx, [0x1401a19d8]
call fcn.14004feb0
test al, al
je 0x14004c5f2
lea rdi, [0x1401a19e0]
mov rcx, rdi
call fcn.14003e900
lea rcx, [0x1401a19d8]
mov rdx, rdi
xor r8d, r8d
mov r9, rcx
call fcn.14004ff70
jmp 0x14004b9c3
lea rcx, [0x1401a19d8]
call fcn.14004feb0
test al, al
je 0x14004c5fe
lea rbx, [0x1401a19e0]
mov rcx, rbx
call fcn.14003e900
lea rcx, [0x1401a19d8]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14004ff70
jmp 0x14004b9e5
mov ecx, 0xb8
call fcn.1400a27b0
mov rcx, rax
call fcn.140088830
mov rbx, qword [0x1401a19e8]
jmp 0x14004b9fa
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, 0x387
call fcn.1400e3515
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, 0xf1
call fcn.1400e3515
lea rcx, [rsp + 0x58]
call fcn.1400e15c0
and rax, rbx
jmp 0x14004c142
lea r15, [rsi - 1]
and r15, r14
jmp 0x14004c0f6
mov r13, r15
jmp 0x14004bc02
mov rdi, qword [0x1401a19d8]
jmp 0x14004b9c3
mov rax, qword [0x1401a19d8]
jmp 0x14004b9e5