Function at 0x18001bae0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov rax, qword [rcx + 8]
mov qword [rbp - 0x10], rax
mov rdi, qword [rcx + 0x10]
mov rax, qword [0x18028e6a8]
or rax, rdi
je 0x18001c229
mov r12d, r9d
mov r15b, r8b
mov r14, rdx
mov qword [rbp - 8], rcx
mov byte [rbp + 0x6e], 1
mov rcx, rdx
call fcn.18003b000
mov dword [rbp + 0x50], eax
mov dword [rbp + 0x54], edx
mov byte [rbp + 0x6e], 1
lea rcx, [rbp + 0x62]
mov rdx, r14
call fcn.18003b680
test rdi, rdi
je 0x18001bc25
mov eax, dword [rbp + 0x50]
cmp eax, dword [0x18028e6c8]
jne 0x18001bc25
mov eax, dword [rbp + 0x54]
cmp eax, dword [0x18028e6cc]
jne 0x18001bc25
mov rax, qword [0x18028e6a8]
cmp rdi, rax
jne 0x18001bc2c
mov rdx, qword [0x18028e6a0]
mov rcx, qword [rbp - 0x10]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001bc25
cmp dword [0x18028e6d0], r12d
jne 0x18001bc25
movzx eax, byte [rbp + 0x62]
cmp al, byte [0x18028e6d4]
jne 0x18001bc25
movzx eax, byte [rbp + 0x63]
cmp al, byte [0x18028e6d5]
jne 0x18001bc25
movzx eax, byte [rbp + 0x64]
cmp al, byte [0x18028e6d6]
jne 0x18001bc25
movzx eax, byte [rbp + 0x65]
cmp al, byte [0x18028e6d7]
jne 0x18001bc25
movzx eax, byte [rbp + 0x66]
cmp al, byte [0x18028e6d8]
jne 0x18001bc25
movzx eax, byte [rbp + 0x67]
cmp al, byte [0x18028e6d9]
jne 0x18001bc25
movzx eax, byte [rbp + 0x68]
cmp al, byte [0x18028e6da]
jne 0x18001bc25
movzx eax, byte [rbp + 0x69]
cmp al, byte [0x18028e6db]
jne 0x18001bc25
movzx eax, byte [rbp + 0x6a]
cmp al, byte [0x18028e6dc]
jne 0x18001bc25
movzx eax, byte [rbp + 0x6b]
cmp al, byte [0x18028e6dd]
je 0x18001c117
mov rax, qword [0x18028e6a8]
test rax, rax
je 0x18001c10e
cmp qword [0x18028e6c0], 0
je 0x18001c10e
mov byte [rbp + 0x6e], 1
lea rdx, [0x18028e6c8]
mov rcx, r14
call fcn.18003b230
mov byte [rbp + 0x6e], 1
lea rdx, [0x18028e6d4]
mov rcx, r14
call fcn.18003b8c0
mov rdx, qword [0x18028e6b8]
mov r8, qword [0x18028e6c0]
mov byte [rbp + 0x6e], 1
lea rcx, [rbp - 0x38]
call fcn.18004e490
mov rax, qword [0x180277178]
movzx eax, byte [rax]
mov ecx, 0x20000001
test al, al
je 0x18001bcbc
mov eax, 1
lock cmpxchg dword [0x18028eac0], ecx
mov esi, 1
lea r13, [0x18028eac0]
jne 0x18001bce1
mov ebx, 1
jmp 0x18001bd6d
mov eax, 1
lock cmpxchg dword [0x18028eac0], ecx
mov ebx, 1
lea r13, [0x18028eac0]
jne 0x18001bd23
mov esi, 1
jmp 0x18001bd63
mov ebx, eax
cmp eax, 0x100
jae 0x18001bd00
mov ecx, ebx
or ecx, 0x20000000
mov eax, ebx
lock cmpxchg dword [0x18028eac0], ecx
mov esi, ebx
je 0x18001bd6d
lea rdx, [0x18028eac0]
lea rcx, [rbp + 0x20]
lea r8, [rbp + 0x6d]
mov r9, r8
call fcn.180184750
mov r13, qword [rbp + 0x28]
mov ebx, dword [rbp + 0x30]
mov esi, dword [rbp + 0x34]
jmp 0x18001bd6d
mov esi, eax
cmp eax, 0x100
jae 0x18001bd42
mov ecx, esi
or ecx, 0x20000000
mov eax, esi
lock cmpxchg dword [0x18028eac0], ecx
mov ebx, esi
je 0x18001bd63
lea rdx, [0x18028eac0]
lea rcx, [rbp + 0x20]
lea r8, [rbp + 0x6d]
mov r9, r8
call fcn.180184750
mov r13, qword [rbp + 0x28]
mov ebx, dword [rbp + 0x30]
mov esi, dword [rbp + 0x34]
test sil, 1
je 0x18001c255
lea rdx, [0x18028ea90]
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], r13
mov dword [rbp + 0x30], ebx
mov dword [rbp + 0x34], esi
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [0x18028e6a0]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x20], xmm0
lea r8, [0x1801a0d30]
mov rcx, rbp
mov r9d, 0x10
call fcn.18005f160
mov dword [rbp - 0x18], r12d
mov byte [rbp + 0x6c], r15b
mov rax, qword [rbp + 8]
mov qword [rbp + 0x58], rax
test rax, rax
js 0x18001c311
mov r15, qword [rbp]
mov r12d, dword [rbp + 0x10]
je 0x18001bdf7
movzx eax, byte [0x18028ecd1]
mov eax, 1
mov qword [rbp + 0x18], rax
mov edx, 1
mov rcx, qword [rbp + 0x58]
call fcn.18006a570
test rax, rax
jne 0x18001bdfc
jmp 0x18001c319
mov eax, 1
mov qword [rbp + 0x18], rax
mov rcx, rax
mov rdx, r15
mov r8, qword [rbp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r14
call fcn.18003bb00
mov qword [rbp - 0x20], rax
mov rcx, r14
call fcn.18003b000
mov r9d, eax
movabs r15, 0x100000000
or r15, r12
shl edx, 3
lea eax, [rdx + rdx*2]
mov ecx, dword [0x18028e6d0]
test cl, 8
cmovne r15, r12
test cl, 0x10
lea r12d, [rdx + rdx*2 - 0xc]
cmove r12d, eax
mov eax, ebx
or eax, 0x20000000
lock cmpxchg dword [r13], esi
je 0x18001be99
xor ebx, esi
or ebx, 0x20000000
mov eax, dword [r13]
nop dword [rax]
mov ecx, eax
xor ecx, ebx
lock cmpxchg dword [r13], ecx
jne 0x18001be70
cmp eax, 0x40000000
jb 0x18001be99
xor eax, ebx
mov byte [rbp + 0x6f], 1
mov rcx, r13
mov edx, eax
mov esi, r9d
call fcn.18018b3e0
mov r9d, esi
mov rax, qword [0x180277178]
movzx eax, byte [rax]
mov ecx, 0x20000001
test al, al
je 0x18001bed2
mov eax, 1
lock cmpxchg dword [0x18028e770], ecx
mov ebx, 1
lea rsi, [0x18028e770]
jne 0x18001bef8
mov r13d, 1
jmp 0x18001bfa2
mov eax, 1
lock cmpxchg dword [0x18028e770], ecx
mov r13d, 1
lea rsi, [0x18028e770]
jne 0x18001bf4d
mov ebx, 1
jmp 0x18001bf99
mov r13d, eax
cmp eax, 0x100
jae 0x18001bf1f
mov ecx, r13d
or ecx, 0x20000000
mov eax, r13d
lock cmpxchg dword [0x18028e770], ecx
mov ebx, r13d
je 0x18001bfa2
mov byte [rbp + 0x6f], 1
lea rdx, [0x18028e770]
lea rcx, [rbp + 0x20]
lea r8, [rbp + 0x6d]
mov esi, r9d
mov r9, r8
call fcn.180184750
mov r9d, esi
mov rsi, qword [rbp + 0x28]
mov r13d, dword [rbp + 0x30]
mov ebx, dword [rbp + 0x34]
jmp 0x18001bfa2
mov ebx, eax
cmp eax, 0x100
jae 0x18001bf6d
mov ecx, ebx
or ecx, 0x20000000
mov eax, ebx
lock cmpxchg dword [0x18028e770], ecx
mov r13d, ebx
je 0x18001bf99
mov byte [rbp + 0x6f], 1
lea rdx, [0x18028e770]
lea rcx, [rbp + 0x20]
lea r8, [rbp + 0x6d]
mov esi, r9d
mov r9, r8
call fcn.180184750
mov r9d, esi
mov rsi, qword [rbp + 0x28]
mov r13d, dword [rbp + 0x30]
mov ebx, dword [rbp + 0x34]
test bl, 1
je 0x18001c292
lea rcx, [0x18028e700]
mov r10, qword [rbp - 0x20]
mov rax, r10
shr rax, 0x18
and eax, 0xffffff
shl r9d, 4
mov qword [rbp], rcx
mov qword [rbp + 8], rsi
mov dword [rbp + 0x10], r13d
mov dword [rbp + 0x14], ebx
mov rdx, qword [rbp + 0x58]
mov qword [rbp + 0x20], rdx
mov r8, qword [rbp + 0x18]
mov qword [rbp + 0x28], r8
mov qword [rbp + 0x30], rdx
mov edx, r10d
shr edx, 0x10
mov byte [rbp + 0x3a], dl
mov word [rbp + 0x38], r10w
mov word [rbp + 0x3b], ax
shr eax, 0x10
mov byte [rbp + 0x3d], al
mov dword [rbp + 0x40], r9d
mov dword [rbp + 0x44], r12d
mov qword [rbp + 0x48], r15
lea rdx, [rbp + 0x20]
call fcn.18002a850
mov r15, rax
mov eax, r13d
or eax, 0x20000000
lock cmpxchg dword [rsi], ebx
je 0x18001c051
xor ebx, r13d
or ebx, 0x20000000
mov eax, dword [rsi]
nop dword [rax]
mov ecx, eax
xor ecx, ebx
lock cmpxchg dword [rsi], ecx
jne 0x18001c030
cmp eax, 0x40000000
jb 0x18001c051
xor eax, ebx
mov byte [rbp + 0x6f], 0
mov rcx, rsi
mov edx, eax
call fcn.18018b3e0
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, r15
jae 0x18001c09a
mov esi, dword [0x18028e6d0]
mov rcx, qword [0x180277028]
test rcx, rcx
je 0x18001c2d9
mov byte [rbp + 0x6f], 0
call fcn.180157ac0
inc rbx
mov byte [rbp + 0x6f], 0
mov rcx, r14
mov dl, 0x20
mov r8b, 1
mov r9d, esi
call rax
jmp 0x18001c060
mov eax, dword [rbp + 0x50]
cmp eax, dword [0x18028e6c8]
jne 0x18001c0c2
mov eax, dword [rbp + 0x54]
cmp eax, dword [0x18028e6cc]
jne 0x18001c0c2
mov byte [rbp + 0x6f], 0
mov rcx, r14
call fcn.18003b000
mov dword [rbp + 0x50], eax
mov dword [rbp + 0x54], edx
mov byte [rbp + 0x6f], 0
lea rdx, [rbp + 0x50]
mov rcx, r14
call fcn.18003b230
mov byte [rbp + 0x6f], 0
lea rdx, [rbp + 0x62]
mov rcx, r14
call fcn.18003b8c0
mov qword [0x18028e6c0], 0
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x18001c105
mov rcx, qword [rbp - 0x30]
mov r8d, 1
call fcn.18006a580
movzx r15d, byte [rbp + 0x6c]
mov r12d, dword [rbp - 0x18]
test rdi, rdi
je 0x18001c1b0
mov rdx, qword [0x18028e698]
test rdx, rdx
je 0x18001c135
mov rcx, qword [0x18028e6a0]
mov r8d, 1
call fcn.18006a580
mov rcx, qword [rbp - 8]
mov rax, qword [rcx + 0x10]
mov qword [0x18028e6a8], rax
movups xmm0, xmmword [rcx]
movups xmmword [0x18028e698], xmm0
mov rax, qword [rbp + 0x50]
mov qword [0x18028e6c8], rax
mov dword [0x18028e6d0], r12d
mov rax, qword [rbp + 0x62]
mov qword [0x18028e6d4], rax
movzx eax, word [rbp + 0x6a]
mov word [0x18028e6dc], ax
mov rsi, qword [0x18028e6c0]
cmp rsi, qword [0x18028e6b0]
jne 0x18001c196
mov byte [rbp + 0x6e], 0
lea rcx, [0x18028e6b0]
call fcn.180015020
mov rax, qword [0x18028e6b8]
mov byte [rax + rsi], r15b
inc rsi
mov qword [0x18028e6c0], rsi
jmp 0x18001c240
mov rdx, qword [0x18028e698]
test rdx, rdx
je 0x18001c1ce
mov rcx, qword [0x18028e6a0]
mov r8d, 1
call fcn.18006a580
mov rdx, qword [0x18028e6b0]
test rdx, rdx
je 0x18001c1ec
mov rcx, qword [0x18028e6b8]
mov r8d, 1
call fcn.18006a580
mov qword [0x18028e698], 0
mov qword [0x18028e6a0], 1
xorps xmm0, xmm0
movups xmmword [0x18028e6a8], xmm0
mov qword [0x18028e6b8], 1
movups xmmword [0x18028e6c0], xmm0
movups xmmword [0x18028e6ce], xmm0
mov rcx, qword [rbp - 8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x18001c240
mov r8d, 1
mov rcx, qword [rbp - 0x10]
call fcn.18006a580
nop
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x18028ea90]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], r13
mov dword [rbp + 0x30], ebx
mov dword [rbp + 0x34], esi
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.18018b940
mov rdx, qword [rbp]
mov r13, qword [rbp + 8]
test rdx, rdx
je 0x18001c328
mov ebx, dword [rbp + 0x10]
mov esi, dword [rbp + 0x14]
jmp 0x18001bd74
mov dword [rbp - 0x14], r9d
lea rax, [0x18028e700]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rsi
mov dword [rbp + 0x30], r13d
mov dword [rbp + 0x34], ebx
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.18018be00
mov rcx, qword [rbp]
mov rsi, qword [rbp + 8]
test rcx, rcx
je 0x18001c356
mov r13d, dword [rbp + 0x10]
mov ebx, dword [rbp + 0x14]
mov r9d, dword [rbp - 0x14]
jmp 0x18001bfa9
movabs rax, 0x8000000000000009
mov qword [rbp + 0x20], rax
lea rax, [0x1801a72b8]
mov qword [rsp + 0x20], rax
lea rcx, str.calling_detour_trampolineC:Users_viz.cargo_registry_srcindex.crates.io_6f17d22bba15001f_retour_0.3.1_src_traits.rs
lea r9, fcn.180062470
lea r8, [rbp + 0x20]
mov edx, 0x19
call fcn.18019e500
jmp 0x18001c385
mov qword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x58]
call fcn.18019deb5
jmp 0x18001c385
mov dword [rbp + 0x20], r13d
lea rax, [0x1801a0c98]
mov qword [rsp + 0x20], rax
lea rcx, [0x1801a0cd0]
lea r9, [0x1801a0cb0]
lea r8, [rbp + 0x20]
mov edx, 0x2b
call fcn.18019e500
jmp 0x18001c385
mov dword [rbp + 0x20], esi
mov byte [rbp + 0x6f], 1
lea rax, [0x1801a0c98]
mov qword [rsp + 0x20], rax
lea rcx, [0x1801a0cd0]
lea r9, [0x1801a0cb0]
lea r8, [rbp + 0x20]
mov edx, 0x2b
call fcn.18019e500
ud2