Function at 0x14001b66c
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 0x14001b6e4
mov qword [rsp + 0x20], rcx
lea rdx, str..persistence.cpp
lea ecx, [r14 + 1]
xor r9d, r9d
mov r8d, 0x186a
call fcn.140021fb0
cmp eax, r14d
jne 0x14001b6e4
int3
lea rbx, [0x140067fc0]
cmp rbx, 0xffffffffffffffff
je 0x14001b710
mov qword [0x140068058], rbx
cmp qword [0x140067fc0], r13
je 0x14001b710
mov cl, r14b
call qword [rbx + 0x40]
add rbx, 0x48
cmp qword [rbx], r13
jne 0x14001b701
mov rbx, qword [0x1400682a0]
mov rax, qword [0x1400682a8]
jmp 0x14001b739
mov rdx, qword [rbx]
cmp rdx, r13
je 0x14001b735
mov cl, r14b
call qword [rdx + 0x40]
mov rax, qword [0x1400682a8]
add rbx, 8
cmp rbx, rax
jb 0x14001b720
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, r13d
mov rcx, rdi
mov dword [0x140068060], eax
jmp 0x14001b77f
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, r13d
je 0x14001b7bf
lea rdx, str.RegServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, r13d
je 0x14001b795
mov rcx, rbx
lea rdx, [0x1400576ec]
call fcn.14000c080
mov rbx, rax
cmp rax, r13
jne 0x14001b752
jmp 0x14001b7e8
xor r9d, r9d
lea rcx, [0x140068010]
mov r8d, r14d
lea edx, [r9 + 0x64]
call fcn.1400174d8
lea rcx, [0x140068010]
xor r8d, r8d
mov edx, r14d
call fcn.140016004
jmp 0x14001b7e6
xor r9d, r9d
lea rcx, [0x140068010]
xor r8d, r8d
lea edx, [r9 + 0x64]
call fcn.1400174d8
lea rcx, [0x140068010]
xor r8d, r8d
xor edx, edx
call fcn.1400160c8
mov ebp, eax
xor edx, edx
lea rax, [rsp + 0x60]
lea r9, [0x140053ac0]
lea rcx, [0x140053b20]
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 0x14001bb14
cmp qword [rsp + 0x60], r13
je 0x14001bb14
mov ebx, 0x9c
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8, rbx
call fcn.1400208e0
lea rcx, [rsp + 0x120]
mov dword [rsp + 0x120], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, r13d
je 0x14001b86d
cmp dword [rsp + 0x128], r13d
mov eax, r13d
sete al
mov dword [0x140067f64], eax
call fcn.14000e12c
mov ebx, eax
call fcn.14001a110
mov dword [0x140067f5c], eax
cmp ebx, r13d
jne 0x14001b8b7
cmp eax, r13d
jne 0x14001b8b7
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0xf0]
mov edx, 0x20
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp eax, r13d
jl 0x14001b8ba
mov eax, dword [rsp + 0x108]
cmp eax, r13d
jle 0x14001b8ba
cmp eax, 0x13
jg 0x14001b8ba
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 0x14001bb14
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 0x14001bb19
mov rbx, qword [0x140068058]
mov eax, r13d
mov edi, 4
cmp rbx, r13
je 0x14001b96d
cmp qword [rbx], r13
je 0x14001b96d
cmp eax, r13d
jne 0x14001b981
mov r8d, r14d
mov edx, edi
mov rcx, rbx
call fcn.14000b30c
add rbx, 0x48
cmp qword [rbx], r13
jne 0x14001b94d
cmp eax, r13d
jne 0x14001b981
lea rcx, [0x140068290]
mov r8d, r14d
mov edx, edi
call fcn.14001cf60
cmp eax, r13d
jge 0x14001b9ae
xor r9d, r9d
lea rax, str.SUCCEEDED_hRes_
lea rdx, str..persistence.cpp
lea ecx, [r9 + 2]
mov r8d, 0x1907
mov qword [rsp + 0x20], rax
call fcn.140021fb0
cmp eax, r14d
jne 0x14001b9ae
int3
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x48]
call fcn.1400208e0
lea r11, [0x14001a908]
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 0x14001bacc
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140067ed8], rax
cmp rax, r13
je 0x14001bab1
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 0x14001bab1
xor edx, edx
mov rcx, rbx
call rax
mov dword [0x140067f28], eax
jmp 0x14001bab1
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 0x14001baa3
mov rbx, qword [0x140068058]
mov eax, r13d
cmp rbx, r13
je 0x14001bb06
cmp qword [rbx], r13
je 0x14001bb06
cmp eax, r13d
jne 0x14001bb19
mov ecx, dword [rbx + 0x28]
cmp ecx, r13d
jne 0x14001baf2
mov eax, r13d
jmp 0x14001baf8
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rbx, 0x48
cmp qword [rbx], r13
jne 0x14001bae0
cmp eax, r13d
jne 0x14001bb19
lea rcx, [0x140068290]
call fcn.14001d030
jmp 0x14001bb19
mov rsi, qword [rsp + 0x60]
cmp rsi, r13
je 0x14001bb27
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.1400209e0
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