Function at 0x1800235c0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rbp + 0x370], rax
cmp dword [0x1801340b0], 0
mov rbx, rcx
je 0x18002360e
lea r9, str.Init2_______
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0x1f
call fcn.18001ab50
mov rcx, rbx
call fcn.1800225d0
test eax, eax
je 0x180023624
mov dword [rbx + 0x8c], 1
lea rcx, [rbp + 0x151]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x150], 0
call fcn.180043ef0
lea rcx, [rbp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x40], 0
call fcn.180043ef0
lea rdx, [rbp + 0x40]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x180023696
cmp dword [0x1801340b0], eax
je 0x18002368f
lea r9, str.Init2____1
lea r8, str.WatchDog
lea edx, [rax + 0x1f]
lea rcx, [0x180133ff8]
call fcn.18001ab50
xor eax, eax
jmp 0x180023b08
mov qword [rsp + 0x4b0], rdi
call fcn.18001eb30
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x40]
mov r8d, 0x104
call fcn.18001f1b0
lea rcx, [rbp + 0x150]
mov edx, 0x5c
call fcn.180044298
mov rdi, rax
test rax, rax
jne 0x1800236fe
cmp dword [0x1801340b0], eax
je 0x1800236f7
lea r9, str.Init2____2
lea r8, str.WatchDog
lea edx, [rax + 0x1f]
lea rcx, [0x180133ff8]
call fcn.18001ab50
xor eax, eax
jmp 0x180023b00
mov qword [rsp + 0x4a8], rsi
mov qword [rsp + 0x4b8], r12
inc rdi
mov qword [rsp + 0x480], r13
call fcn.1800790e0
xor r13d, r13d
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov r12, rax
mov qword [rbx + 0x58], r13
mov dword [rbx + 0x60], r13d
mov byte [rsp + 0x30], r13b
call fcn.180043ef0
cmp dword [0x1801340b0], r13d
je 0x180023778
call fcn.180036ec0
lea r9, str.Init2_1___S____d_
lea r8, str.WatchDog
mov dword [rsp + 0x28], eax
lea edx, [r13 + 0x1f]
lea rcx, [0x180133ff8]
mov qword [rsp + 0x20], rdi
call fcn.18001ab50
lea rsi, str.winlogon.exe
call fcn.180036ec0
test eax, eax
je 0x1800237a8
call fcn.180037c80
test eax, eax
jne 0x1800237a1
call fcn.1800371f0
lea rsi, str.wininit.exe
test eax, eax
je 0x1800237a8
lea rsi, str.lsass.exe
mov rdx, rsi
mov rcx, rdi
call fcn.1800451e8
mov rsi, qword [rsp + 0x4a8]
test eax, eax
je 0x180023915
lea rdx, str.services.exe
mov rcx, rdi
call fcn.1800451e8
test eax, eax
je 0x180023915
lea rdx, str.svchost.exe
mov rcx, rdi
call fcn.1800451e8
test eax, eax
je 0x180023915
call fcn.180007640
mov rcx, rdi
mov rdx, rax
call fcn.1800451e8
test eax, eax
jne 0x1800238fc
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
mov dword [rbx + 0x58], 1
mov dword [rbx + 0x5c], 1
call fcn.180043ef0
lea rdx, [rsp + 0x30]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_1
mov r8d, 0x104
call fcn.18000a7d0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x68], rax
test rax, rax
je 0x180023874
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180023878
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], r13
mov dword [rbx + 0x58], r13d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call fcn.180043ef0
lea rdx, [rsp + 0x30]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_2
mov r8d, 0x104
call fcn.18000a7d0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x1800238d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800238d9
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], r13
mov dword [rbx + 0x5c], r13d
cmp dword [rbx + 0x58], r13d
jne 0x180023a04
cmp dword [0x1801340b0], r13d
je 0x180023abf
lea r9, str.Init2____4
jmp 0x180023aa7
cmp dword [0x1801340b0], r13d
je 0x180023abf
lea r9, str.Init2____5
jmp 0x180023aa7
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
mov dword [rbx + 0x5c], 1
mov dword [rbx + 0x60], 1
call fcn.180043ef0
lea rdx, [rsp + 0x30]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_2
mov r8d, 0x104
call fcn.18000a7d0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x180023980
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180023984
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], r13
mov dword [rbx + 0x5c], r13d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call fcn.180043ef0
lea rdx, [rsp + 0x30]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_3
mov r8d, 0x104
call fcn.18000a7d0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x1800239e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800239e5
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x78], r13
mov dword [rbx + 0x60], r13d
cmp dword [rbx + 0x60], r13d
jne 0x180023a04
cmp dword [0x1801340b0], r13d
je 0x180023abf
lea r9, str.Init2____3
jmp 0x180023aa7
lea rcx, [rbp + 0x261]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x260], r13b
call fcn.180043ef0
lea rdx, [rbp + 0x260]
lea rcx, str.TEC_OCULAR__AGENT_V3_EVENT_WDGSVR_STOP
mov r8d, 0x104
call fcn.18000a7d0
lea r9, [rbp + 0x260]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x180023ac3
mov rcx, qword [rbx + 0x68]
mov qword [rbx + 0x58], r13
mov dword [rbx + 0x60], r13d
test rcx, rcx
je 0x180023a71
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], r13
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x180023a84
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], r13
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x180023a97
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x78], r13
cmp dword [0x1801340b0], r13d
je 0x180023abf
lea r9, str.Init2____6
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0x1f
call fcn.18001ab50
xor eax, eax
jmp 0x180023af0
cmp dword [0x1801340b0], r13d
je 0x180023aeb
lea r9, str.Init2____0
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0x1f
call fcn.18001ab50
mov eax, 1
mov r12, qword [rsp + 0x4b8]
mov r13, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x4b0]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x488
pop rbx
pop rbp
ret