Function at 0x1402ccd10
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
movzx esi, dl
mov r14, rcx
mov r15d, 1
cmp qword [0x140428800], 0
jne 0x1402cce99
test dl, dl
je 0x1402cce99
call fcn.1402997e0
test eax, eax
je 0x1402ccd68
movzx eax, r15b
jmp 0x1402cce93
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x7f]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, r15d
jne 0x1402cce91
mov dword [rbp + 0x77], ebx
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x77]
test r9d, r9d
je 0x1402ccdc4
mov edx, r9d
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov r9d, dword [rbp + 0x77]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, r15d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1402cce91
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
xor edi, edi
lea r9, [rbp - 0x29]
mov r8d, 0xf0fff
lea rdx, [rbp + 7]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x1402cce75
lea rax, [0x14038f5d8]
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x19], 0x2c002a
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
mov r9d, r15d
lea r8, [rbp - 9]
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x1402cce6b
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea ecx, [rdi + 5]
call fcn.14024b980
mov edi, r15d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1402cce91
call fcn.1402997e0
test eax, eax
je 0x1402cce91
movzx eax, r15b
jmp 0x1402cce93
xor al, al
mov byte [0x1404258ab], al
mov rcx, qword [0x1404285c8]
test rcx, rcx
jne 0x1402ccec5
mov ecx, 0xd8
call fcn.1401fe604
mov qword [rbp - 0x19], rax
mov rcx, rax
call fcn.14029a980
mov rcx, rax
mov qword [0x1404285c8], rax
mov rax, qword [rcx]
call qword [rax + 0x58]
cmp rax, 1
jbe 0x1402ccfaf
mov ecx, 0x30
call fcn.1401fe604
mov rdi, rax
mov qword [rbp + 0x77], rax
mov rcx, qword [0x1404285c8]
test rcx, rcx
jne 0x1402ccf12
mov ecx, 0xd8
call fcn.1401fe604
mov qword [rbp + 0x7f], rax
mov rcx, rax
call fcn.14029a980
mov rcx, rax
mov qword [0x1404285c8], rax
mov rax, qword [rcx]
call qword [rax + 0x58]
mov r8, rax
lea rax, [r14 - 1]
xor edx, edx
div r8
lea rbx, [rax + 1]
imul rbx, r8
lea rax, vtable.xmrig::NUMAMemoryPool.0
mov qword [rdi], rax
mov byte [rdi + 8], sil
mov rcx, qword [0x1404285c8]
test rcx, rcx
jne 0x1402ccf66
mov ecx, 0xd8
call fcn.1401fe604
mov qword [rbp + 0x7f], rax
mov rcx, rax
call fcn.14029a980
mov rcx, rax
mov qword [0x1404285c8], rax
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, rax
xor edx, edx
mov rax, rbx
div rcx
cmp rax, 1
cmovb rax, r15
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
lea rbx, [rdi + 0x20]
mov qword [rbp + 0x7f], rbx
mov qword [rbx], 0
mov qword [rbx + 8], 0
call fcn.140007f90
mov qword [rbx], rax
mov qword [0x140428800], rdi
jmp 0x1402ccfd7
mov ecx, 0x20
call fcn.1401fe604
mov qword [rbp + 0x77], rax
xor r9d, r9d
movzx r8d, sil
mov rdx, r14
mov rcx, rax
call fcn.1402ccac0
nop
mov qword [0x140428800], rax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret