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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x2c8]
sub rsp, 0x3c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400f4080]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov esi, 1
xor eax, eax
lock cmpxchg dword [0x1400f9ae0], esi
jne 0x140045e02
call fcn.14000ee4c
mov rbx, rax
mov dword [rax + 8], 0x11c
lea rcx, [0x1400d40b0]
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 0x140045b24
lea rcx, [rbx + 8]
call rax
mov eax, dword [rbx + 0xc]
xor edi, edi
test eax, eax
je 0x140045c15
shl eax, 8
or eax, dword [rbx + 0x10]
sub eax, 0x501
je 0x140045c13
sub eax, 0x100
je 0x140045c0b
sub eax, esi
je 0x140045c03
sub eax, esi
je 0x140045bfb
cmp eax, 0x3fd
je 0x140045b6b
mov dword [rbx], edi
jmp 0x140045c15
mov eax, dword [rbx + 0x14]
cmp eax, 0x4a61
jb 0x140045b80
mov dword [rbx], 0xd
jmp 0x140045c15
cmp eax, 0x47bb
jb 0x140045b92
mov dword [rbx], 0xc
jmp 0x140045c15
cmp eax, 0x47ba
jb 0x140045ba1
mov dword [rbx], 0xb
jmp 0x140045c15
cmp eax, 0x4563
jb 0x140045bb0
mov dword [rbx], 0xa
jmp 0x140045c15
cmp eax, 0x42ee
jb 0x140045bbf
mov dword [rbx], 9
jmp 0x140045c15
cmp eax, 0x3fab
jb 0x140045bce
mov dword [rbx], 8
jmp 0x140045c15
cmp eax, 0x3ad7
jb 0x140045bdd
mov dword [rbx], 7
jmp 0x140045c15
cmp eax, 0x3839
jb 0x140045bec
mov dword [rbx], 6
jmp 0x140045c15
cmp eax, 0x295a
jb 0x140045c15
mov dword [rbx], 5
jmp 0x140045c15
mov dword [rbx], 4
jmp 0x140045c15
mov dword [rbx], 3
jmp 0x140045c15
mov dword [rbx], 2
jmp 0x140045c15
mov dword [rbx], esi
call fcn.140045480
mov dword [rbx + 4], eax
movdqa xmm0, xmmword [0x1400d6210]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.140003dc0
lea rcx, [rsp + 0x28]
call fcn.140045e40
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140045c8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045c88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045e32
call fcn.140069674
movdqa xmm0, xmmword [0x1400d6210]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.140003dc0
lea rcx, [rsp + 0x48]
call fcn.140045e40
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140045cfd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045cf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045e2c
call fcn.140069674
call fcn.140045f60
mov word [rsp + 0x20], di
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x78], di
jne 0x140045d3b
mov byte [rsp + 0x20], sil
jmp 0x140045d5c
mov dword [rsp + 0x70], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x70], edi
setne byte [rsp + 0x21]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.14005fd50
nop
lea r8, [rbp + 0x130]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.14005f690
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x50]
call fcn.140064d90
nop
lea rcx, [rbp + 0x130]
call fcn.14003b1e0
lea rcx, [rbp - 0x50]
call fcn.14003b1e0
call fcn.140048350
mov rbx, rax
xor edx, edx
lea ecx, [rdx + 0xa]
xor r9d, r9d
call fcn.14000eebc
test al, al
je 0x140045dc9
mov rcx, rbx
call fcn.14004a000
jmp 0x140045e02
mov edx, 3
lea ecx, [rdx + 3]
xor r9d, r9d
call fcn.14000eebc
test al, al
je 0x140045de7
mov rcx, rbx
call fcn.14004a3b0
jmp 0x140045e02
mov edx, esi
mov ecx, 6
xor r9d, r9d
call fcn.14000eebc
test al, al
je 0x140045e02
mov rcx, rbx
call fcn.14004a740
mov al, 1
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140069650
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400927c0
int3
call fcn.1400927c0
int3