Function at 0x140045d40
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 [0x1400f0020]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x1400f5aa0], edi
jne 0x140046091
mov dword [0x1400f5908], 0x11c
lea rcx, [0x1400d8d80]
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 0x140045db5
lea rcx, [0x1400f5908]
call rax
mov eax, dword [0x1400f590c]
xor ebx, ebx
test eax, eax
je 0x140045ec1
shl eax, 8
or eax, dword [0x1400f5910]
sub eax, 0x501
je 0x140045ebb
sub eax, 0x100
je 0x140045eaf
sub eax, edi
je 0x140045ea3
sub eax, edi
je 0x140045e97
cmp eax, 0x3fd
je 0x140045e06
mov dword [0x1400f5900], ebx
jmp 0x140045ec1
mov eax, dword [0x1400f5914]
cmp eax, 0x47ba
jb 0x140045e22
mov dword [0x1400f5900], 0xb
jmp 0x140045ec1
cmp eax, 0x4563
jb 0x140045e38
mov dword [0x1400f5900], 0xa
jmp 0x140045ec1
cmp eax, 0x42ee
jb 0x140045e4b
mov dword [0x1400f5900], 9
jmp 0x140045ec1
cmp eax, 0x3fab
jb 0x140045e5e
mov dword [0x1400f5900], 8
jmp 0x140045ec1
cmp eax, 0x3ad7
jb 0x140045e71
mov dword [0x1400f5900], 7
jmp 0x140045ec1
cmp eax, 0x3839
jb 0x140045e84
mov dword [0x1400f5900], 6
jmp 0x140045ec1
cmp eax, 0x295a
jb 0x140045ec1
mov dword [0x1400f5900], 5
jmp 0x140045ec1
mov dword [0x1400f5900], 4
jmp 0x140045ec1
mov dword [0x1400f5900], 3
jmp 0x140045ec1
mov dword [0x1400f5900], 2
jmp 0x140045ec1
mov dword [0x1400f5900], edi
call fcn.140045780
mov dword [0x1400f5904], eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bx
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.140006890
lea rcx, [rsp + 0x28]
call fcn.1400460d0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140045f3c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045f37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400460bd
call fcn.14006a754
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.140006890
lea rcx, [rsp + 0x48]
call fcn.1400460d0
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140045fac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045fa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400460b7
call fcn.14006a754
call fcn.1400461f0
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 0x140045fdf
mov byte [rsp + 0x20], dil
jmp 0x140046000
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.1400616b0
nop
lea r8, [rbp + 0x120]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140060dc0
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x60]
call fcn.140066190
nop
lea rcx, [rbp + 0x120]
call fcn.14003c530
lea rcx, [rbp - 0x60]
call fcn.14003c530
call fcn.140048c70
mov ecx, dword [0x1400f590c]
test ecx, ecx
je 0x140046091
cmp ecx, 9
ja 0x140046089
cmp ecx, 6
ja 0x14004607f
jb 0x140046091
mov ecx, dword [0x1400f5910]
cmp ecx, 3
jae 0x14004607f
cmp ecx, 1
jb 0x140046091
mov rcx, rax
call fcn.14004b290
jmp 0x140046091
mov rcx, rax
call fcn.14004aee0
jmp 0x140046091
mov rcx, rax
call fcn.14004aaf0
mov al, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14006a730
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140097d64
int3
call fcn.140097d64
int3