Function at 0x18000a2f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2670]
mov eax, 0x2770
call fcn.1800930a0
sub rsp, rax
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x27b0], rbx
mov rax, qword [0x1800fb008]
xor rax, rsp
mov qword [rbp + 0x2660], rax
mov qword [rsp + 0x58], r8
mov r15, rdx
xor ebx, ebx
mov qword [rdx], rbx
call fcn.18000a240
mov dword [rsp + 0x54], eax
cmp eax, 0xffffffff
je 0x18000a834
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
lea r8d, [rbx + 9]
lea rdx, str.Psapi.dll
lea rcx, [rsp + 0x60]
call fcn.180003940
nop
call fcn.18000f330
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.18000f3e0
mov rdi, rax
cmp qword [rsp + 0x78], 8
jb 0x18000a3ab
mov rcx, qword [rsp + 0x60]
call fcn.18008861c
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
mov r8d, 0xc
lea rdx, str.Advapi32.dll
lea rcx, [rbp - 0x60]
call fcn.180003940
nop
call fcn.18000f330
mov rcx, rax
lea rdx, [rbp - 0x60]
call fcn.18000f3e0
mov rsi, rax
cmp qword [rbp - 0x48], 8
jb 0x18000a411
mov rcx, qword [rbp - 0x60]
call fcn.18008861c
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
mov r8d, 0xc
lea rdx, str.Wtsapi32.dll
lea rcx, [rbp - 0x80]
call fcn.180003940
nop
call fcn.18000f330
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.18000f3e0
mov r14, rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x68], 8
jb 0x18000a478
mov rcx, qword [rbp - 0x80]
call fcn.18008861c
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
test rdi, rdi
je 0x18000a834
test rsi, rsi
je 0x18000a834
test r14, r14
je 0x18000a834
lea rdx, str.EnumProcesses
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, str.GetModuleFileNameExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov qword [rbp - 0x20], rax
lea rdx, str.GetProcessImageFileNameA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rbp - 0x30], rax
lea rdx, str.OpenProcessToken
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
mov qword [rbp - 0x38], rax
lea rdx, str.GetTokenInformation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x40], rax
test r14, r14
je 0x18000a834
test r12, r12
jne 0x18000a526
test rdi, rdi
je 0x18000a834
test r13, r13
je 0x18000a834
test rax, rax
je 0x18000a834
mov dword [rbp + 0x10], ebx
xor edx, edx
mov r8d, 0x1ffc
lea rcx, [rbp + 0x14]
call fcn.18008c480
mov dword [rbp], ebx
lea r8, [rbp]
mov edx, 0x2000
lea rcx, [rbp + 0x10]
call r14
test eax, eax
je 0x18000a834
mov r13d, dword [rbp]
shr r13d, 2
mov eax, 0x800
cmp r13d, eax
cmovae r13d, eax
mov dword [rbp - 8], ebx
mov dword [rbp + 4], ebx
mov esi, ebx
mov dword [rsp + 0x50], ebx
test r13d, r13d
je 0x18000a82b
lea r12, [rbp + 0x10]
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x209
lea rcx, [rbp + 0x2340]
call fcn.18008c480
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x2550]
call fcn.18008c480
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x2230]
call fcn.18008c480
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x2120]
call fcn.18008c480
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x2010]
call fcn.18008c480
mov r8d, dword [r12]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x18000a63a
mov r8d, dword [r12]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x18000a7e9
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x18000a659
mov r8d, 0x208
lea rdx, [rbp + 0x2340]
mov rcx, rdi
call rax
test eax, eax
jne 0x18000a682
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x18000a7ca
mov r9d, 0x208
lea r8, [rbp + 0x2340]
xor edx, edx
mov rcx, rdi
call rax
test eax, eax
je 0x18000a7ca
mov qword [rsp + 0x40], 0x104
lea rax, [rbp + 0x2010]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0x2120]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x104
lea r9, [rbp + 0x2230]
mov r8d, 0x104
lea rdx, [rbp + 0x2550]
lea rcx, [rbp + 0x2340]
call fcn.180089404
lea rdx, [rbp + 0x2120]
lea rcx, str.explorer
call fcn.180089210
test eax, eax
jne 0x18000a7ca
lea rdx, [rbp + 0x2010]
lea rcx, str..exe
call fcn.180089210
test eax, eax
jne 0x18000a7ca
mov r8, r15
mov edx, 0x2000e
mov rcx, rdi
call qword [rbp - 0x38]
test eax, eax
je 0x18000a7ca
mov rcx, qword [r15]
test rcx, rcx
je 0x18000a7db
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 8]
lea edx, [r9 + 8]
call qword [rbp - 0x40]
test eax, eax
je 0x18000a7ca
mov eax, dword [rsp + 0x54]
cmp dword [rbp - 8], eax
je 0x18000a818
lea rdx, str.WTSQuerySessionInformationW
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, str.WTSFreeMemory
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r14, r14
je 0x18000a7c6
test rax, rax
je 0x18000a7c6
mov qword [rbp - 0x10], rbx
mov dword [rbp - 4], ebx
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
mov r8d, 8
mov edx, dword [rbp - 8]
xor ecx, ecx
call r14
test eax, eax
je 0x18000a7c6
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000a7c6
cmp dword [rbp - 4], 4
jne 0x18000a7c4
cmp dword [rcx], 0
je 0x18000a7fd
call rsi
mov esi, dword [rsp + 0x50]
mov rcx, qword [r15]
test rcx, rcx
je 0x18000a7db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15], rbx
test rdi, rdi
je 0x18000a7e9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [rsp + 0x50], esi
add r12, 4
cmp esi, r13d
jae 0x18000a82b
jmp 0x18000a5a0
call rsi
mov qword [rbp - 0x10], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 8]
mov rdx, qword [rsp + 0x58]
mov dword [rdx], eax
jmp 0x18000a82b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rbp - 8]
mov rdx, qword [rsp + 0x58]
mov dword [rdx], ecx
cmp qword [r15], 0
setne al
jmp 0x18000a836
xor al, al
mov rcx, qword [rbp + 0x2660]
xor rcx, rsp
call fcn.180087ea0
mov rbx, qword [rsp + 0x27b0]
add rsp, 0x2770
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret