Function at 0x14009ed30
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rbp, rdx
mov rsi, rcx
xor r14d, r14d
cmp qword [0x14039edb8], r14
jne 0x14009eed6
test rdx, rdx
je 0x14009eed6
call fcn.14004ecb0
test eax, eax
je 0x14009ed74
mov al, 1
jmp 0x14009eed0
mov rbx, r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0xb8]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14009eece
mov dword [rsp + 0xb0], r14d
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rsp + 0xb0]
test r9d, r9d
je 0x14009edee
mov edx, r9d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov r9d, dword [rsp + 0xb0]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14009eece
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov edi, r14d
lea r9, [rsp + 0x30]
mov r8d, 0xf0fff
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x14009eeb4
lea rax, str.SeLockMemoryPrivilege
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x2c002a
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov r9d, 1
lea r8, [rsp + 0x40]
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x14009eea9
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea ecx, [rax + 5]
call fcn.140019410
mov edi, 1
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 0x14009eece
call fcn.14004ecb0
test eax, eax
je 0x14009eece
mov al, 1
jmp 0x14009eed0
xor al, al
mov byte [0x14039d6b9], al
mov ecx, 0x28
call fcn.1400b5090
mov rbx, rax
mov qword [rsp + 0xb0], rax
lea rax, vtable.xmrig::MemoryPool.0
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x20], r14
test rsi, rsi
je 0x14009ef81
mov ecx, 0x28
call fcn.1400b5090
mov rdi, rax
mov qword [rsp + 0xb8], rax
shl rsi, 0x15
lea rcx, [rsi + 0xffffff]
and rcx, 0xffffffffffe00000
add rcx, 0x200000
mov qword [rax], rcx
mov dword [rax + 8], r14d
mov qword [rax + 0x10], rcx
xor eax, eax
mov dword [rdi + 0x18], eax
mov qword [rdi + 0x20], r14
test rbp, rbp
je 0x14009ef5d
mov rcx, rdi
call fcn.14004ed70
test al, al
jne 0x14009ef6e
mov edx, 0x40
mov rcx, qword [rdi]
call fcn.1400c5ab8
mov qword [rdi + 0x20], rax
mov qword [rbx + 0x20], rdi
mov eax, dword [rdi + 0x20]
neg rax
and eax, 0xffffff
mov qword [rbx + 0x18], rax
mov qword [0x14039edb8], rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret