Function at 0x140008530
Capabilities:
Create pipe
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x450
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rdx
mov r14, rcx
xor r9d, r9d
xor r8d, r8d
mov dl, 9
call fcn.140015adc
call fcn.140001424
mov rcx, rax
xor r15d, r15d
test rax, rax
jne 0x140008597
mov ecx, 0x80004005
call fcn.140003cb0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea r13, [rdi + 0x4c]
movzx eax, word [r13]
neg ax
sbb rdx, rdx
and rdx, r13
mov cl, 1
call fcn.140019a0c
mov r8, qword [0x140067c90]
xor edx, edx
mov esi, 0x100000
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
je 0x1400085ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xe123053e
jmp 0x14000865a
movzx eax, word [r13]
neg ax
sbb rdx, rdx
and rdx, r13
xor ecx, ecx
call fcn.140019a0c
mov r8, qword [0x140067c90]
xor edx, edx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
je 0x140008625
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xe123055e
jmp 0x14000865a
cmp byte [rdi + 0x45b], r15b
sete cl
movzx eax, word [r13]
neg ax
sbb rdx, rdx
and rdx, r13
call fcn.140019a0c
lea rsi, [rdi + 0x6ce]
mov rcx, rsi
call fcn.140013d4c
test eax, eax
je 0x140008675
mov edx, 0xe123057c
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax]
mov dword [r14], 1
jmp 0x140009183
lea r12, [rdi + 0x8d6]
mov qword [rsp + 0x20], rsi
lea r9, str.OUTPUT
mov r8, r12
lea rdx, str.VSPerfMon___s___s:__s_
lea rcx, [rsp + 0x40]
call fcn.14000df68
or dword [rsp + 0x28], 0xffffffff
lea rax, str.TRACE
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, r12
lea edx, [r9 + 2]
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x140008796
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400078a4
nop
mov esi, r15d
cmp dword [rbp - 0x48], r15d
jle 0x14000878d
call fcn.140001424
test rax, rax
je 0x140008782
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
test r15, r15
js 0x140008772
cmp esi, dword [rbp - 0x48]
jge 0x140008772
mov r9, qword [rbp - 0x50]
mov r9, qword [r9 + r15]
lea r8, str.COUNTER
lea rdx, str.___s:__s_
lea rcx, [rbp - 0x80]
call fcn.14000df68
mov rbx, qword [rbp - 0x80]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006dc4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000875e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc esi
add r15, 8
cmp esi, dword [rbp - 0x48]
jl 0x1400086e6
xor r15d, r15d
jmp 0x14000878d
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
nop
mov ecx, 0x80004005
call fcn.140003cb0
nop
lea rcx, [rbp - 0x50]
call fcn.14000755c
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1400078e4
nop
mov esi, r15d
cmp dword [rbp - 0x38], r15d
jle 0x140008857
call fcn.140001424
test rax, rax
je 0x14000884c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
test r15, r15
js 0x14000883c
cmp esi, dword [rbp - 0x38]
jge 0x14000883c
mov r9, qword [rbp - 0x40]
mov r9, qword [r9 + r15]
lea r8, str.USER
lea rdx, str.___s:__s_
lea rcx, [rbp - 0x78]
call fcn.14000df68
mov rbx, qword [rbp - 0x78]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006dc4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008828
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc esi
add r15, 8
cmp esi, dword [rbp - 0x38]
jl 0x1400087b0
xor r15d, r15d
jmp 0x140008857
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
nop
mov ecx, 0x80004005
call fcn.140003cb0
int3
or dword [rsp + 0x28], 0xffffffff
lea rax, str.COVERAGE
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, r12
lea edx, [r9 + 2]
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140008c52
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140007924
nop
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.14000cbb8
test al, al
jne 0x1400088dd
lea rdx, [rbp - 0x70]
call fcn.14000c780
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006ac0
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400088dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str._Instance
lea rcx, [rsp + 0x68]
call fcn.14000d8ac
nop
mov qword [rsp + 0x70], r15
and qword [rsp + 0x78], 0
mov esi, r15d
mov rdx, qword [rsp + 0x50]
test edx, edx
jle 0x140008b98
xor ebx, ebx
test esi, esi
js 0x140008b88
cmp esi, edx
jge 0x140008b88
mov rcx, qword [rsp + 0x48]
mov eax, ebx
cmp dword [rsp + 0x78], ebx
jle 0x140008972
mov r11, qword [rcx + r15]
mov r10, qword [rsp + 0x70]
test r11, r11
je 0x140008b0d
mov rcx, qword [r10]
mov r9, r11
sub r9, rcx
movzx r8d, word [rcx]
cmp r8w, word [rcx + r9]
jne 0x14000895d
add rcx, 2
test r8w, r8w
jne 0x140008944
mov ecx, ebx
jmp 0x140008962
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140008975
inc eax
add r10, 8
cmp eax, dword [rsp + 0x78]
jl 0x140008932
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x140008afe
movsxd rbx, esi
mov rax, qword [rsp + 0x48]
lea rdx, [rax + rbx*8]
lea rcx, [rsp + 0x70]
call fcn.140006ac0
cmp esi, dword [rsp + 0x50]
jge 0x140008b73
mov r12, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
xor eax, eax
test rdx, rdx
je 0x140008a7e
mov rcx, qword [r12 + r15]
cmp dword [rcx - 0x10], eax
jl 0x140008a7e
call fcn.140027ba4
test rax, rax
je 0x140008a7e
sub rax, qword [r12 + r15]
sar rax, 1
test eax, eax
js 0x140008a7e
cmp esi, dword [rsp + 0x50]
jge 0x140008b48
mov rax, qword [rsp + 0x48]
lea rcx, [rax + rbx*8]
lea r8, [0x14005282c]
lea rdx, [0x140052834]
call fcn.14000d244
cmp esi, dword [rsp + 0x50]
jge 0x140008b38
mov rax, qword [rsp + 0x48]
lea rcx, [rax + rbx*8]
lea r8, [0x140052838]
mov rdx, qword [rsp + 0x68]
call fcn.14000d244
cmp esi, dword [rsp + 0x50]
jge 0x140008b28
mov rax, qword [rsp + 0x48]
lea r8, [rax + rbx*8]
lea rcx, [rbp - 0x30]
call fcn.14000cf48
nop
cmp esi, dword [rsp + 0x50]
jge 0x140008b18
mov rcx, qword [rsp + 0x48]
lea rcx, [rcx + rbx*8]
mov rdx, rax
call fcn.14000d7c4
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008a7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
call fcn.140001424
test rax, rax
je 0x140008b68
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x68], rax
cmp esi, dword [rsp + 0x50]
jge 0x140008b58
mov r9, qword [rsp + 0x48]
mov r9, qword [r9 + r15]
lea r8, str.WINCOUNTER
lea rdx, str.___s:__s_
lea rcx, [rbp - 0x68]
call fcn.14000df68
mov rbx, qword [rbp - 0x68]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006dc4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
xor ebx, ebx
sub eax, 1
jg 0x140008af9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x50]
inc esi
add r15, 8
cmp esi, edx
jge 0x140008b83
jmp 0x14000890c
mov ecx, 0x80004005
call fcn.140003cb0
nop
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
nop
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
int3
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
int3
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
nop
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
nop
mov ecx, 0x80004005
call fcn.140003cb0
int3
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
int3
xor r15d, r15d
jmp 0x140008b98
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
int3
mov ebx, 0x1f4
cmp byte [rdi + 0x6cc], r15b
je 0x140008bac
mov ebx, dword [rdi + 0x6c8]
call fcn.140001424
mov rcx, rax
test rax, rax
jne 0x140008bc4
mov ecx, 0x80004005
call fcn.140003cb0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x60], rax
mov r9d, ebx
lea r8, str.AUTOMARK
lea rdx, str.___s:_d
lea rcx, [rbp - 0x60]
call fcn.14000df68
mov rbx, qword [rbp - 0x60]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006dc4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008c1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x70]
call fcn.14000755c
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008c48
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x48]
call fcn.14000755c
cmp word [r13], r15w
je 0x140008cd4
call fcn.140001424
mov rcx, rax
test rax, rax
jne 0x140008c71
mov ecx, 0x80004005
call fcn.140003cb0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x58], rax
movzx eax, word [r13]
neg ax
sbb r9, r9
and r9, r13
lea r8, [0x140052564]
lea rdx, str.___s:__s_
lea rcx, [rbp - 0x58]
call fcn.14000df68
mov rbx, qword [rbp - 0x58]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006dc4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008cd4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r12b, r15b
cmp word [rdi + 0x8d6], r15w
je 0x140008ddb
cmp byte [rdi + 0x45b], r15b
jne 0x140008db1
cmp byte [rdi + 0x45c], r15b
je 0x140008ddb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x140008ddb
cmp byte [0x140067b38], r15b
jne 0x140008d4f
lea r8, [rdi + 0x688]
lea rdx, [rdi + 0x678]
mov rcx, rdi
call fcn.140006500
mov byte [0x140067b38], al
test al, al
jne 0x140008d4f
mov dword [r14], 1
jmp 0x140008ddb
mov esi, r15d
movsxd r15, dword [rdi + 0x680]
xor eax, eax
mov ebx, eax
test r15, r15
jle 0x140008dd8
test rbx, rbx
js 0x140008d9e
cmp esi, dword [rdi + 0x680]
jge 0x140008d9e
mov rax, qword [rdi + 0x678]
lea rdx, [rsp + 0x58]
mov ecx, dword [rax + rbx*4]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x140008d92
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x5c], eax
jne 0x140008dae
inc esi
inc rbx
cmp rbx, r15
jl 0x140008d62
jmp 0x140008dd8
mov edx, 1
mov ecx, 0xc000008c
call fcn.140001260
int3
xor r15d, r15d
mov r12b, 1
lea rdx, str.__CS
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140008dbf
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140006dc4
jmp 0x140008ddb
xor r15d, r15d
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x20]
call fcn.1400280e0
mov dword [rbp + 0x20], ebx
xor edx, edx
lea r8d, [rbx - 0x38]
lea rcx, [rbp + 0x88]
call fcn.1400280e0
nop
xor eax, eax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
cmp qword [rbp + 0x98], r15
jne 0x140008e70
cmp qword [rbp + 0xb0], r15
jne 0x140008e70
mov dword [rbp], 0x18
mov qword [rbp + 8], r15
mov dword [rbp + 0x10], 1
xor r9d, r9d
lea r8, [rbp]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140008e5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140008e70
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x80], rax
bts dword [rbp + 0x5c], 8
mov rbx, qword [rsp + 0x40]
mov edx, dword [rbx - 0x10]
add edx, 1
jns 0x140008e88
mov ecx, 0x80070057
call fcn.140003cb0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140008ea8
lea rcx, [rsp + 0x40]
call fcn.1400072ac
mov rbx, qword [rsp + 0x40]
mov edi, 0x104
mov r8d, edi
lea rdx, [rbp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140008ed0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x140009125
cmp eax, edi
ja 0x140009120
mov edx, 0x5c
lea rcx, [rbp + 0x130]
call fcn.140027da4
test rax, rax
jne 0x140008ef6
lea ecx, [rax + 0x7b]
jmp 0x140009125
mov word [rax + 2], r15w
mov rcx, rdi
lea rax, [rbp + 0x130]
cmp word [rax], r15w
je 0x140008f15
add rax, 2
sub rcx, 1
jne 0x140008f05
mov rax, rcx
neg rax
sbb edx, edx
not edx
and edx, 0x80070057
test rcx, rcx
je 0x140008f32
mov rax, rdi
sub rax, rcx
jmp 0x140008f35
mov rax, r15
mov qword [rbp - 0x28], rax
test edx, edx
js 0x140009120
sub rdi, rax
lea rcx, [rbp + 0x130]
lea rcx, [rcx + rax*2]
mov r9d, r15d
je 0x140008f8e
lea rdx, [rax + 0x7ffffefa]
add rdx, rdi
lea rax, str.vsperfmon.exe
sub rax, rcx
test rdx, rdx
je 0x140008f89
movzx r8d, word [rcx + rax]
test r8w, r8w
je 0x140008f89
mov word [rcx], r8w
add rcx, 2
dec rdx
sub rdi, 1
jne 0x140008f68
test rdi, rdi
jne 0x140008f98
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], r15w
test r9d, r9d
js 0x140009120
xor r9d, r9d
mov r8, rbx
mov dl, 0x13
call fcn.140015adc
movzx eax, word [r13]
neg ax
sbb rcx, rcx
and rcx, r13
xor r12b, 1
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], r12b
lea r9, [rbp - 0x18]
lea r8, [rbp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x130]
call fcn.140019d84
mov edi, eax
xor r9d, r9d
mov r8, rbx
mov dl, 0x14
call fcn.140015adc
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002a5c0
test eax, eax
js 0x140009115
cmp eax, dword [rbx - 0xc]
jg 0x140009115
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14000902a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400090cf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400090cf
cmp eax, 1
je 0x1400090e8
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x1400090e8
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
mov r8d, 0x63
lea rdx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140009092
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x140009095
mov ecx, r15d
test ecx, ecx
js 0x1400090e8
mov eax, dword [rsp + 0x60]
cmp rax, 0x64
jae 0x1400090e2
mov byte [rbp + rax + 0xc0], r15b
mov rcx, qword [r14 + 8]
lea rax, [rbp + 0xc0]
mov qword [rbp - 0x20], rax
mov rax, qword [rcx]
lea r9, [rbp - 0x20]
mov edx, 0xa1230917
mov r8d, 1
call qword [rax + 8]
lea rcx, [rbp + 0x20]
call fcn.140015c64
test eax, eax
jns 0x140009042
jmp 0x1400090e8
call fcn.1400267e8
int3
test edi, edi
je 0x14000910b
mov eax, edi
and eax, 0x1fff0000
mov rcx, qword [r14 + 8]
xor r9d, r9d
xor r8d, r8d
cmp eax, 0x1230000
mov rax, qword [rcx]
jne 0x140009138
mov edx, edi
jmp 0x14000913d
mov dword [r14 + 0x10], 1
jmp 0x140009146
mov ecx, 0x80070057
call fcn.140003cb0
int3
mov ecx, 0x6f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xe1230572
call qword [rax]
mov dword [r14], 1
lea rdi, [rbp + 0xa0]
mov esi, 3
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x140009161
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000916f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 8
sub rsi, 1
jne 0x140009152
lea rcx, [rbp - 0x40]
call fcn.14000755c
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000919d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140026390
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret