Function at 0x14001b318
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1d0
mov rax, qword [0x140066550]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.ole32.dll_CoInitialize]
xor r13d, r13d
cmp eax, r13d
lea rcx, str.SUCCEEDED_hRes_
mov r14d, 1
jge 0x14001b390
mov qword [rsp + 0x20], rcx
lea rdx, str..persistence.cpp
lea ecx, [r14 + 1]
xor r9d, r9d
mov r8d, 0x1823
call fcn.140021c80
cmp eax, r14d
jne 0x14001b390
int3
lea rbx, [0x140067fc0]
cmp rbx, 0xffffffffffffffff
je 0x14001b3bc
mov qword [0x140068058], rbx
cmp qword [0x140067fc0], r13
je 0x14001b3bc
mov cl, r14b
call qword [rbx + 0x40]
add rbx, 0x48
cmp qword [rbx], r13
jne 0x14001b3ad
mov rbx, qword [0x1400682a0]
mov rax, qword [0x1400682a8]
jmp 0x14001b3e5
mov rdx, qword [rbx]
cmp rdx, r13
je 0x14001b3e1
mov cl, r14b
call qword [rdx + 0x40]
mov rax, qword [0x1400682a8]
add rbx, 8
cmp rbx, rax
jb 0x14001b3cc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, r13d
mov rcx, rdi
mov dword [0x140068060], eax
jmp 0x14001b42b
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, r13d
je 0x14001b46b
lea rdx, str.RegServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, r13d
je 0x14001b441
mov rcx, rbx
lea rdx, [0x14005765c]
call fcn.14000c080
mov rbx, rax
cmp rax, r13
jne 0x14001b3fe
jmp 0x14001b494
xor r9d, r9d
lea rcx, [0x140068010]
mov r8d, r14d
lea edx, [r9 + 0x64]
call fcn.1400171dc
lea rcx, [0x140068010]
xor r8d, r8d
mov edx, r14d
call fcn.140015d08
jmp 0x14001b492
xor r9d, r9d
lea rcx, [0x140068010]
xor r8d, r8d
lea edx, [r9 + 0x64]
call fcn.1400171dc
lea rcx, [0x140068010]
xor r8d, r8d
xor edx, edx
call fcn.140015dcc
mov ebp, eax
xor edx, edx
lea rax, [rsp + 0x60]
lea r9, [0x140053ab0]
lea rcx, [0x140053b10]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x60], r13
mov edi, r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r13d
jl 0x14001b7c0
cmp qword [rsp + 0x60], r13
je 0x14001b7c0
mov ebx, 0x9c
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8, rbx
call fcn.1400205b0
lea rcx, [rsp + 0x120]
mov dword [rsp + 0x120], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, r13d
je 0x14001b519
cmp dword [rsp + 0x128], r13d
mov eax, r13d
sete al
mov dword [0x140067f64], eax
call fcn.14000e12c
mov ebx, eax
call fcn.140019dcc
mov dword [0x140067f5c], eax
cmp ebx, r13d
jne 0x14001b563
cmp eax, r13d
jne 0x14001b563
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0xf0]
mov edx, 0x20
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp eax, r13d
jl 0x14001b566
mov eax, dword [rsp + 0x108]
cmp eax, r13d
jle 0x14001b566
cmp eax, 0x13
jg 0x14001b566
mov edi, r14d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x60], r13
cmp edi, r13d
je 0x14001b7c0
lea rdx, str.IGFXPERSISTMUTEXT
lea rcx, [rsp + 0xf0]
call fcn.140005f00
cmp qword [rsp + 0x118], 0x10
lea r8, [rsp + 0x100]
cmovae r8, qword [rsp + 0x100]
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0xf0]
cmp eax, 0xb7
cmove edi, r13d
call fcn.140004f10
cmp edi, r13d
je 0x14001b7c5
mov rbx, qword [0x140068058]
mov eax, r13d
mov edi, 4
cmp rbx, r13
je 0x14001b619
cmp qword [rbx], r13
je 0x14001b619
cmp eax, r13d
jne 0x14001b62d
mov r8d, r14d
mov edx, edi
mov rcx, rbx
call fcn.14000b30c
add rbx, 0x48
cmp qword [rbx], r13
jne 0x14001b5f9
cmp eax, r13d
jne 0x14001b62d
lea rcx, [0x140068290]
mov r8d, r14d
mov edx, edi
call fcn.14001cc10
cmp eax, r13d
jge 0x14001b65a
xor r9d, r9d
lea rax, str.SUCCEEDED_hRes_
lea rdx, str..persistence.cpp
lea ecx, [r9 + 2]
mov r8d, 0x18c0
mov qword [rsp + 0x20], rax
call fcn.140021c80
cmp eax, r14d
jne 0x14001b65a
int3
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x48]
call fcn.1400205b0
lea r11, [0x14001a5c4]
lea rbx, str.PersistClass
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x78], r11
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r13
call qword [sym.imp.USER32.dll_RegisterClassA]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
lea r8, str.PersistWndName
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rbx, rax
cmp rax, r13
je 0x14001b778
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140067ed8], rax
cmp rax, r13
je 0x14001b75d
lea rdx, str.WTSRegisterSessionNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140067ed8]
lea rdx, str.WTSUnRegisterSessionNotification
mov qword [0x140067ee0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067ee8], rax
mov rax, qword [0x140067ee0]
cmp rax, r13
je 0x14001b75d
xor edx, edx
mov rcx, rbx
call rax
mov dword [0x140067f28], eax
jmp 0x14001b75d
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
lea rcx, [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
cmp eax, r13d
jne 0x14001b74f
mov rbx, qword [0x140068058]
mov eax, r13d
cmp rbx, r13
je 0x14001b7b2
cmp qword [rbx], r13
je 0x14001b7b2
cmp eax, r13d
jne 0x14001b7c5
mov ecx, dword [rbx + 0x28]
cmp ecx, r13d
jne 0x14001b79e
mov eax, r13d
jmp 0x14001b7a4
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rbx, 0x48
cmp qword [rbx], r13
jne 0x14001b78c
cmp eax, r13d
jne 0x14001b7c5
lea rcx, [0x140068290]
call fcn.14001cce0
jmp 0x14001b7c5
mov rsi, qword [rsp + 0x60]
cmp rsi, r13
je 0x14001b7d3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebp
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400206b0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret