Function at 0x1800163e0
Capabilities:
Check mutex on windows
Check os version
Create pipe
Get explorer pid
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
xor r14d, r14d
mov rbp, rcx
lea rcx, [0x180036010]
lea r15d, [r14 + 1]
mov dword [rax + 0x10], r14d
mov r13d, r15d
call qword [sym.imp.kERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x180035a68]
lea r11, [0x180036000]
mov dword [0x18003603c], r14d
mov ebx, 0xa8
mov qword [0x180036008], r11
mov qword [0x180036000], r11
mov r8, rbx
xor edx, edx
mov dword [0x180036038], r14d
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
lea r12d, [r14 + 8]
mov qword [0x180035f28], rax
cmp rax, r14
je 0x180016495
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov rcx, qword [0x180035f28]
add rcx, 0x70
call qword [sym.imp.kERNEL32.dll_InitializeCriticalSection]
mov rax, qword [0x180035f28]
lea r11, [0x18003a2ee]
mov qword [rax], r11
mov edi, r14d
jmp 0x180016498
mov edi, r12d
cmp edi, r14d
jne 0x18001701e
mov r8, qword [0x180035c20]
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_CreateMutexA]
mov qword [0x180035c28], rax
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov rcx, qword [0x180035c28]
cmp rcx, r14
je 0x1800164e8
cmp eax, 0xb7
jne 0x1800164e5
call qword [sym.imp.kERNEL32.dll_CloseHandle]
mov qword [0x180035c28], r14
jmp 0x18001701b
mov eax, r14d
cmp eax, r14d
jne 0x18001701b
mov rcx, qword [0x180035a68]
xor edx, edx
mov edi, r14d
lea r8d, [rdx + 0x18]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
lea rsi, [0x180000000]
mov qword [0x180035c50], rax
cmp rax, r14
je 0x1800165df
lea rcx, [0x180035fc0]
call qword [sym.imp.kERNEL32.dll_InitializeCriticalSection]
lea r11, [0x180035fb0]
lea rcx, [0x180035f80]
mov qword [0x180035fb8], r11
mov qword [0x180035fb0], r11
call qword [sym.imp.kERNEL32.dll_InitializeCriticalSection]
lea r11, [0x180035f60]
mov qword [0x180035f68], r11
mov qword [0x180035f60], r11
call qword [sym.imp.kERNEL32.dll_GetVersion]
cmp al, 6
jae 0x180016581
cmp qword [0x180035d18], r14
jne 0x180016581
call fcn.18001f128
mov qword [0x180035d18], rax
mov rbx, r14
mov dword [0x180035c48], r15d
mov esi, 3
lea r14, [0x180000000]
mov rcx, qword [rbx + r14 + 0x34718]
mov rax, qword [0x180035c60]
add rcx, rax
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180035c50]
mov qword [rbx + rcx], rax
add rbx, r12
sub rsi, r15
jne 0x180016597
mov dword [0x180035c4c], 3
xor r14d, r14d
lea rsi, [0x180000000]
mov dword [0x180035c44], r15d
jmp 0x1800165e2
mov edi, r12d
cmp edi, r14d
jne 0x18001701e
mov ebx, dword [0x180035a20]
mov rcx, qword [0x180035a68]
mov edi, 0x3c6ef35f
xor edx, edx
imul ebx, ebx, 0x19660d
add ebx, edi
mov dword [0x180035a20], ebx
shr ebx, 1
and ebx, 0xf
add ebx, 4
lea r8d, [rbx + 1]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov r11, rax
mov qword [0x180035fe8], rax
cmp rax, r14
je 0x1800166d0
mov r8d, r14d
cmp ebx, r14d
jbe 0x1800166a6
mov r9d, dword [0x180035a20]
mov rcx, rax
mov r8d, ebx
mov r10d, ebx
imul r9d, r9d, 0x19660d
mov eax, 0x51eb851f
add r9d, edi
mov dword [0x180035a20], r9d
shr r9d, 1
mul r9d
shr edx, 3
imul edx, edx, 0x19
sub r9d, edx
add r9b, 0x41
mov byte [rcx], r9b
mov r9d, dword [0x180035a20]
imul r9d, r9d, 0x19660d
add r9d, edi
mov dword [0x180035a20], r9d
test r9b, 2
je 0x18001669e
add byte [rcx], 0x20
mov r9d, dword [0x180035a20]
add rcx, r15
sub r10, r15
jne 0x18001664a
mov eax, r8d
lea r9, [0x18002b2d4]
lea rcx, [0x180035bd0]
lea r8, [0x180004bb8]
mov edx, 0x7c
mov byte [rax + r11], r14b
call fcn.18002687c
mov edi, eax
jmp 0x1800166d3
mov edi, r12d
cmp edi, r14d
jne 0x18001701e
lea rdx, [rsp + 0x118]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov r11d, dword [rsp + 0x118]
cmp r11d, r14d
je 0x180016728
mov rcx, qword [0x180035a68]
mov r8, r11
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov qword [0x180035ac0], rax
cmp rax, r14
je 0x180016728
lea rdx, [rsp + 0x118]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [0x180035bcc]
mov dword [0x180035ff0], r15d
cmp eax, 0x60908040
je 0x180016743
cmp eax, 0x40214d1e
jne 0x1800167ae
mov rcx, qword [0x180035c68]
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x98]
mov r9d, 0x30
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
mov r8d, r14d
mov ecx, 0x400
cmp eax, r14d
cmovge r8d, dword [rsp + 0xc0]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_OpenProcess]
cmp rax, r14
jne 0x18001679f
call qword [sym.imp.kERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1800168e0
jmp 0x1800167a8
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_CloseHandle]
mov eax, dword [0x180035bcc]
cmp eax, 0x1d4e36c0
jne 0x1800167f5
mov dword [rsp + 0x44], r14d
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r11d, dword [rsp + 0x44]
cmp r11d, r14d
je 0x1800167ea
cmp r11d, dword [0x180035c5c]
je 0x1800167ea
mov dword [0x180035bcc], r14d
jmp 0x1800167f5
test byte [0x18003412c], r15b
cmovne r13d, r14d
cmp rbp, r14
je 0x18001680f
lea rcx, [0x180035e98]
mov r8d, 0x18
mov rdx, rbp
call sub.ntdll.dll_memcpy
lea rax, [0x180024cc8]
mov qword [0x180035f30], r14
mov edi, r14d
mov qword [0x180035f38], rax
mov rax, qword [0x180035c60]
lea rcx, [rax + rsi + 0x397f6]
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
mov qword [0x180035f20], rax
cmp rax, r14
je 0x1800168bd
mov rax, qword [0x180035c60]
lea rcx, [rax + rsi + 0x39a7a]
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
mov ebp, r14d
lea rsi, [0x1800346f0]
mov qword [0x180035c98], rax
mov r8d, dword [rsi]
mov r12, qword [0x180035f20]
xor r9d, r9d
xor r8d, dword [0x180035c58]
xor edx, edx
mov rcx, r12
mov rbx, r14
call fcn.180007c90
cmp rax, r14
je 0x180016899
mov ebx, dword [rax]
add rbx, r12
mov qword [rsi], rbx
cmp rbx, r14
je 0x1800168af
add ebp, r15d
add rsi, 8
cmp ebp, 5
jb 0x18001686e
jmp 0x1800168b4
mov edi, 0x7f
lea rsi, [0x180000000]
jmp 0x1800168c2
mov edi, 0x7e
cmp edi, r14d
jne 0x18001701e
cmp r13d, r14d
je 0x1800168d7
call fcn.18002b608
mov edi, eax
cmp edi, r14d
jne 0x18001701e
mov qword [rsp + 0x48], r14
cmp qword [0x180035f10], r14
jne 0x180016966
mov r9d, dword [0x180035c58]
mov rcx, qword [0x180035c78]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
xor r9d, 0x889a0120
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call fcn.180013e2c
cmp eax, r14d
je 0x180016966
cmp dword [rsp + 0x40], 0x110
jb 0x180016966
lea rcx, [rsp + 0x80]
call qword [sym.imp.kERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x40]
mov r8d, r11d
mov rcx, rbx
xor r9d, r9d
mov dword [0x180035d34], r11d
call fcn.1800126cc
mov qword [0x180035f10], rbx
lea rcx, [rsp + 0x48]
call fcn.180005b28
mov rbx, qword [rsp + 0x48]
cmp rbx, r14
jne 0x1800169b2
mov r9d, dword [0x180035c58]
mov rcx, qword [0x180035c78]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x48]
xor r9d, 0xbe90f08f
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call fcn.180013e2c
cmp eax, r14d
je 0x1800169cc
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.18001887c
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
call fcn.180017ca8
mov rax, qword [0x180035c60]
mov r11d, dword [0x180035c90]
xor r11d, 0x109a6410
lea rdx, [rax + rsi + 0x393c0]
lea rcx, [rsp + 0x50]
mov r9d, r15d
xor r8d, r8d
mov r12, r14
mov dword [rsp + 0x50], r11d
call fcn.180021860
lea r13, [0x180035cb0]
mov rbx, rax
cmp rax, r14
je 0x180016a3c
mov r9, rax
xor r8d, r8d
mov edx, r15d
mov rcx, r13
call qword [sym.imp.kERNEL32.dll_CreateEventA]
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
mov r12, rax
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, r12
call fcn.18002a2cc
mov edi, eax
cmp eax, r14d
jne 0x18001701e
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rdx + 0x28]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r14
je 0x18001701e
mov rbx, qword [0x180035c18]
mov dword [rax + 4], r14d
xor edx, edx
mov ecx, 0x100000
mov r8, rbx
mov dword [rax], r14d
mov qword [0x180035b68], rax
call qword [sym.imp.kERNEL32.dll_OpenEventA]
cmp rax, r14
jne 0x180016abc
mov r9, rbx
xor r8d, r8d
mov edx, r15d
mov rcx, r13
call qword [sym.imp.kERNEL32.dll_CreateEventA]
cmp rax, r14
jne 0x180016abc
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x18001701e
lock add dword [0x180035c40], r15d
lea rcx, [0x1800232c8]
xor r8d, r8d
mov rdx, rax
call fcn.18000ac68
mov ecx, dword [rsi + 4]
mov qword [rsi + rcx*8 + 8], rax
mov eax, dword [rsi + 4]
cmp qword [rsi + rax*8 + 8], r14
jne 0x180016af5
lock add dword [0x180035c40], 0xffffffff
jmp 0x18001701e
inc eax
cmp dword [0x180035bcc], 0x1d4e36c0
mov dword [rsi + 4], eax
jne 0x180016dcd
lea r8, [0x180035be0]
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea r9, [0x18001dc74]
lea r8, [0x18000fa64]
lea rcx, [0x180035d20]
mov edx, 0x4a30
call fcn.18002687c
mov edi, eax
cmp eax, r14d
jne 0x180016b4d
mov rax, qword [0x180035d20]
or dword [rax + 0x34], 3
cmp edi, r14d
jne 0x18001701e
lea rax, [0x1800069c0]
lea rcx, [0x180035da0]
mov qword [0x180035da0], rax
lea rax, [0x180002154]
mov qword [0x180035db8], rax
call fcn.18001d64c
lea rax, [0x180007968]
mov qword [0x180035d58], rax
lea rax, [0x18000acf4]
lea r10, [0x180010bf4]
lea rcx, [0x180035d38]
mov qword [0x180035d48], rax
mov qword [0x180035d40], r10
call fcn.18001d64c
lea rax, [0x18001de54]
lea r10, [0x180007ae8]
mov qword [0x180035df8], rax
lea rax, [0x18001703c]
mov qword [0x180035de0], r10
mov qword [0x180035de8], rax
mov dword [0x180035e00], r15d
lea rcx, [0x180035dd8]
call fcn.18001d64c
lea r10, [0x1800066ec]
lea rcx, [0x180035d70]
mov qword [0x180035d80], r10
mov dword [0x180035d98], r15d
call fcn.18001d64c
mov edi, r14d
mov dword [0x180035e28], r14d
cmp dword [0x180035e90], r14d
je 0x180016c91
cmp qword [0x180035e10], r14
jne 0x180016c91
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_CreateEventA]
mov qword [0x180035e10], rax
cmp rax, r14
jne 0x180016c53
call qword [sym.imp.kERNEL32.dll_GetLastError]
jmp 0x180016c8f
lock add dword [0x180035c40], r15d
lea r8, [0x180035e18]
lea rdx, [0x180035e10]
lea rcx, [0x18000f210]
call fcn.18000ac68
mov qword [0x180035e20], rax
cmp rax, r14
jne 0x180016c91
call qword [sym.imp.kERNEL32.dll_GetLastError]
lock add dword [0x180035c40], 0xffffffff
mov edi, eax
cmp edi, r14d
jne 0x18001701e
test byte [0x18003412c], 4
je 0x180016cb8
mov dword [0x180035d30], r15d
mov dword [0x180035dc8], r15d
mov dword [0x180035d60], r15d
mov rax, qword [0x180035c60]
lea rbx, [0x180000000]
lea rcx, [rax + rbx + 0x39aa2]
call qword [sym.imp.kERNEL32.dll_LoadLibraryA]
cmp rax, r14
je 0x180016d17
mov rcx, qword [0x180035c60]
lea r8, [0x180035168]
mov r9d, r15d
lea rax, [rcx + rbx + 0x39aa2]
mov edx, r15d
mov qword [0x180035128], rax
lea rax, [rcx + rbx + 0x3a23d]
lea rcx, [0x180035150]
mov qword [0x180035130], rax
call fcn.180021298
mov rcx, qword [0x180035bd8]
mov ebp, dword [rsi + 4]
mov eax, 0x100
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
lea r9d, [rax - 1]
mov edx, 0x40000003
mov r8d, 4
mov edi, r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.kERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180016d9a
lock add dword [0x180035c40], r15d
lea rcx, section..text
xor r8d, r8d
mov rdx, rax
call fcn.18000ac68
cmp rax, r14
je 0x180016d7f
mov qword [rsi + rbp*8 + 8], rax
jmp 0x180016da2
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov edi, eax
lock add dword [0x180035c40], 0xffffffff
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_CloseHandle]
jmp 0x180016da2
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, r14d
jne 0x18001701e
add dword [rsi + 4], r15d
cmp dword [0x180035ab4], r14d
je 0x180016f5c
lea rcx, [0x180035ab0]
call fcn.180009338
jmp 0x180016f5c
cmp qword [0x180035c80], r14
je 0x180016f5c
mov rax, qword [0x180035ca0]
mov rcx, qword [0x180035bf0]
lea r8, [rsp + 0x88]
mov rbx, qword [rax + 0x60]
xor edx, edx
call fcn.180002e84
cmp eax, r14d
jne 0x180016ea1
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.18001e334
cmp eax, r14d
jne 0x180016ea1
cmp dword [rsp + 0x120], 4
mov rbp, qword [rsp + 0x60]
jbe 0x180016e8f
mov rcx, qword [0x180035c80]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8d, dword [0x180035c90]
mov edx, dword [rsp + 0x120]
xor r9d, r9d
mov rcx, rbp
mov rbx, rax
call fcn.1800283c4
mov r11d, dword [rsp + 0x120]
lea rdx, [rbp + 4]
mov rcx, rbx
mov byte [r11 + rbp - 1], r14b
call fcn.18002a09c
cmp eax, r14d
je 0x180016e8f
xor r9d, r9d
mov rdx, rbp
lea r8d, [r9 + 4]
lea ecx, [r9 + 0x34]
call fcn.18000bc1c
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rax, qword [0x180035ca0]
mov rcx, qword [0x180035bf0]
lea r8, [rsp + 0x68]
mov rbx, qword [rax + 0x68]
xor edx, edx
call fcn.180002e84
cmp eax, r14d
jne 0x180016f5c
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.18001e334
cmp eax, r14d
jne 0x180016f5c
mov rbp, qword [rsp + 0x78]
cmp dword [rsp + 0x128], r15d
jbe 0x180016f4a
mov rcx, qword [0x180035c80]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8d, dword [0x180035c90]
mov edx, dword [rsp + 0x128]
xor r9d, r9d
mov rcx, rbp
mov rbx, rax
call fcn.1800283c4
mov r11d, dword [rsp + 0x128]
mov rdx, rbp
dec r11d
mov rcx, rbx
mov byte [r11 + rbp], r14b
call fcn.18002a09c
cmp eax, r14d
je 0x180016f4a
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18002bdcc
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov eax, dword [0x180035bcc]
cmp eax, r14d
je 0x18001701b
cmp eax, 0x1d4e36c0
jne 0x180016fe2
cmp r12, r14
je 0x180016f87
mov rcx, r12
call qword [sym.imp.kERNEL32.dll_SetEvent]
mov qword [0x180035c30], r12
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rdx + 0x43]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov qword [0x180035ef8], rax
cmp rax, r14
je 0x180016fe2
mov rcx, qword [0x180035c60]
movzx r9d, byte [0x180035c71]
movzx r8d, byte [0x180035c70]
lea rdx, [0x180000000]
lea r10, [rcx + rdx + 0x39116]
lea rdx, [rcx + rdx + 0x390df]
mov rcx, rax
mov qword [rsp + 0x20], r10
call qword [sym.imp.USER32.dll_wsprintfA]
lock add dword [0x180035c40], r15d
mov rdx, qword [0x180035c88]
lea rcx, [0x180006f34]
xor r8d, r8d
call fcn.18000ac68
mov ecx, dword [rsi + 4]
mov qword [rsi + rcx*8 + 8], rax
mov eax, dword [rsi + 4]
cmp qword [rsi + rax*8 + 8], r14
je 0x180016ae8
inc eax
mov dword [rsi + 4], eax
mov edi, r14d
mov eax, edi
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret