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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov esi, 1
xor eax, eax
lock cmpxchg dword [0x1400f39a0], esi
jne 0x140046627
call fcn.140013504
mov rbx, rax
mov dword [rax + 8], 0x11c
lea rcx, [0x1400d7288]
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 0x14004637c
lea rcx, [rbx + 8]
call rax
mov eax, dword [rbx + 0xc]
xor edi, edi
test eax, eax
je 0x140046445
shl eax, 8
or eax, dword [rbx + 0x10]
sub eax, 0x501
je 0x140046443
sub eax, 0x100
je 0x14004643b
sub eax, esi
je 0x140046433
sub eax, esi
je 0x14004642b
cmp eax, 0x3fd
je 0x1400463bf
mov dword [rbx], edi
jmp 0x140046445
mov eax, dword [rbx + 0x14]
cmp eax, 0x47ba
jb 0x1400463d1
mov dword [rbx], 0xb
jmp 0x140046445
cmp eax, 0x4563
jb 0x1400463e0
mov dword [rbx], 0xa
jmp 0x140046445
cmp eax, 0x42ee
jb 0x1400463ef
mov dword [rbx], 9
jmp 0x140046445
cmp eax, 0x3fab
jb 0x1400463fe
mov dword [rbx], 8
jmp 0x140046445
cmp eax, 0x3ad7
jb 0x14004640d
mov dword [rbx], 7
jmp 0x140046445
cmp eax, 0x3839
jb 0x14004641c
mov dword [rbx], 6
jmp 0x140046445
cmp eax, 0x295a
jb 0x140046445
mov dword [rbx], 5
jmp 0x140046445
mov dword [rbx], 4
jmp 0x140046445
mov dword [rbx], 3
jmp 0x140046445
mov dword [rbx], 2
jmp 0x140046445
mov dword [rbx], esi
call fcn.140045d50
mov dword [rbx + 4], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.1400068b8
lea rcx, [rsp + 0x28]
call fcn.140046660
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400464bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400464b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046657
call fcn.14006a794
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.1400068b8
lea rcx, [rsp + 0x48]
call fcn.140046660
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004652d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046528
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046651
call fcn.14006a794
call fcn.140046780
mov word [rsp + 0x20], di
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], di
jne 0x140046560
mov byte [rsp + 0x20], sil
jmp 0x140046581
mov dword [rsp + 0x68], edi
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], edi
setne byte [rsp + 0x21]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140061b30
nop
lea r8, [rbp + 0x120]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140061240
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x60]
call fcn.1400662a0
nop
lea rcx, [rbp + 0x120]
call fcn.14003caa0
lea rcx, [rbp - 0x60]
call fcn.14003caa0
call fcn.1400491e0
mov rbx, rax
xor edx, edx
lea ecx, [rdx + 0xa]
xor r9d, r9d
call fcn.140013574
test al, al
je 0x1400465ee
mov rcx, rbx
call fcn.14004b160
jmp 0x140046627
mov edx, 3
lea ecx, [rdx + 3]
xor r9d, r9d
call fcn.140013574
test al, al
je 0x14004660c
mov rcx, rbx
call fcn.14004b550
jmp 0x140046627
mov edx, esi
mov ecx, 6
xor r9d, r9d
call fcn.140013574
test al, al
je 0x140046627
mov rcx, rbx
call fcn.14004b900
mov al, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14006a770
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140095e24
int3
call fcn.140095e24
int3