Function at 0x140057750
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov rax, qword [rcx]
nop dword [rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140057770
test al, 1
je 0x14005799c
test al, 2
jne 0x1400579b6
test al, 8
mov qword [rbp + 0x40], rcx
jne 0x140057852
mov qword [rbp - 8], 4
mov rsi, qword [rcx + 0x20]
mov eax, dword [0x14026d30c]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
movzx eax, byte [rax + 0x100]
cmp eax, 1
je 0x140057815
test eax, eax
jne 0x140057877
mov byte [rbp + 0x57], 1
mov eax, dword [0x14026d30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0xb0]
lea rdx, [0x140173de0]
call fcn.140157820
mov eax, dword [0x14026d30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x100], 1
mov rcx, qword [rbp + 0x40]
mov eax, dword [0x14026d30c]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov rdx, qword [rax + 0xd0]
mov qword [rbp + 0x48], rdx
mov rdx, qword [rax + 0xd8]
mov qword [rbp + 0x30], rdx
mov qword [rax + 0xd0], 1
mov qword [rax + 0xd8], rsi
jmp 0x14005787d
test al, 0x10
je 0x140057935
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx + 0x60]
test rax, rax
je 0x140057a30
mov rcx, qword [rcx + 0x68]
call qword [rax + 0x10]
jmp 0x140057935
xor eax, eax
mov qword [rbp + 0x48], rax
add rcx, 0x28
mov qword [rbp + 0x38], rcx
call fcn.1400559b0
mov rax, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x38]
mov qword [rcx + 0x20], rax
movups xmm0, xmmword [rbp - 8]
movups xmm1, xmmword [rbp + 8]
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx], xmm0
mov eax, dword [0x14026d30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x100]
cmp eax, 1
mov rsi, qword [rbp + 0x30]
je 0x140057910
test eax, eax
jne 0x140057935
mov byte [rbp + 0x57], 0
mov eax, dword [0x14026d30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0xb0]
lea rdx, [0x140173de0]
call fcn.140157820
mov eax, dword [0x14026d30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x100], 1
mov eax, dword [0x14026d30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0xd0], rcx
mov qword [rax + 0xd8], rsi
mov qword [rbp + 0x28], 1
mov rax, 0xffffffffffffffc0
mov rdx, qword [rbp + 0x40]
lock xadd qword [rdx], rax
shr rax, 6
cmp rax, qword [rbp + 0x28]
jb 0x1400579d0
jne 0x140057991
lea rcx, [rdx + 0x28]
call fcn.1400559b0
mov rax, qword [rbp + 0x40]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x14005797a
mov rcx, qword [rbp + 0x40]
mov rcx, qword [rcx + 0x68]
call qword [rax + 0x18]
mov rax, qword [rbp + 0x40]
mov r8, qword [rax - 8]
mov rcx, qword [0x14026d258]
xor edx, edx
call qword [case.0x14001f69e.0]
nop
add rsp, 0xe8
pop rsi
pop rbp
ret
lea rcx, [0x1401f5b20]
lea r8, [0x1401f5b48]
mov edx, 0x23
call fcn.1401949c0
ud2
lea rcx, [0x1401f5b60]
lea r8, [0x1401f5b88]
mov edx, 0x25
call fcn.1401949c0
ud2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.140011310]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x28]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
lea rax, [0x1401f5bb0]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 2
lea rdx, [0x1401f5bd0]
lea rcx, [rbp - 0x60]
call fcn.140194800
ud2
lea rax, [0x1401f5770]
mov qword [rbp - 8], rax
mov qword [rbp], 1
lea rax, [0x1402199d8]
mov qword [rbp + 8], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
lea rdx, [0x1401f5780]
lea rcx, [rbp - 8]
call fcn.140194800
ud2