Function at 0x140294340
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x328
mov rbx, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x30]
movups xmm1, xmmword [rdx + 0x40]
movups xmm2, xmmword [rdx + 0x50]
movups xmm3, xmmword [rdx + 0x60]
movups xmmword [rsp + 0x148], xmm3
movups xmmword [rsp + 0x138], xmm2
movups xmmword [rsp + 0x128], xmm1
movups xmmword [rsp + 0x118], xmm0
mov rax, qword [0x1405c4228]
test rax, rax
jne 0x1402943e9
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1405c4228], rcx
jne 0x1402943e9
lea rax, [0x1405c4228]
mov qword [rsp + 0x30], rax
call fcn.1403d56c0
mov byte [0x1405c4230], 1
mov byte [rsp + 0x38], 0
mov eax, 2
xchg qword [0x1405c4228], rax
lea rcx, [rsp + 0x30]
call fcn.1402c7e10
jmp 0x1402943f9
pause
mov rax, qword [0x1405c4228]
cmp rax, 1
je 0x1402943e0
cmp rax, 2
jne 0x140294a16
lea r12, [r15 + 0x30]
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [r12 + 0x20]
movups xmm3, xmmword [r12 + 0x30]
movups xmmword [rsp + 0x198], xmm3
movups xmmword [rsp + 0x188], xmm2
movups xmmword [rsp + 0x178], xmm1
movups xmmword [rsp + 0x168], xmm0
mov rax, qword [0x1405c4228]
test rax, rax
jne 0x140294499
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1405c4228], rcx
jne 0x140294499
lea rax, [0x1405c4228]
mov qword [rsp + 0x30], rax
call fcn.1403d56c0
mov byte [0x1405c4230], 1
mov byte [rsp + 0x38], 0
mov eax, 2
xchg qword [0x1405c4228], rax
lea rcx, [rsp + 0x30]
call fcn.1402c7e10
jmp 0x1402944a9
pause
mov rax, qword [0x1405c4228]
cmp rax, 1
je 0x140294490
cmp rax, 2
jne 0x140294a16
mov qword [rsp + 0x110], r15
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x1a8], 0
mov rdi, qword [r15 + 0x20]
cmp rdi, rbx
jae 0x1402946c3
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [r12 + 0x20]
movups xmm3, xmmword [r12 + 0x30]
movups xmmword [rsp + 0x240], xmm3
movups xmmword [rsp + 0x230], xmm2
movups xmmword [rsp + 0x220], xmm1
movups xmmword [rsp + 0x210], xmm0
mov rax, qword [0x1405c4228]
test rax, rax
jne 0x140294579
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1405c4228], rcx
jne 0x140294579
lea rax, [0x1405c4228]
mov qword [rsp + 0x30], rax
call fcn.1403d56c0
mov byte [0x1405c4230], 1
mov byte [rsp + 0x38], 0
mov eax, 2
xchg qword [0x1405c4228], rax
lea rcx, [rsp + 0x30]
call fcn.1402c7e10
jmp 0x140294589
pause
mov rax, qword [0x1405c4228]
cmp rax, 1
je 0x140294570
cmp rax, 2
jne 0x140294a16
xorps xmm0, xmm0
movups xmmword [rsp + 0x2c8], xmm0
movups xmmword [rsp + 0x2b8], xmm0
movups xmmword [rsp + 0x2a8], xmm0
movups xmmword [rsp + 0x298], xmm0
movups xmmword [rsp + 0x288], xmm0
movups xmmword [rsp + 0x278], xmm0
movups xmmword [rsp + 0x268], xmm0
movups xmmword [rsp + 0x258], xmm0
mov qword [rsp + 0x208], r15
mov qword [rsp + 0x250], 0
mov qword [rsp + 0x2d8], 0
lea r15, [rsp + 0x208]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140293ce0
lea rcx, [rsp + 0x30]
mov r8d, 0xd8
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x248]
movaps xmmword [rsp + 0x1f0], xmm0
movups xmm0, xmmword [rsp + 0x208]
movups xmm1, xmmword [rsp + 0x218]
movups xmm2, xmmword [rsp + 0x228]
movups xmm3, xmmword [rsp + 0x238]
movaps xmmword [rsp + 0x1e0], xmm3
movaps xmmword [rsp + 0x1d0], xmm2
movaps xmmword [rsp + 0x1c0], xmm1
movaps xmmword [rsp + 0x1b0], xmm0
cmp r9, 0x81
jae 0x140294aac
lea r8, [rsp + 0x80]
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x2e0]
lea rdx, [rsp + 0x1b0]
call fcn.1402939a0
mov rax, qword [rsp + 0x2e0]
mov rbx, qword [rax + 0x10]
cmp rbx, 0x41
jae 0x140294ac0
lea r14, [rsp + 0x2e8]
movaps xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
cmp rdi, 0x81
jae 0x140294a8c
cmp rdi, rbx
cmovb rbx, rdi
test rbx, rbx
je 0x140294825
cmp rbx, 8
jae 0x140294725
xor eax, eax
jmp 0x140294810
cmp rbx, 0x20
jae 0x140294732
xor eax, eax
jmp 0x1402947dc
mov eax, ebx
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
xorps xmm0, xmmword [rsp + 0x30]
xorps xmm1, xmmword [rsp + 0x40]
and eax, 0xe0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
cmp rax, 0x20
je 0x1402947d2
movups xmm0, xmmword [r14 + 0x20]
movups xmm1, xmmword [r14 + 0x30]
xorps xmm0, xmmword [rsp + 0x50]
xorps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
cmp eax, 0x40
je 0x1402947d2
movups xmm0, xmmword [r14 + 0x40]
movups xmm1, xmmword [r14 + 0x50]
xorps xmm0, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
cmp eax, 0x60
je 0x1402947d2
movups xmm0, xmmword [r14 + 0x60]
movups xmm1, xmmword [r14 + 0x70]
xorps xmm0, xmmword [rsp + 0x90]
xorps xmm1, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm1
cmp rbx, rax
je 0x140294825
test bl, 0x18
je 0x140294810
mov rcx, rax
mov eax, ebx
and eax, 0xf8
nop word cs:[rax + rax]
mov rdx, qword [r14 + rcx]
xor qword [rsp + rcx + 0x30], rdx
add rcx, 8
cmp rax, rcx
jne 0x1402947f0
cmp rbx, rax
je 0x140294825
nop word [rax + rax]
movzx ecx, byte [r14 + rax]
xor byte [rsp + rax + 0x30], cl
lea rcx, [rax + 1]
mov rax, rcx
cmp rbx, rcx
jne 0x140294810
mov r9, qword [rsp + 0x110]
mov rcx, qword [r9 + 0x20]
test rcx, rcx
je 0x140294a4c
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x140294853
mov rax, rdi
xor edx, edx
div rcx
mov rbx, rax
jmp 0x14029485b
mov eax, edi
xor edx, edx
div ecx
mov ebx, eax
mov rax, rbx
imul rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x1b0], rdi
cmp rax, rdi
jne 0x140294a58
cmp rcx, rdi
jbe 0x140294896
test rdi, rdi
je 0x14029496b
cmp rdi, 8
jae 0x1402948c5
lea rcx, [rsp + 0x30]
jmp 0x14029494d
lea rcx, [rsp + 0x118]
lea rdx, [rsp + 0x30]
mov r8, rbx
call qword [r9]
add rbx, qword [rsp + 0x158]
jb 0x140294aa0
mov qword [rsp + 0x158], rbx
cmp rdi, 8
jb 0x14029488c
cmp rdi, 0x20
jae 0x1402948cf
xor eax, eax
jmp 0x14029490e
mov eax, edi
and eax, 0xe0
xor ecx, ecx
movaps xmm0, xmmword [0x1404695e0]
nop
movaps xmm1, xmmword [rsp + rcx + 0x30]
xorps xmm1, xmm0
movaps xmm2, xmmword [rsp + rcx + 0x40]
xorps xmm2, xmm0
movaps xmmword [rsp + rcx + 0x30], xmm1
movaps xmmword [rsp + rcx + 0x40], xmm2
add rcx, 0x20
cmp rax, rcx
jne 0x1402948e0
cmp rdi, rax
je 0x14029496b
test dil, 0x18
je 0x140294945
mov edx, edi
and edx, 0xf8
lea rcx, [rsp + rdx]
add rcx, 0x30
movabs r8, 0x6a6a6a6a6a6a6a6a
nop dword [rax + rax]
xor qword [rsp + rax + 0x30], r8
add rax, 8
cmp rdx, rax
jne 0x140294930
cmp rdi, rdx
jne 0x14029494d
jmp 0x14029496b
lea rcx, [rsp + rax]
add rcx, 0x30
lea rax, [rsp + rdi]
add rax, 0x30
nop word cs:[rax + rax]
xor byte [rcx], 0x6a
inc rcx
cmp rcx, rax
jne 0x140294960
mov r9, qword [rsp + 0x160]
mov rcx, qword [r9 + 0x20]
test rcx, rcx
je 0x140294a4c
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x140294999
mov rax, rdi
xor edx, edx
div rcx
mov rbx, rax
jmp 0x1402949a1
mov eax, edi
xor edx, edx
div ecx
mov ebx, eax
mov rax, rbx
imul rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x1b0], rdi
cmp rax, rdi
jne 0x140294a58
cmp rcx, rdi
ja 0x1402949ec
lea rcx, [rsp + 0x168]
lea rdx, [rsp + 0x30]
mov r8, rbx
call qword [r9]
add rbx, qword [rsp + 0x1a8]
jb 0x140294aa0
mov qword [rsp + 0x1a8], rbx
lea rdx, [rsp + 0x110]
mov r8d, 0xa0
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
add rsp, 0x328
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp rax, 3
jne 0x140294a34
lea rcx, str.Once_has_panicked
lea r8, [0x140469df0]
mov edx, 0x11
call fcn.1403f1d50
lea rcx, [0x140469d3b]
lea r8, [0x140469dc0]
mov edx, 0x28
call fcn.1403f1d50
lea rcx, [0x140469850]
call fcn.1403f23b0
mov qword [rsp + 0x208], 0
lea rax, [0x140469868]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x1b0]
lea r9, [rsp + 0x208]
xor ecx, ecx
call fcn.1403ea170
lea r8, str.C:Userswarden.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.16.20_srchmac.rs
mov edx, 0x80
mov rcx, rdi
call fcn.1403f21c0
lea rcx, [0x140469880]
call fcn.1403f1c30
lea r8, [0x1404699e8]
mov edx, 0x80
mov rcx, r9
call fcn.1403f21c0
lea r8, [0x140469a00]
mov edx, 0x40
mov rcx, rbx
call fcn.1403f21c0
int3