Function at 0x139abedc0
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x80
mov rbp, rdx
mov r14, rcx
mov r12d, 1
cmp qword [0x139fe2478], 0
jne 0x139abef3c
test rdx, rdx
je 0x139abef3c
call fcn.139a6c120
test eax, eax
jne 0x139abef3c
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0xc8]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x139abef3c
mov dword [rsp + 0xc0], edi
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rsp + 0xc0]
test r9d, r9d
je 0x139abee7a
mov edx, r9d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov r9d, dword [rsp + 0xc0]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov edx, r12d
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 rdi, rdi
je 0x139abef3c
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
xor esi, esi
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 0x139abef2a
lea rax, [0x1399d5bf0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x2c002a
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov r9d, r12d
lea r8, [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
test ebx, ebx
sete sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x139abef3c
call fcn.139a6c120
mov rcx, qword [0x139fe20b8]
test rcx, rcx
jne 0x139abef69
mov ecx, 0x110
call fcn.139ce5c90
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.139a570c0
mov rcx, rax
mov qword [0x139fe20b8], rax
mov rax, qword [rcx]
call qword [rax + 0xc0]
cmp rax, 1
jbe 0x139abf088
mov ecx, gethostbyaddr
call fcn.139ce5c90
mov rdi, rax
mov qword [rsp + 0xc0], rax
mov rcx, qword [0x139fe20b8]
test rcx, rcx
jne 0x139abefc1
mov ecx, 0x110
call fcn.139ce5c90
mov qword [rsp + 0xc8], rax
mov rcx, rax
call fcn.139a570c0
mov rcx, rax
mov qword [0x139fe20b8], rax
mov rax, qword [rcx]
call qword [rax + 0xc0]
mov r8, rax
lea rbx, [r14 - 1]
xor edx, edx
mov rax, rbx
div r8
sub rbx, rdx
add rbx, r8
lea rax, [0x1399d5c60]
mov qword [rdi], rax
test rbp, rbp
setne al
mov byte [rdi + 8], al
mov rcx, qword [0x139fe20b8]
test rcx, rcx
jne 0x139abf022
mov ecx, 0x110
call fcn.139ce5c90
mov qword [rsp + 0xc8], rax
mov rcx, rax
call fcn.139a570c0
mov rcx, rax
mov qword [0x139fe20b8], 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, r12
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.139ce5c90
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 [0x139fe2478], rdi
jmp 0x139abf0b7
mov ecx, 0x28
call fcn.139ce5c90
mov qword [rsp + 0xc0], rax
test rbp, rbp
setne r8b
xor r9d, r9d
mov rdx, r14
mov rcx, rax
call fcn.139abe9d0
nop
mov qword [0x139fe2478], rax
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret