Function at 0x1400195a0
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 [0x140061550]
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 0x140019618
mov qword [rsp + 0x20], rcx
lea rdx, str..persistence.cpp
lea ecx, [r14 + 1]
xor r9d, r9d
mov r8d, 0x174b
call fcn.14001f620
cmp eax, r14d
jne 0x140019618
int3
lea rbx, [0x140062f80]
cmp rbx, 0xffffffffffffffff
je 0x140019644
mov qword [0x140063018], rbx
cmp qword [0x140062f80], r13
je 0x140019644
mov cl, r14b
call qword [rbx + 0x40]
add rbx, 0x48
cmp qword [rbx], r13
jne 0x140019635
mov rbx, qword [0x140063270]
mov rax, qword [0x140063278]
jmp 0x14001966d
mov rdx, qword [rbx]
cmp rdx, r13
je 0x140019669
mov cl, r14b
call qword [rdx + 0x40]
mov rax, qword [0x140063278]
add rbx, 8
cmp rbx, rax
jb 0x140019654
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, r13d
mov rcx, rdi
mov dword [0x140063020], eax
jmp 0x1400196b3
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, r13d
je 0x1400196f3
lea rdx, str.RegServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, r13d
je 0x1400196c9
mov rcx, rbx
lea rdx, [0x1400529b4]
call fcn.14000b5e4
mov rbx, rax
cmp rax, r13
jne 0x140019686
jmp 0x14001971c
xor r9d, r9d
lea rcx, [0x140062fd0]
mov r8d, r14d
lea edx, [r9 + 0x64]
call fcn.140015928
lea rcx, [0x140062fd0]
xor r8d, r8d
mov edx, r14d
call fcn.1400146a4
jmp 0x14001971a
xor r9d, r9d
lea rcx, [0x140062fd0]
xor r8d, r8d
lea edx, [r9 + 0x64]
call fcn.140015928
lea rcx, [0x140062fd0]
xor r8d, r8d
xor edx, edx
call fcn.140014768
mov ebp, eax
xor edx, edx
lea rax, [rsp + 0x60]
lea r9, [0x14004f418]
lea rcx, [0x14004f478]
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 0x140019a48
cmp qword [rsp + 0x60], r13
je 0x140019a48
mov ebx, 0x9c
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8, rbx
call fcn.14001dda0
lea rcx, [rsp + 0x120]
mov dword [rsp + 0x120], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, r13d
je 0x1400197a1
cmp dword [rsp + 0x128], r13d
mov eax, r13d
sete al
mov dword [0x140062f28], eax
call fcn.14000d640
mov ebx, eax
call fcn.1400181e8
mov dword [0x140062f20], eax
cmp ebx, r13d
jne 0x1400197eb
cmp eax, r13d
jne 0x1400197eb
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0xf0]
mov edx, 0x20
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp eax, r13d
jl 0x1400197ee
mov eax, dword [rsp + 0x108]
cmp eax, r13d
jle 0x1400197ee
cmp eax, 0x11
jg 0x1400197ee
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 0x140019a48
lea rdx, str.IGFXPERSISTMUTEXT
lea rcx, [rsp + 0xf0]
call fcn.140005b84
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.140004b94
cmp edi, r13d
je 0x140019a4d
mov rbx, qword [0x140063018]
mov eax, r13d
mov edi, 4
cmp rbx, r13
je 0x1400198a1
cmp qword [rbx], r13
je 0x1400198a1
cmp eax, r13d
jne 0x1400198b5
mov r8d, r14d
mov edx, edi
mov rcx, rbx
call fcn.14000a870
add rbx, 0x48
cmp qword [rbx], r13
jne 0x140019881
cmp eax, r13d
jne 0x1400198b5
lea rcx, [0x140063260]
mov r8d, r14d
mov edx, edi
call fcn.14001ad10
cmp eax, r13d
jge 0x1400198e2
xor r9d, r9d
lea rax, str.SUCCEEDED_hRes_
lea rdx, str..persistence.cpp
lea ecx, [r9 + 2]
mov r8d, 0x17e6
mov qword [rsp + 0x20], rax
call fcn.14001f620
cmp eax, r14d
jne 0x1400198e2
int3
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x48]
call fcn.14001dda0
lea r11, [0x140018a1c]
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 0x140019a00
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140062ea0], rax
cmp rax, r13
je 0x1400199e5
lea rdx, str.WTSRegisterSessionNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140062ea0]
lea rdx, str.WTSUnRegisterSessionNotification
mov qword [0x140062ea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140062eb0], rax
mov rax, qword [0x140062ea8]
cmp rax, r13
je 0x1400199e5
xor edx, edx
mov rcx, rbx
call rax
mov dword [0x140062ee4], eax
jmp 0x1400199e5
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 0x1400199d7
mov rbx, qword [0x140063018]
mov eax, r13d
cmp rbx, r13
je 0x140019a3a
cmp qword [rbx], r13
je 0x140019a3a
cmp eax, r13d
jne 0x140019a4d
mov ecx, dword [rbx + 0x28]
cmp ecx, r13d
jne 0x140019a26
mov eax, r13d
jmp 0x140019a2c
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
add rbx, 0x48
cmp qword [rbx], r13
jne 0x140019a14
cmp eax, r13d
jne 0x140019a4d
lea rcx, [0x140063260]
call fcn.14001ade0
jmp 0x140019a4d
mov rsi, qword [rsp + 0x60]
cmp rsi, r13
je 0x140019a5b
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.14001e4a0
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