Function at 0x180005410
Capabilities:
Check os version

Disassembly:
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov r8d, 0x104
lea rdx, [rbp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x180005452
call fcn.180005b00
mov rcx, rax
call fcn.180005df0
xor eax, eax
add rsp, 0x4b0
pop rbp
ret
mov qword [rsp + 0x4d0], rbx
lea rax, [rbp + 0x180]
mov qword [rsp + 0x4d8], rsi
xor esi, esi
mov qword [rsp + 0x4a8], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x4a0], r12
mov r8, rdi
mov qword [rsp + 0x490], r14
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
inc r8
cmp word [rax + r8*2], si
jne 0x1800054a0
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x498], r13
lea rcx, [rsp + 0x30]
call fcn.180001f80
cmp qword [rsp + 0x48], 8
lea rbx, [rsp + 0x30]
mov r14, qword [rsp + 0x40]
cmovae rbx, qword [rsp + 0x30]
setae r12b
test r14, r14
je 0x18000565d
mov r13d, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
mov r8d, r13d
xor edx, edx
call fcn.18000beb0
lea rcx, [0x18003adfc]
lea rdx, [0x18003adfe]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, r13w
jae 0x18000555f
movzx eax, al
add rcx, 2
mov byte [rsp + rax + 0x70], 1
cmp rcx, rdx
jne 0x180005510
lea rcx, [r14 - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, r13w
jae 0x180005550
cmp byte [rsp + rax + 0x70], sil
jne 0x1800055b0
cmp rcx, rbx
je 0x18000565d
sub rcx, 2
jmp 0x180005540
lea rcx, [r14 - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [rcx]
lea rax, [0x18003adfc]
mov edx, 1
cmp word [rax], r8w
je 0x1800055b0
add rax, 2
sub rdx, 1
jne 0x180005590
cmp rcx, rbx
je 0x1800055ab
sub rcx, 2
jmp 0x180005580
mov rcx, rdi
jmp 0x1800055b6
sub rcx, rbx
sar rcx, 1
cmp rcx, rdi
je 0x18000565d
inc rcx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
cmp r14, rcx
jb 0x180005860
sub r14, rcx
lea rax, [rsp + 0x30]
cmp r14, rdi
cmovb rdi, r14
test r12b, r12b
mov r8, rdi
cmovne rax, qword [rsp + 0x30]
lea rdx, [rax + rcx*2]
lea rcx, [rsp + 0x50]
call fcn.180001f80
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180005649
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005644
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000585a
call fcn.1800097a8
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
lea rcx, [rsp + 0x30]
call fcn.180004b90
mov ecx, 0x3c
call fcn.1800097ec
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, rdi
call fcn.180001830
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x118
call fcn.18000beb0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180005798
cmp dword [rbp - 0x80], 2
jne 0x180005798
cmp dword [rsp + 0x74], 5
jbe 0x180005798
mov qword [rbp + 0x3c8], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x3c8]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180005798
mov rcx, qword [rbp + 0x3c8]
lea rax, [rbp + 0x3c0]
xor r9d, r9d
mov dword [rbp + 0x3c0], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x18000578b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000578b
mov edx, dword [rbp + 0x3c0]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18000578b
mov r9d, dword [rbp + 0x3c0]
lea rax, [rbp + 0x3c0]
mov rcx, qword [rbp + 0x3c8]
mov r8, rbx
mov edx, 0x19
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180005782
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [rbx]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov esi, dword [rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x3c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1800097a8
cmp esi, 0x3000
jne 0x1800057af
call fcn.180005090
jmp 0x1800057e1
lea r9, [rbp + 0x180]
mov edx, 0x104
lea r8, [0x18003ae00]
lea rcx, [rsp + 0x70]
call fcn.180003400
lea rcx, [rsp + 0x70]
call fcn.180001a20
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18000581f
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000581a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000585a
call fcn.1800097a8
mov r13, qword [rsp + 0x498]
xor eax, eax
mov r12, qword [rsp + 0x4a0]
mov rdi, qword [rsp + 0x4a8]
mov rsi, qword [rsp + 0x4d8]
mov rbx, qword [rsp + 0x4d0]
mov r14, qword [rsp + 0x490]
add rsp, 0x4b0
pop rbp
ret
call fcn.180010944
int3
call fcn.180002180
int3