Function at 0x140045b80
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 [0x1400c50b0]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x1400c94d0], edi
jne 0x140045f29
mov dword [0x1400c9338], 0x11c
lea rcx, [0x1400b2bc0]
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 0x140045bf5
lea rcx, [0x1400c9338]
call rax
mov eax, dword [0x1400c933c]
xor ebx, ebx
test eax, eax
je 0x140045d59
shl eax, 8
or eax, dword [0x1400c9340]
sub eax, 0x501
je 0x140045d53
sub eax, 0x100
je 0x140045d47
sub eax, edi
je 0x140045d3b
sub eax, edi
je 0x140045d2f
cmp eax, 0x3fd
je 0x140045c46
mov dword [0x1400c9330], ebx
jmp 0x140045d59
mov eax, dword [0x1400c9344]
cmp eax, 0x585d
jb 0x140045c62
mov dword [0x1400c9330], 0xf
jmp 0x140045d59
cmp eax, 0x55f0
jb 0x140045c78
mov dword [0x1400c9330], 0xe
jmp 0x140045d59
cmp eax, 0x4a61
jb 0x140045c8e
mov dword [0x1400c9330], 0xd
jmp 0x140045d59
cmp eax, 0x47bb
jb 0x140045ca4
mov dword [0x1400c9330], 0xc
jmp 0x140045d59
cmp eax, 0x47ba
jb 0x140045cba
mov dword [0x1400c9330], 0xb
jmp 0x140045d59
cmp eax, 0x4563
jb 0x140045cd0
mov dword [0x1400c9330], 0xa
jmp 0x140045d59
cmp eax, 0x42ee
jb 0x140045ce3
mov dword [0x1400c9330], 9
jmp 0x140045d59
cmp eax, 0x3fab
jb 0x140045cf6
mov dword [0x1400c9330], 8
jmp 0x140045d59
cmp eax, 0x3ad7
jb 0x140045d09
mov dword [0x1400c9330], 7
jmp 0x140045d59
cmp eax, 0x3839
jb 0x140045d1c
mov dword [0x1400c9330], 6
jmp 0x140045d59
cmp eax, 0x295a
jb 0x140045d59
mov dword [0x1400c9330], 5
jmp 0x140045d59
mov dword [0x1400c9330], 4
jmp 0x140045d59
mov dword [0x1400c9330], 3
jmp 0x140045d59
mov dword [0x1400c9330], 2
jmp 0x140045d59
mov dword [0x1400c9330], edi
call fcn.1400455b0
mov dword [0x1400c9334], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.1400066f4
lea rcx, [rsp + 0x28]
call fcn.140045f60
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140045dd4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045dcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045f55
call fcn.140068fd0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.1400066f4
lea rcx, [rsp + 0x48]
call fcn.140045f60
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140045e44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045e3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045f4f
call fcn.140068fd0
call fcn.140046080
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 0x140045e77
mov byte [rsp + 0x20], dil
jmp 0x140045e98
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.14005ff00
nop
lea r8, [rbp + 0x120]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.14005f610
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x60]
call fcn.140065270
nop
lea rcx, [rbp + 0x120]
call fcn.14003baa0
lea rcx, [rbp - 0x60]
call fcn.14003baa0
call fcn.140048910
mov ecx, dword [0x1400c933c]
test ecx, ecx
je 0x140045f29
cmp ecx, 9
ja 0x140045f21
cmp ecx, 6
ja 0x140045f17
jb 0x140045f29
mov ecx, dword [0x1400c9340]
cmp ecx, 3
jae 0x140045f17
cmp ecx, 1
jb 0x140045f29
mov rcx, rax
call fcn.14004adc0
jmp 0x140045f29
mov rcx, rax
call fcn.14004aa10
jmp 0x140045f29
mov rcx, rax
call fcn.14004a610
mov al, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140068fb0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140077970
int3
call fcn.140077970
int3