Function at 0x1400bf680
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0x98], 0xfffffffffffffffe
xor eax, eax
lea rdi, str.SeAssignPrimaryTokenPrivilegeSeLoadDriverPrivilegeSeSystemEnvironmentPrivilegeSeTakeOwnershipPrivilegeSeDebugPrivilegeSeTcbPrivilegeSeIncreaseQuotaPrivilegeSeSecurityPrivilegeSeSystemtimePrivilegeSeBackupPrivilegeSeRestorePrivilegeSeShutdownPrivilegeSeUndockPrivilegeSeManageVolumePrivilegeSeCreateTokenPrivilegeSeTrustedCredManAccessPrivilegeSeProfileSingleProcessPrivilegeSeDelegateSessionUserImpersonatePrivilegeSeSystemProfilePrivilegeSeIncreaseBasePriorityPrivilegeSeLockMemoryPrivilegeSeCreatePagefilePrivilegeSeAuditPrivilegeSeCreatePermanentPrivilegeSeCreateGlobalPrivilegeSeServiceLogonRight
lea rsi, [rbp - 0x20]
lea r15, [rbp + 0x10]
mov r14, qword [sym.imp.advapi32.dll_LsaOpenPolicy]
xorps xmm6, xmm6
jmp 0x1400bf6d4
mov rax, qword [rbp - 0x38]
cmp rax, 0x1a0
je 0x1400bfe5a
lea rcx, [rdi + rax]
lea rdx, [rax + 0x10]
mov qword [rbp - 0x38], rdx
mov qword [rbp + 0x30], rcx
mov r12, qword [rax + rdi]
mov r13, qword [rax + rdi + 8]
mov rcx, rsi
call fcn.14010bab0
call fcn.14003b650
mov qword [rbp + 0x10], rax
xor ecx, ecx
mov rdx, rsi
mov r8d, 0xf0fff
mov r9, r15
call r14
test eax, eax
je 0x1400bf750
mov r8d, 0x19
xor ecx, ecx
lea rdx, [0x14031aa9a]
call fcn.140204070
xor ecx, ecx
call fcn.140203be0
test edx, edx
jne 0x1400bf93c
jmp 0x1400bfa40
call fcn.14003b650
mov qword [rbp - 0x50], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 8
lea r8, [rbp - 0x50]
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x1400bf887
mov ecx, 0x100
mov edx, 1
call fcn.1400fcbf0
test rax, rax
je 0x1400bfe75
mov r8, rax
mov dword [rbp + 0x28], 0
mov rcx, qword [rbp - 0x50]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov edx, 1
mov qword [rbp + 0x20], r8
mov r9d, 0x100
call qword [sym.imp.advapi32.dll_GetTokenInformation]
test eax, eax
je 0x1400bf8ca
mov rax, qword [rbp + 0x20]
mov rbx, qword [rax]
add r13, r12
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], r13
mov word [rbp + 0x48], 0
mov dword [rbp + 0x50], 1
lea rcx, [rbp + 0x78]
lea rdx, [rbp + 0x38]
call fcn.140023c50
mov r12, qword [rbp + 0x80]
mov eax, dword [rbp + 0x88]
lea edx, [rax*2 - 2]
add eax, eax
mov rcx, qword [rbp + 0x10]
mov word [rbp + 0x60], dx
mov word [rbp + 0x62], ax
mov qword [rbp + 0x68], r12
mov rdx, rbx
lea r8, [rbp + 0x60]
mov r9d, 1
call qword [sym.imp.advapi32.dll_LsaAddAccountRights]
mov ebx, eax
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.advapi32.dll_LsaClose]
test ebx, ebx
je 0x1400bfa0e
mov qword [rbp - 0x30], r12
mov r8d, 0x17
xor ecx, ecx
lea rdx, str.Failed_to_add_privilegeFailed_to_get_token_informationFailed_to_open_process_tokenFailed_to_open_LSA_policyAdjustTokenPrivileges_failed_with_error:
call fcn.140204070
xor ecx, ecx
call fcn.140203be0
mov rbx, rax
mov r12d, edx
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x1400bf91a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x30]
call fcn.1400fcbd0
jmp 0x1400bf91a
call fcn.140203920
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], edx
test edx, edx
je 0x1400bf779
test rax, rax
je 0x1400bf8ac
lea rcx, [rbp + 0x78]
call fcn.14010c210
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.advapi32.dll_LsaClose]
mov r8d, 0x1c
xor ecx, ecx
lea rdx, [0x14031aa7e]
jmp 0x1400bf72e
call fcn.140203920
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], edx
test edx, edx
je 0x1400bf7c5
test rax, rax
je 0x1400bf8ef
lea rcx, [rbp + 0x78]
call fcn.14010c210
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.advapi32.dll_LsaClose]
mov r8d, 0x1f
xor ecx, ecx
lea rdx, [0x14031aa5f]
call fcn.140204070
xor ecx, ecx
call fcn.140203be0
mov rbx, rax
mov r12d, edx
mov edx, 0x100
mov r8d, 1
mov rcx, qword [rbp + 0x20]
call fcn.1400fcbd0
mov rax, rbx
mov edx, r12d
test edx, edx
je 0x1400bfa40
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x68], edx
mov rcx, qword [0x1403d2d38]
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400bf9f7
lea rax, [rbp + 0x30]
mov qword [rbp + 0x78], rax
lea rax, [0x14003b610]
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x60]
mov qword [rbp + 0x88], rax
lea rax, [0x140203e80]
mov qword [rbp + 0x90], rax
lea rax, str.Failed_to_add_privilege
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 2
mov qword [rbp], 0
lea rax, [rbp + 0x78]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 2
lea rcx, str.src_token.rs
call fcn.1401a7c10
lea rcx, str.ICBM::tokenEnabled_privilege:
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], 0xb
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0xb
mov qword [rbp + 0x58], rax
mov edx, 1
mov rcx, rsi
lea r8, [rbp + 0x38]
xor r9d, r9d
call fcn.1401a7b20
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x1400bfa05
lea rcx, [rbp + 0x60]
call fcn.14010c210
mov rax, qword [rbp - 0x38]
jmp 0x1400bf6d4
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x1400bfa28
add rdx, rdx
mov r8d, 2
mov rcx, r12
call fcn.1400fcbd0
mov edx, 0x100
mov r8d, 1
mov rcx, qword [rbp + 0x20]
call fcn.1400fcbd0
nop dword [rax]
mov r14, rdi
mov rdi, r15
mov rax, qword [0x1403d2d38]
mov rax, qword [rax]
cmp rax, 3
jb 0x1400bfade
lea rax, [rbp + 0x30]
mov qword [rbp + 0x78], rax
lea rax, [0x14003b610]
mov qword [rbp + 0x80], rax
lea rax, str.Successfully_added_privilege__to_the_current_account.
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 2
mov qword [rbp], 0
lea rax, [rbp + 0x78]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rcx, str.src_token.rs
call fcn.1401a7c10
lea rcx, str.ICBM::tokenEnabled_privilege:
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], 0xb
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0xb
mov qword [rbp + 0x58], rax
mov edx, 3
mov rcx, rsi
lea r8, [rbp + 0x38]
xor r9d, r9d
call fcn.1401a7b20
mov rax, qword [rbp + 0x30]
mov r12, qword [rax]
mov r15, qword [rax + 8]
call fcn.14003b650
mov qword [rbp - 0x40], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x28
lea r8, [rbp - 0x40]
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x1400bfc63
add r15, r12
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], r15
mov word [rbp + 0x88], 0
mov dword [rbp + 0x90], 1
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x78]
call fcn.1400247b0
call fcn.1402034c0
mov r15, rdi
mov rdi, r14
mov r14, qword [sym.imp.advapi32.dll_LsaOpenPolicy]
mov dword [rbp + 0x28], eax
mov dword [rbp + 0x2c], edx
mov r12, qword [rbp + 0x68]
xor ecx, ecx
mov rdx, r12
lea r8, [rbp + 0x28]
call qword [sym.imp.advapi32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400bfc85
mov dword [rbp + 0x10], 1
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], 2
mov rcx, qword [rbp - 0x40]
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, r15
xor r9d, r9d
call qword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400bfc96
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp - 0x24], eax
test eax, eax
je 0x1400bfda3
mov rax, qword [0x1403d2d38]
mov rax, qword [rax]
test rax, rax
je 0x1400bfc4d
lea rax, [rbp - 0x24]
mov qword [rbp - 0x50], rax
lea rax, [0x140203470]
mov qword [rbp - 0x48], rax
lea rax, [0x14031aae0]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
mov qword [rbp], 0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rcx, str.src_token.rs
call fcn.1401a7c10
lea rcx, str.ICBM::tokenEnabled_privilege:
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], 0xb
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0xb
mov qword [rbp + 0x58], rax
mov edx, 1
mov rcx, rsi
lea r8, [rbp + 0x38]
xor r9d, r9d
call fcn.1401a7b20
call fcn.140203920
mov rbx, rax
mov r13d, edx
mov rdx, qword [rbp + 0x60]
test rdx, rdx
jne 0x1400bfcb2
jmp 0x1400bfcc3
call fcn.140203920
test edx, edx
je 0x1400bfb12
mov rbx, rax
mov r13d, edx
mov r15, rdi
mov rdi, r14
mov r14, qword [sym.imp.advapi32.dll_LsaOpenPolicy]
jmp 0x1400bfccc
call fcn.140203920
mov r13d, edx
test edx, edx
jne 0x1400bfca6
jmp 0x1400bfb73
call fcn.140203920
mov r13d, edx
test edx, edx
je 0x1400bfba8
mov rbx, rax
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400bfcc3
add rdx, rdx
mov r8d, 2
mov rcx, r12
call fcn.1400fcbd0
test r13d, r13d
je 0x1400bfdbd
mov qword [rbp + 0x60], rbx
mov dword [rbp + 0x68], r13d
mov rax, qword [0x1403d2d38]
mov rax, qword [rax]
test rax, rax
je 0x1400bfd88
lea rax, [rbp + 0x30]
mov qword [rbp + 0x78], rax
lea rax, [0x14003b610]
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x60]
mov qword [rbp + 0x88], rax
lea rax, [0x140203e80]
mov qword [rbp + 0x90], rax
lea rax, str.Failed_to_enable_privilege_:
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 2
mov qword [rbp], 0
lea rax, [rbp + 0x78]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 2
lea rcx, str.src_token.rs
call fcn.1401a7c10
lea rcx, str.ICBM::tokenEnabled_privilege:
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], 0xb
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0xb
mov qword [rbp + 0x58], rax
mov edx, 1
mov rcx, rsi
lea r8, [rbp + 0x38]
xor r9d, r9d
call fcn.1401a7b20
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x1400bf6d0
lea rcx, [rbp + 0x60]
call fcn.14010c210
mov rax, qword [rbp - 0x38]
jmp 0x1400bf6d4
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400bfdbd
add rdx, rdx
mov r8d, 2
mov rcx, r12
call fcn.1400fcbd0
mov rax, qword [0x1403d2d38]
mov rax, qword [rax]
cmp rax, 3
jb 0x1400bf6d0
lea rax, [rbp + 0x30]
mov qword [rbp + 0x78], rax
lea rax, [0x14003b610]
mov qword [rbp + 0x80], rax
lea rax, [0x14031a978]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
mov qword [rbp], 0
lea rax, [rbp + 0x78]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rcx, str.src_token.rs
call fcn.1401a7c10
lea rcx, str.ICBM::tokenEnabled_privilege:
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], 0xb
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0xb
mov qword [rbp + 0x58], rax
mov edx, 3
mov rcx, rsi
lea r8, [rbp + 0x38]
xor r9d, r9d
call fcn.1401a7b20
jmp 0x1400bf6d0
movaps xmm6, xmmword [rbp + 0xa0]
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 1
mov edx, 0x100
call fcn.14029d590
int3