Function at 0x14000bed0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8f0]
sub rsp, 0x9f0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xa40], rbx
mov r15, rcx
mov qword [rcx + 8], rdx
lea rax, vtable.CSABSDKFunctions::CKUTILSInterface.0
mov qword [rcx], rax
cmp qword [0x14034e4d8], 0
jne 0x14000c410
xor edx, edx
mov r8d, 0x98
lea rcx, [rbp - 0xc]
call fcn.140249b10
mov dword [rbp - 0x10], 0x9c
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp], 2
jne 0x14000c410
mov r8d, 0x410
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x90]
call fcn.1400fca30
lea rdx, str.SASKUTIL64.SYS
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdi, vtable.CSABString.0
mov qword [rsp + 0x70], rdi
lea rcx, [rbp + 0x90]
mov rsi, 0xffffffffffffffff
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14000bfa0
mov dword [rbp - 0x80], eax
inc eax
mov ebx, eax
mov ecx, eax
call fcn.140247068
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14000bfd6
mov r8d, ebx
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.1402496a0
mov dword [rbp - 0x7c], 1
mov ecx, 0xc0
call fcn.14018ef40
mov rbx, rax
mov qword [rbp + 0x938], rax
test rax, rax
je 0x14000c1b1
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x68], 8
mov ecx, 9
call fcn.140247068
mov r12, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14000c034
movsd xmm0, qword [str.SASKUTIL]
movsd qword [rax], xmm0
movzx ecx, byte [0x140287fc0]
mov byte [rax + 8], cl
mov dword [rsp + 0x6c], 1
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov ecx, SafeArrayGetDim
call fcn.140247068
mov r13, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000c07f
movsd xmm0, qword [str..SASKUTIL]
movsd qword [rax], xmm0
mov ecx, dword [0x140287fd0]
mov dword [rax + 8], ecx
movzx ecx, byte [0x140287fd4]
mov byte [rax + 0xc], cl
mov dword [rsp + 0x54], 1
mov qword [rbx], rsi
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x58]
call fcn.140008ba0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x40]
call fcn.140008ba0
nop
mov qword [rbx + 0x38], rdi
xor edi, edi
mov qword [rbx + 0x40], rdi
mov dword [rbx + 0x48], edi
test r14, r14
je 0x14000c0f1
nop word [rax + rax]
inc rsi
cmp byte [r14 + rsi], dil
jne 0x14000c0c0
mov dword [rbx + 0x48], esi
lea ecx, [rsi + 1]
call fcn.140247068
mov qword [rbx + 0x40], rax
test rax, rax
je 0x14000c108
mov r8d, dword [rbx + 0x48]
inc r8d
mov rdx, r14
mov rcx, rax
call fcn.1402496a0
jmp 0x14000c108
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbx + 0x40], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbx + 0x4c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x938]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000c17b
lea r8, [rsp + 0x44]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14000c17b
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rbp + 0x938]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
test r13, r13
je 0x14000c189
mov rcx, r13
call fcn.140247060
nop
test r12, r12
je 0x14000c196
mov rcx, r12
call fcn.140247060
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x78], edi
mov qword [rbx + 0x88], rdi
mov dword [rbx + 0x90], edi
mov dword [rbx + 0xa0], edi
jmp 0x14000c1b5
xor edi, edi
mov ebx, edi
mov qword [0x14034e4d8], rbx
lea rax, vtable.CSABString.0
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x68], edi
mov ecx, 1
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14000c1ec
movzx ecx, byte [0x140286ae1]
mov byte [rax], cl
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9d, 1
mov r8d, 0xf01ff
lea rdx, [rsp + 0x58]
mov rcx, qword [0x14034e4d8]
call fcn.140024e30
nop
test rbx, rbx
je 0x14000c22f
mov rcx, rbx
call fcn.140247060
mov r12, qword [0x14034e4d8]
xor edx, edx
mov r8d, 0x448
lea rcx, [rbp + 0x4a0]
call fcn.140249b10
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
or word [rsp + 0x42], ax
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140249b10
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x70]
call fcn.1400e2150
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.1400e1e70
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.1400e1f70
mov ebx, edi
lea rsi, [rsp + 0x58]
nop dword [rax]
movzx r8d, byte [rsi]
lea ecx, [rbx + rbx]
lea rax, [rbp + 0x4a0]
lea rcx, [rax + rcx*2]
lea rdx, [0x140287fd8]
call fcn.140006b50
inc ebx
lea rsi, [rsi + 1]
cmp ebx, 0x10
jb 0x14000c2c0
mov rax, qword [r12]
cmp rax, 0xffffffffffffffff
jne 0x14000c323
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rax + 4]
mov rcx, qword [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r12], rax
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0x930]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x448
lea rcx, [rbp + 0x4a0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x448
lea r8, [rbp + 0x4a0]
mov edx, 0x9c40208c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000c36d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [0x14034e4d8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x930], eax
mov rax, qword [rbx]
cmp rax, 0xffffffffffffffff
jne 0x14000c3b7
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rax + 4]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0x938]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 4
lea rcx, [rbp + 0x930]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rbp + 0x930]
mov edx, 0x9c40200c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000c402
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test r14, r14
je 0x14000c410
mov rcx, r14
call fcn.140247060
nop
mov rax, r15
mov rbx, qword [rsp + 0xa40]
add rsp, 0x9f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret