Function at 0x140046480
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 [0x1400f3080]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov esi, 1
xor eax, eax
lock cmpxchg dword [0x1400f8a70], esi
jne 0x1400467af
call fcn.140013564
mov rbx, rax
mov dword [rax + 8], 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 0x140046504
lea rcx, [rbx + 8]
call rax
mov eax, dword [rbx + 0xc]
xor edi, edi
test eax, eax
je 0x1400465cd
shl eax, 8
or eax, dword [rbx + 0x10]
sub eax, 0x501
je 0x1400465cb
sub eax, 0x100
je 0x1400465c3
sub eax, esi
je 0x1400465bb
sub eax, esi
je 0x1400465b3
cmp eax, 0x3fd
je 0x140046547
mov dword [rbx], edi
jmp 0x1400465cd
mov eax, dword [rbx + 0x14]
cmp eax, 0x47ba
jb 0x140046559
mov dword [rbx], 0xb
jmp 0x1400465cd
cmp eax, 0x4563
jb 0x140046568
mov dword [rbx], 0xa
jmp 0x1400465cd
cmp eax, 0x42ee
jb 0x140046577
mov dword [rbx], 9
jmp 0x1400465cd
cmp eax, 0x3fab
jb 0x140046586
mov dword [rbx], 8
jmp 0x1400465cd
cmp eax, 0x3ad7
jb 0x140046595
mov dword [rbx], 7
jmp 0x1400465cd
cmp eax, 0x3839
jb 0x1400465a4
mov dword [rbx], 6
jmp 0x1400465cd
cmp eax, 0x295a
jb 0x1400465cd
mov dword [rbx], 5
jmp 0x1400465cd
mov dword [rbx], 4
jmp 0x1400465cd
mov dword [rbx], 3
jmp 0x1400465cd
mov dword [rbx], 2
jmp 0x1400465cd
mov dword [rbx], esi
call fcn.140045db0
mov dword [rbx + 4], eax
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.140004c64
lea rcx, [rsp + 0x28]
call fcn.1400467f0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140046645
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046640
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400467df
call fcn.14006bb24
movdqa xmm0, xmmword [0x1400d76e0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.140004c64
lea rcx, [rsp + 0x48]
call fcn.1400467f0
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400466b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400466b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400467d9
call fcn.14006bb24
call fcn.140046910
mov word [rsp + 0x20], di
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x78], di
jne 0x1400466e8
mov byte [rsp + 0x20], sil
jmp 0x140046709
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.140061920
nop
lea r8, [rbp + 0x130]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140061340
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x50]
call fcn.140066e90
nop
lea rcx, [rbp + 0x130]
call fcn.14003cba0
lea rcx, [rbp - 0x50]
call fcn.14003cba0
call fcn.140049840
mov rbx, rax
xor edx, edx
lea ecx, [rdx + 0xa]
xor r9d, r9d
call fcn.1400135d4
test al, al
je 0x140046776
mov rcx, rbx
call fcn.14004b4a0
jmp 0x1400467af
mov edx, 3
lea ecx, [rdx + 3]
xor r9d, r9d
call fcn.1400135d4
test al, al
je 0x140046794
mov rcx, rbx
call fcn.14004b890
jmp 0x1400467af
mov edx, esi
mov ecx, 6
xor r9d, r9d
call fcn.1400135d4
test al, al
je 0x1400467af
mov rcx, rbx
call fcn.14004bc50
mov al, 1
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14006bb00
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.140095014
int3
call fcn.140095014
int3