Function at 0x140003b3c
Capabilities:
Block operations on executable memory pages using arbitrary code guard
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
mov rax, qword [0x140017280]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rdi, rdx
movsxd rbx, ecx
mov dword [rsp + 0x50], 1
mov esi, 4
mov r8d, esi
lea rdx, [rsp + 0x50]
lea ecx, [rsi + 4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov dword [rsp + 0x54], 1
mov r8d, esi
lea rdx, [rsp + 0x54]
lea r12d, [rsi - 2]
mov ecx, r12d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov dword [rsp + 0x58], 1
mov r8d, esi
lea rdx, [rsp + 0x58]
lea ecx, [rsi + 5]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
lea r14d, [rsi - 1]
mov dword [rsp + 0x5c], r14d
mov r8d, esi
lea rdx, [rsp + 0x5c]
lea ecx, [rsi + 6]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov dword [rsp + 0xa0], 5
xor r13d, r13d
mov qword [rsp + 0xb8], r13
lea r15d, [rsi + 3]
mov qword [rsp + 0xc0], r15
mov word [rsp + 0xa8], r13w
xor r8d, r8d
lea rdx, [0x140011484]
lea rcx, [rsp + 0xa8]
call fcn.1400039c4
mov byte [rsp + 0xc8], 1
cmp ebx, 1
jle 0x140003c75
mov dword [rsp + 0xa0], r13d
lea rdx, str.install
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140003cfb
mov dword [rsp + 0xa0], 1
lea rcx, [rsp + 0xf0]
call fcn.1400049f4
nop
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xf0]
call fcn.140005cbc
mov ebx, eax
lea rcx, [rsp + 0xf0]
call fcn.140002ff0
nop
mov rdx, qword [rsp + 0xc0]
cmp rdx, 8
jb 0x140003ccb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
call fcn.140002978
mov eax, ebx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400016f0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.uninstall
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140003d23
mov dword [rsp + 0xa0], r12d
jmp 0x140003c75
lea rdx, str.stop
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140003d4a
mov dword [rsp + 0xa0], esi
jmp 0x140003c75
lea rdx, str.start
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140003d72
mov dword [rsp + 0xa0], r14d
jmp 0x140003c75
lea rdx, str.test
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140003d9a
mov dword [rsp + 0xa0], r15d
jmp 0x140003c75
lea rdx, str.testOneCore
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140003dc5
mov dword [rsp + 0xa0], 8
jmp 0x140003c75
lea rdx, str.authorize
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14000411b
cmp ebx, r14d
jl 0x1400043a5
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x14000446b
mov rax, qword [0x1400170d0]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400170d0]
mov rax, qword [rax + 0x18]
call qword [0x140010d18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov r8, rbx
lea rdx, str._s
lea rcx, [rsp + 0x38]
call fcn.14000343c
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140003e80
movups xmm0, xmmword [0x140011130]
movdqu xmmword [rsp + 0xd0], xmm0
cmp word [rbx], 0x7b
jne 0x140003e79
lea rdx, [rsp + 0xd0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
nop dword [rax + rax]
test eax, eax
js 0x140003e79
mov edi, r13d
jmp 0x140003e85
mov edi, 0x8007000d
jmp 0x140003e85
mov edi, 0x80070057
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140003eb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x140010d18]
test edi, edi
js 0x140004470
mov byte [rsp + 0x30], r13b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
nop dword [rax + rax]
test eax, eax
js 0x140004455
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x90], r13
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x140011438]
mov r8d, esi
xor edx, edx
lea rcx, [0x140011428]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
js 0x1400043d2
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
movabs r10, 0x88ed36c03a596370
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xd0]
mov rax, qword [rax + 0x20]
call qword [0x140010d18]
test eax, eax
js 0x1400043e8
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
movabs r10, 0x8618a61d70ddf370
lea rdx, [rsp + 0x88]
mov rax, qword [rax + 0x18]
call qword [0x140010d18]
test eax, eax
js 0x1400043fe
mov qword [rsp + 0x38], r13
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
call fcn.14000ce7c
test eax, eax
js 0x140004414
mov qword [rsp + 0x80], r13
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
movabs r10, 0xdee01e7974d59970
lea r8, [rsp + 0x80]
lea rdx, [0x140011418]
mov rax, qword [rax]
call qword [0x140010d18]
nop
test eax, eax
js 0x14000442a
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
movabs r10, 0x91690efa18570b70
lea rdx, [rsp + 0xd0]
mov rax, qword [rax + 0x18]
call qword [0x140010d18]
test eax, eax
js 0x14000443f
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14000403b
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140010d18]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004061
mov rax, qword [rcx]
movabs r10, 0xe5790f615cdf6370
mov edx, 1
mov rax, qword [rax]
call qword [0x140010d18]
nop
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004098
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140010d18]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400040ba
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140010d18]
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400040df
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140010d18]
nop
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0xc0]
cmp rdx, 8
jb 0x14000410f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
call fcn.140002978
xor eax, eax
jmp 0x140003ccd
mov r15, rbx
lea rdx, str.merge
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140004295
cmp ebx, esi
jge 0x14000416e
mov rdx, qword [rsp + 0xc0]
cmp rdx, 8
jb 0x140004164
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
call fcn.140002978
mov eax, 0x57
jmp 0x140003ccd
mov r12, qword [rdi + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd0], xmm0
mov rsi, r13
mov qword [rsp + 0xe0], r13
mov rbx, qword [rsp + 0xd8]
cmp r15, r14
jbe 0x1400041e2
mov rax, qword [rdi + r14*8]
mov qword [rsp + 0x48], rax
cmp rbx, rsi
je 0x1400041b5
mov qword [rbx], rax
add rbx, 8
mov qword [rsp + 0xd8], rbx
jmp 0x1400041da
lea r8, [rsp + 0x48]
mov rdx, rbx
lea rcx, [rsp + 0xd0]
call fcn.1400029bc
mov rsi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
inc r14
cmp r14, r15
jl 0x140004196
mov edi, 0x1f
xor r8d, r8d
xor edx, edx
lea rcx, str.XPERF_EmbeddedPdbPath
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov ecx, 0x11f
test eax, eax
cmovne edi, ecx
xor r8d, r8d
xor edx, edx
lea rcx, str.DIAGHUB_DataInjectOnly
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140004229
bts edi, 0x1e
lea rcx, [rsp + 0x1c0]
call fcn.14000d04c
nop
mov r14, qword [rsp + 0xd0]
sub rbx, r14
sar rbx, 3
mov dword [rsp + 0x20], edi
mov r9d, ebx
mov r8, r14
mov rdx, r12
lea rcx, [rsp + 0x1c0]
call fcn.14000d258
mov ebx, eax
lea rcx, [rsp + 0x1c0]
call fcn.14000d164
nop
test r14, r14
je 0x140003ca8
sub rsi, r14
sar rsi, 3
lea rdx, [rsi*8]
mov rcx, r14
call fcn.140002978
jmp 0x140003ca8
lea rdx, str.service
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140004394
mov dword [rsp + 0xa0], 6
mov byte [rsp + 0xc8], 1
cmp r15, r12
jbe 0x140003c75
mov rsi, r12
mov r14, qword [rdi + rsi*8]
add r14, 2
lea rdx, [0x140011340]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140004317
mov word [rax], r13w
add rbx, r12
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x140004304
neg rax
sbb rax, rax
and rbx, rax
lea rdx, str.LaunchCompleteEventName
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140004356
test rbx, rbx
je 0x140004388
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r13w
jne 0x14000433a
mov rdx, rbx
lea rcx, [rsp + 0xa8]
call fcn.1400039c4
jmp 0x140004377
lea rdx, str.NoTimeout
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
neg eax
sbb cl, cl
and byte [rsp + 0xc8], cl
inc rsi
cmp rsi, r15
jge 0x140003c75
jmp 0x1400042d3
mov rdx, r14
lea rcx, str.Invalid_argument_for_flag:__s_n
jmp 0x14000439f
mov rdx, qword [rdi + 8]
lea rcx, str.Unrecognized_option:__s_n
call fcn.14000240c
nop
mov rdx, qword [rsp + 0xc0]
cmp rdx, 8
jb 0x1400043c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
call fcn.140002978
mov eax, 1
jmp 0x140003ccd
mov dword [rsp + 0x60], eax
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x64], eax
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x64]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x68], eax
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x68]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x6c], eax
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x6c]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x70], eax
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
mov dword [rsp + 0x74], eax
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x74]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov dword [rsp + 0x78], eax
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x78]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov edi, 0x80070057
mov dword [rsp + 0x7c], edi
lea rdx, [0x1400140a8]
lea rcx, [rsp + 0x7c]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3