Function at 0x1400301b0
Capabilities:
Acquire debug privileges
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x1400bc060]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x1400bfb68], edi
jne 0x140030565
mov dword [0x1400bfcb8], 0x11c
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030225
lea rcx, [0x1400bfcb8]
call rax
mov eax, dword [0x1400bfcbc]
xor ebx, ebx
test eax, eax
je 0x140030389
shl eax, 8
or eax, dword [0x1400bfcc0]
sub eax, 0x501
je 0x140030383
sub eax, 0x100
je 0x140030377
sub eax, edi
je 0x14003036b
sub eax, edi
je 0x14003035f
cmp eax, 0x3fd
je 0x140030276
mov dword [0x1400bfcb0], ebx
jmp 0x140030389
mov eax, dword [0x1400bfcc4]
cmp eax, 0x585d
jb 0x140030292
mov dword [0x1400bfcb0], 0xf
jmp 0x140030389
cmp eax, 0x55f0
jb 0x1400302a8
mov dword [0x1400bfcb0], 0xe
jmp 0x140030389
cmp eax, 0x4a61
jb 0x1400302be
mov dword [0x1400bfcb0], 0xd
jmp 0x140030389
cmp eax, 0x47bb
jb 0x1400302d4
mov dword [0x1400bfcb0], 0xc
jmp 0x140030389
cmp eax, 0x47ba
jb 0x1400302ea
mov dword [0x1400bfcb0], 0xb
jmp 0x140030389
cmp eax, 0x4563
jb 0x140030300
mov dword [0x1400bfcb0], 0xa
jmp 0x140030389
cmp eax, 0x42ee
jb 0x140030313
mov dword [0x1400bfcb0], 9
jmp 0x140030389
cmp eax, 0x3fab
jb 0x140030326
mov dword [0x1400bfcb0], 8
jmp 0x140030389
cmp eax, 0x3ad7
jb 0x140030339
mov dword [0x1400bfcb0], 7
jmp 0x140030389
cmp eax, 0x3839
jb 0x14003034c
mov dword [0x1400bfcb0], 6
jmp 0x140030389
cmp eax, 0x295a
jb 0x140030389
mov dword [0x1400bfcb0], 5
jmp 0x140030389
mov dword [0x1400bfcb0], 4
jmp 0x140030389
mov dword [0x1400bfcb0], 3
jmp 0x140030389
mov dword [0x1400bfcb0], 2
jmp 0x140030389
mov dword [0x1400bfcb0], edi
call fcn.14002fd80
mov dword [0x1400bfcb4], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov r8d, 0x10
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.140007120
lea rcx, [rsp + 0x28]
call fcn.1400305a0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14003040a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030405
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030591
call fcn.14004afd0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov r8d, 0x15
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.140007120
lea rcx, [rsp + 0x48]
call fcn.1400305a0
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140030480
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003047b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003058b
call fcn.14004afd0
call fcn.1400306c0
mov word [rsp + 0x20], bx
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x70], bx
jne 0x1400304b3
mov byte [rsp + 0x20], dil
jmp 0x1400304d4
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x68], ebx
setne byte [rsp + 0x21]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140041370
nop
lea r8, [rbp + 0x120]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140040a40
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x60]
call fcn.140047800
nop
lea rcx, [rbp + 0x120]
call fcn.14001cfe0
lea rcx, [rbp - 0x60]
call fcn.14001cfe0
call fcn.14001f250
mov ecx, dword [0x1400bfcbc]
test ecx, ecx
je 0x140030565
cmp ecx, 9
ja 0x14003055d
cmp ecx, 6
ja 0x140030553
jb 0x140030565
mov ecx, dword [0x1400bfcc0]
cmp ecx, 3
jae 0x140030553
cmp ecx, 1
jb 0x140030565
mov rcx, rax
call fcn.140021330
jmp 0x140030565
mov rcx, rax
call fcn.140021100
jmp 0x140030565
mov rcx, rax
call fcn.140020ea0
mov al, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14004afb0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140058230
int3
call fcn.140058230
int3