Function at 0x18001b280
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push rbp
push r12
lea rbp, [r11 - 0x3b8]
sub rsp, 0x4a8
mov rax, qword [0x1800bd650]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov qword [r11 + 0x20], r13
mov dword [0x1800d1c58], 4
mov qword [r11 - 0x18], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, str.AgentU64
lea rcx, [0x1800d6b68]
mov r8d, 0xff
mov dword [0x1800d1c5c], eax
call fcn.180030a54
lea rcx, [0x1800d1798]
xor edx, edx
mov r8d, 0x208
call fcn.180032160
lea rdx, str.softwareTECOcular.3_agentdebug
lea rcx, [0x1800d1798]
mov r8d, 0x103
call fcn.180030a54
lea rcx, [0x1800d6a90]
call fcn.18000ff80
lea rcx, str.SOFTWARETECOcular.3ShareDataPrivilegeValue
xor edx, edx
mov r8d, 0x200
call fcn.180032160
lea rdx, str.softwareTECOcular.3ShareDataPrivilegeValue
lea rcx, str.SOFTWARETECOcular.3ShareDataPrivilegeValue
mov r8d, 0xff
call fcn.180030a54
cmp dword [0x1800d6b50], 0
je 0x18001b36a
lea r9, str.RunAgentU64_1
lea r8, str.AgentU64
lea rcx, [0x1800d6a98]
mov edx, 0x1f
call fcn.180015770
xor r13d, r13d
mov r12d, r13d
call fcn.180046440
lea r14, [0x1800d7460]
test eax, eax
jne 0x18001b389
lea r12d, [r13 + 1]
jmp 0x18001b919
lea rcx, str.WinSta0
xor edx, edx
mov r8d, 0x10000000
mov qword [rsp + 0x4c0], rbx
mov qword [rsp + 0x4d0], rdi
call qword [sym.imp.USER32.dll_OpenWindowStationW]
mov rdi, rax
test rax, rax
jne 0x18001b3bb
mov ebx, r13d
jmp 0x18001b3cf
mov rcx, rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [0x1800d6b50], r12d
je 0x18001b3fb
lea r9, str.RunAgentU64_11___d_
lea r8, str.AgentU64
lea rcx, [0x1800d6a98]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
call fcn.180015770
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], r13w
call fcn.180032160
call fcn.1800464e0
mov rcx, r13
lea rbx, [0x180000000]
test eax, eax
je 0x18001b4c0
nop word [rax + rax]
movzx eax, word [rcx + rbx + 0x9c748]
add rcx, 2
mov word [rsp + rcx + 0x6e], ax
test ax, ax
jne 0x18001b430
xor eax, eax
lea rdi, [rsp + 0x70]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT]
mov qword [rdi - 2], rax
mov rax, qword [0x180092798]
mov qword [rdi + 6], rax
mov rax, qword [0x1800927a0]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1800927a8]
mov qword [rdi + 0x16], rax
mov rax, qword [0x1800927b0]
mov qword [rdi + 0x1e], rax
mov rax, qword [0x1800927b8]
mov qword [rdi + 0x26], rax
mov rax, qword [0x1800927c0]
mov qword [rdi + 0x2e], rax
mov rax, qword [0x1800927c8]
mov qword [rdi + 0x36], rax
movzx eax, word [0x1800927d0]
mov word [rdi + 0x3e], ax
jmp 0x18001b4d6
movzx eax, word [rcx + rbx + 0x92790]
add rcx, 2
mov word [rsp + rcx + 0x6e], ax
test ax, ax
jne 0x18001b4c0
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x18001b503
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x18001b50c
mov r12d, 2
jmp 0x18001b909
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x4c8], rsi
call fcn.1800464a0
test eax, eax
je 0x18001b55d
lea rcx, str.WinSta0
xor edx, edx
mov r8d, 0x10000000
call qword [sym.imp.USER32.dll_OpenWindowStationW]
mov rsi, rax
test rax, rax
je 0x18001b552
mov rcx, rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.USER32.dll_CloseWindowStation]
test edi, edi
jne 0x18001b55d
mov r12d, 3
jmp 0x18001b901
lea rcx, [rbp + 0x182]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x180], r13w
call fcn.180032160
call fcn.1800464a0
test eax, eax
jne 0x18001b587
mov r9d, r13d
jmp 0x18001b5e7
mov rax, qword [0x1800d8a28]
test rax, rax
jne 0x18001b5b7
lea rcx, [0x1800968f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.ProcessIdToSessionId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d8a28], rax
mov r9d, r13d
mov dword [rsp + 0x30], r13d
test rax, rax
je 0x18001b5e7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x30]
mov ecx, eax
call qword [0x1800d8a28]
mov r9d, dword [rsp + 0x30]
test eax, eax
cmove r9d, r13d
mov dword [rsp + 0x30], r9d
lea r8, str.TEC_OCULAR__AGENT_V3_MUTEX_AGENTU64
lea rdx, [0x1800a4028]
lea rcx, [rbp + 0x180]
call fcn.180031004
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], r13w
call fcn.180032160
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x180]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp rcx, 0x104
jae 0x18001b6b6
call fcn.1800464e0
test eax, eax
je 0x18001b694
lea rax, [rdi + 7]
cmp rax, 0x104
ja 0x18001b6b6
mov rcx, r13
movzx eax, word [rcx + rbx + 0x9c748]
add rcx, 2
mov word [rsp + rcx + 0x6e], ax
test ax, ax
jne 0x18001b653
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rbp + 0x180]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x18001b680
jmp 0x18001b6b6
mov rdx, r13
nop word [rax + rax]
movzx eax, word [rbp + rdx + 0x180]
add rdx, 2
mov word [rsp + rdx + 0x6e], ax
test ax, ax
jne 0x18001b6a0
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x18001b8f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x18001b8fb
cmp qword [0x1800d67c0], r12
jne 0x18001b7fe
call fcn.18002dba0
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], r13w
mov rsi, rax
call fcn.180032160
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x180]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp rcx, 0x104
jae 0x18001b7b6
call fcn.1800464e0
test eax, eax
je 0x18001b794
lea rax, [rdi + 7]
cmp rax, 0x104
ja 0x18001b7b6
mov rdx, r13
nop dword [rax + rax]
movzx eax, word [rdx + rbx + 0x9c748]
add rdx, 2
mov word [rsp + rdx + 0x6e], ax
test ax, ax
jne 0x18001b750
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rbp + 0x180]
nop dword [rax]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x18001b780
jmp 0x18001b7b6
mov rcx, r13
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x180]
add rcx, 2
mov word [rsp + rcx + 0x6e], ax
test ax, ax
jne 0x18001b7a0
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1800d67c0], rax
test rax, rax
je 0x18001b7f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18001b7fe
mov rcx, qword [0x1800d67c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800d67c0], r13
mov r12d, 5
jmp 0x18001b901
call fcn.18001b1d0
test eax, eax
jne 0x18001b810
lea r12d, [rax + 6]
jmp 0x18001b901
lea rax, vtable.CAgentU64.0
mov rcx, r14
mov qword [0x1800d1c70], r14
mov qword [0x1800d74a0], rax
call fcn.180025cf0
test eax, eax
jne 0x18001b840
lea r12d, [rax + 5]
jmp 0x18001b901
xor eax, eax
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x18001b8c9
nop dword [rax]
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x18001b901
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x18001b880
mov rcx, qword [0x1800d67c8]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18001b840
mov rcx, qword [0x1800d67c8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x18001b901
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, 4
mov rsi, qword [rsp + 0x4c8]
mov rbx, qword [rsp + 0x4c0]
mov rdi, qword [rsp + 0x4d0]
mov rax, qword [0x1800d1c70]
test rax, rax
je 0x18001b954
mov dword [rax + 0x48], 1
cmp dword [0x1800d6b50], r13d
je 0x18001b97c
lea r9, str.CAgentU64Thread::Exit_1
lea r8, str.AgentU64
lea rcx, [0x1800d6a98]
mov edx, 0x1f
call fcn.180015770
cmp dword [0x1800d6b50], r13d
je 0x18001b97c
lea r9, str.CAgentU64Thread::Kill_1
lea r8, str.AgentU64
lea rcx, [0x1800d6a98]
mov edx, 0x1f
call fcn.180015770
mov rcx, r14
call fcn.180025ac0
cmp dword [0x1800d6b50], r13d
mov r14, qword [rsp + 0x4a0]
je 0x18001b9b4
lea r9, str.CAgentU64Thread::Kill_2
lea r8, str.AgentU64
lea rcx, [0x1800d6a98]
mov edx, 0x1f
call fcn.180015770
mov rcx, qword [0x1800d67c8]
test rcx, rcx
je 0x18001b9cd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800d67c8], r13
mov rcx, qword [0x1800d67c0]
test rcx, rcx
je 0x18001b9e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800d67c0], r13
cmp dword [0x1800d6b50], 0
mov r13, qword [rsp + 0x4d8]
je 0x18001ba1b
lea r9, str.RunAgentU64_2__dbgerr___d_
lea r8, str.AgentU64
lea rcx, [0x1800d6a98]
mov edx, 0x1f
mov dword [rsp + 0x20], r12d
call fcn.180015770
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180030310
add rsp, 0x4a8
pop r12
pop rbp
ret