Function at 0x180001df0
Capabilities:
Check os version
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18002e010]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, rcx
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x64], r13d
cmp byte [rcx + 0x48], r13b
jne 0x1800022c4
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
mov r8d, 0xc
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x70]
call fcn.180003080
nop
lea rcx, [rsp + 0x70]
call fcn.180006ef0
test al, al
sete bl
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180001ec9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001ec4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022fa
call fcn.18000c054
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
test bl, bl
je 0x180001ef4
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [r15 + 0x48], 0
jmp 0x180001e41
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
mov r8d, 0x1b
lea rdx, str.2345SafeCenterInstaller.exe
lea rcx, [rbp - 0x70]
call fcn.180003080
nop
lea rcx, [rbp - 0x70]
call fcn.180006ef0
movzx ebx, al
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x180001f70
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001f6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002300
call fcn.18000c054
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
test bl, bl
je 0x180001f9a
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [r15 + 0x48], 0
jmp 0x180001e41
mov qword [rbp + 8], r13
mov ecx, 1
call fcn.18000c05c
mov rbx, rax
mov qword [rbp + 8], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp + 0x24]
call fcn.18000dba0
mov dword [rbp + 0x20], 0x11c
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180001fe1
cmp dword [rbp + 0x24], 6
setae al
mov byte [rbx], al
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x68], r13
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
call fcn.180005080
test al, al
je 0x18000210c
mov dword [rbp], 0
mov word [rbp + 4], 0x500
xor r14b, r14b
lea rdx, [0x18002ec20]
mov ecx, 0x400
call fcn.18000c098
mov rdi, rax
mov rsi, qword [rsp + 0x68]
test rax, rax
je 0x180002102
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8, rdi
mov edx, 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800020dd
lea rax, [rbp - 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1800020dd
mov ebx, r13d
cmp dword [rdi], r13d
jbe 0x1800020d3
nop word [rax + rax]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rdi + rdx*8 + 8]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1800020d0
inc ebx
cmp ebx, dword [rdi]
jb 0x1800020b0
jmp 0x1800020d3
mov r14b, 1
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call fcn.18000c054
test r14b, r14b
je 0x180002102
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 8]
call fcn.1800043e0
mov dil, 1
jmp 0x180002118
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 8]
call fcn.1800043e0
xor dil, dil
test dil, dil
je 0x180002167
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r13w
mov r8d, 0x11
lea rdx, str.2345RTProtect.exe
lea rcx, [rbp - 0x50]
call fcn.180003080
nop
or r12d, 1
mov dword [rsp + 0x64], r12d
lea rcx, [rbp - 0x50]
call fcn.180006ef0
test al, al
jne 0x180002167
mov bl, 1
jmp 0x180002169
xor bl, bl
test r12b, 1
je 0x1800021c9
and r12d, 0xfffffffe
mov dword [rsp + 0x64], r12d
mov rax, qword [rbp - 0x38]
cmp rax, 8
jb 0x1800021b8
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800021b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002306
call fcn.18000c054
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r13w
test bl, bl
je 0x18000228d
mov rcx, r15
call fcn.1800026c0
test al, al
jne 0x180002289
cmp qword [r15 + 0x18], 0
jne 0x1800021f0
mov rcx, r15
call fcn.180002310
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
mov r8d, 5
lea rdx, str._load
lea rcx, [rbp - 0x30]
call fcn.180003080
nop
mov dword [rsp + 0x60], r13d
lea rcx, [r15 + 8]
lea r9, [rsp + 0x60]
lea rdx, [rbp - 0x30]
call fcn.180008f00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x180002278
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002273
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800022f4
call fcn.18000c054
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r13w
inc dword [r15 + 0x54]
mov ecx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_Sleep]
test dil, dil
je 0x1800022a5
mov rcx, r15
call fcn.180002930
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
test dil, dil
je 0x1800022ba
call fcn.180002cc0
cmp byte [r15 + 0x48], 0
jmp 0x180001e41
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.18000c030
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800101e4
int3
call fcn.1800101e4
int3
call fcn.1800101e4
int3
call fcn.1800101e4
int3