Function at 0x140001070
Capabilities:
Acquire debug privileges
Connect pipe
Create pipe
Print debug messages

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xb0
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, qword [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor r12d, r12d
test eax, eax
jne 0x140001106
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeValue_error:__u_n
call fcn.140001010
jmp 0x14000117f
mov dword [rsp + 0x98], 1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x9c], rax
mov dword [rsp + 0xa4], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0x10
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140001166
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges_error:__u_n
call fcn.140001010
jmp 0x14000117f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x14000117f
lea rcx, str.The_token_does_not_have_the_specified_privilege.__n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SetProcessMitigationPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400011c2
mov dword [rsp + 0x40], 1
mov r8d, 4
lea rdx, [rsp + 0x40]
lea ecx, [r8 + 4]
call rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rbx, 0xffffffffffffffff
mov rdx, rbx
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_PeekMessageW]
test rsi, rsi
je 0x140001487
nop
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x1400011f0
test rbx, rbx
je 0x140001487
mov ecx, 0x280
call fcn.1400055a0
mov rdi, rax
mov qword [rax + 0x28], r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rdi + 0x240], r12
mov qword [rdi + 0x248], r12
lea r14, [rdi + 0x270]
mov qword [r14], r12
mov qword [r14 + 8], r12
call fcn.140004a00
mov qword [r14], rax
mov qword [rdi + 0x238], r12
mov qword [rdi + 0x258], r12
mov qword [rdi + 0x250], r12
mov qword [rdi + 0x240], r12
mov qword [rdi + 0x260], r12
mov qword [rdi + 0x268], r12
lea rdx, str..pipe_
lea rcx, [rdi + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
mov rdx, rsi
lea rcx, [rdi + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0x40000
mov r9d, 0xff
xor r8d, r8d
lea edx, [r8 + 3]
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x28], rax
lea rdx, [0x140027f50]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x140001361
mov dword [rdi + 0x230], 0x52ec
mov rcx, rdi
call fcn.140001980
mov rcx, rdi
call fcn.140003be0
mov rcx, qword [rdi + 0x250]
test rcx, rcx
je 0x14000136d
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x38]
mov dword [rsp + 0x40], r12d
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x98]
mov edx, 1
call qword [rax + 0x38]
cmp dword [rsp + 0x40], r12d
je 0x14000136d
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x78]
cmp qword [rsp + 0x48], r12
je 0x14000136d
lea rcx, str.WEEE
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000136d
xor edx, edx
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov rcx, rdi
call fcn.140003f30
mov r15d, eax
mov rcx, qword [rdi + 0x238]
test rcx, rcx
je 0x14000138a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x258]
test rcx, rcx
je 0x14000139c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x250]
test rcx, rcx
je 0x1400013ae
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x240]
test rcx, rcx
je 0x1400013c0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x260]
test rcx, rcx
je 0x1400013e0
lea rax, vtable.CMyICLRDebuggingLibraryProvider.0
mov qword [rcx], rax
mov edx, 0x20
call fcn.1400055dc
mov rcx, qword [rdi + 0x268]
test rcx, rcx
je 0x140001400
lea rax, vtable.CMyIcorDebugDataTarget.0
mov qword [rcx], rax
mov edx, 0x20
call fcn.1400055dc
mov rbp, qword [r14]
mov rsi, qword [rbp + 8]
mov rbx, rsi
mov rax, rbp
cmp byte [rsi + 0x19], 0
jne 0x14000143b
mov rdx, qword [rbx + 0x10]
mov rcx, r14
call fcn.140004a30
mov rbx, qword [rbx]
mov edx, 0x30
mov rcx, rsi
call fcn.1400055dc
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x140001413
mov rax, qword [r14]
mov qword [rax + 8], rbp
mov rax, qword [r14]
mov qword [rax], rbp
mov rax, qword [r14]
mov qword [rax + 0x10], rbp
mov qword [r14 + 8], r12
mov edx, 0x30
mov rcx, qword [r14]
call fcn.1400055dc
mov rcx, qword [rdi + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001475
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], r12
mov edx, 0x280
mov rcx, rdi
call fcn.1400055dc
mov eax, r15d
jmp 0x1400014a8
mov r9d, 0x10
lea r8, str.dotNET_Data_Collector
lea rdx, str.No_pipename_provided
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140005550
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret