Function at 0x14013b950
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rsi, rdx
mov r14, rcx
mov r12d, 1
cmp qword [0x140737760], 0
jne 0x14013bace
test rdx, rdx
je 0x14013bace
call fcn.1400988a0
test eax, eax
je 0x14013b9a9
movzx eax, r12b
jmp 0x14013bac8
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]
test eax, eax
je 0x14013bac6
mov dword [rbp + 0x77], ebx
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x77]
test r9d, r9d
je 0x14013ba04
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, r12d
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 0x14013bac6
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
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 0x14013baaa
lea rax, str.SeLockMemoryPrivilege
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x19], 0x2c002a
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
mov r9d, r12d
lea r8, [rbp - 9]
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x14013baa0
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea ecx, [rdi + 5]
call fcn.1400265c0
mov edi, r12d
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 0x14013bac6
call fcn.1400988a0
test eax, eax
je 0x14013bac6
movzx eax, r12b
jmp 0x14013bac8
xor al, al
mov byte [0x140735286], al
mov rax, qword [0x140737750]
test rax, rax
jne 0x14013baf8
mov ecx, 0x110
call fcn.1403195d4
mov qword [rbp - 0x19], rax
mov rcx, rax
call fcn.140082070
nop
mov qword [0x140737750], rax
mov rcx, qword [rax]
lea rbx, [method.xmrig::CpuWorker_4_.virtual_16]
cmp qword [rcx + 0xc0], rbx
jne 0x14013bc03
cmp qword [rax + 0xe8], 1
jbe 0x14013bc03
mov ecx, 0x30
call fcn.1403195d4
mov rdi, rax
mov qword [rbp + 0x77], rax
mov r8, qword [0x140737750]
test r8, r8
jne 0x14013bb5a
mov ecx, 0x110
call fcn.1403195d4
mov qword [rbp + 0x7f], rax
mov rcx, rax
call fcn.140082070
mov r8, rax
mov qword [0x140737750], rax
mov rcx, qword [r8]
cmp qword [rcx + 0xc0], rbx
jne 0x14013bb6f
mov rcx, qword [r8 + 0xe8]
jmp 0x14013bb71
xor ecx, ecx
lea r9, [r14 - 1]
xor edx, edx
mov rax, r9
div rcx
sub r9, rdx
add r9, rcx
lea rax, vtable.xmrig::NUMAMemoryPool.0
mov qword [rdi], rax
test rsi, rsi
setne al
mov byte [rdi + 8], al
mov rax, qword [r8]
cmp qword [rax + 0xc0], rbx
jne 0x14013bbab
mov rcx, qword [r8 + 0xe8]
jmp 0x14013bbad
xor ecx, ecx
xor edx, edx
mov rax, r9
div rcx
cmp rax, 1
cmovb rax, r12
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], r9
lea rbx, [rdi + 0x20]
mov qword [rbp + 0x7f], rbx
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov ecx, 0x30
call fcn.140003d40
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 [0x140737760], rdi
jmp 0x14013bc2e
mov ecx, 0x28
call fcn.1403195d4
mov qword [rbp + 0x77], rax
test rsi, rsi
setne r8b
xor r9d, r9d
mov rdx, r14
mov rcx, rax
call fcn.14013b590
nop
mov qword [0x140737760], rax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret