Function at 0x1400c1ac0
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rsi, rdx
mov rbp, rcx
mov r14d, 1
cmp qword [0x1406be670], 0
jne 0x1400c1c62
test rdx, rdx
je 0x1400c1c62
call fcn.140070430
test eax, eax
je 0x1400c1b0a
movzx eax, r14b
jmp 0x1400c1c5c
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0xc8]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400c1c5a
mov dword [rsp + 0xc0], ebx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rsp + 0xc0]
test r9d, r9d
je 0x1400c1b7d
mov edx, r9d
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov r9d, dword [rsp + 0xc0]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, r14d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400c1c5a
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
xor edi, edi
lea r9, [rsp + 0x30]
mov r8d, 0xf0fff
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x1400c1c3e
lea rax, str.SeLockMemoryPrivilege
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x2c002a
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
mov r9d, r14d
lea r8, [rsp + 0x50]
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x1400c1c33
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea ecx, [rdi + 5]
call fcn.140024780
mov edi, r14d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1400c1c5a
call fcn.140070430
test eax, eax
je 0x1400c1c5a
movzx eax, r14b
jmp 0x1400c1c5c
xor al, al
mov byte [0x1406bcd7a], al
mov rcx, qword [0x1406be368]
test rcx, rcx
jne 0x1400c1c8f
mov ecx, 0x110
call fcn.1402e72d0
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14005c4e0
mov rcx, rax
mov qword [0x1406be368], rax
mov rax, qword [rcx]
call qword [rax + 0xc0]
cmp rax, 1
jbe 0x1400c1dae
mov ecx, gethostbyaddr
call fcn.1402e72d0
mov rdi, rax
mov qword [rsp + 0xc0], rax
mov rcx, qword [0x1406be368]
test rcx, rcx
jne 0x1400c1ce7
mov ecx, 0x110
call fcn.1402e72d0
mov qword [rsp + 0xc8], rax
mov rcx, rax
call fcn.14005c4e0
mov rcx, rax
mov qword [0x1406be368], rax
mov rax, qword [rcx]
call qword [rax + 0xc0]
mov r8, rax
lea rbx, [rbp - 1]
xor edx, edx
mov rax, rbx
div r8
sub rbx, rdx
add rbx, r8
lea rax, vtable.gracias::NUMAMemoryPool.0
mov qword [rdi], rax
test rsi, rsi
setne al
mov byte [rdi + 8], al
mov rcx, qword [0x1406be368]
test rcx, rcx
jne 0x1400c1d48
mov ecx, 0x110
call fcn.1402e72d0
mov qword [rsp + 0xc8], rax
mov rcx, rax
call fcn.14005c4e0
mov rcx, rax
mov qword [0x1406be368], rax
mov rax, qword [rcx]
call qword [rax + 0xc0]
mov r8, rax
xor edx, edx
mov rax, rbx
div r8
cmp rax, 1
cmovb rax, r14
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
lea rbx, [rdi + 0x20]
mov qword [rsp + 0xc8], rbx
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov ecx, gethostbyaddr
call fcn.1402e72d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [0x1406be670], rdi
jmp 0x1400c1ddd
mov ecx, 0x28
call fcn.1402e72d0
mov qword [rsp + 0xc0], rax
test rsi, rsi
setne r8b
xor r9d, r9d
mov rdx, rbp
mov rcx, rax
call fcn.1400c16d0
nop
mov qword [0x1406be670], rax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret