Function at 0x1400437f0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0xa8]
sub rsp, 0x1a8
mov rax, qword [0x1400b31d8]
xor rax, rsp
mov qword [rbp + 0x90], rax
lea rax, str.SeBackupPrivilege
xor r14d, r14d
mov qword [rbp + 0x70], rax
xor dil, dil
lea rax, str.SeDebugPrivilege
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x78], rax
xor sil, sil
lea rax, str.SeSecurityPrivilege
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x40]
lea edx, [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140043953
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140043930
lea ecx, [r14 + 2]
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x1400438ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140015260
lea rcx, str.ImpersonateSelf_error:__u_n
mov qword [rbp + 0x58], 0x1a
mov qword [rbp + 0x50], rcx
lea r9, [rbp + 0x50]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x20], rcx
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x40], r14
mov rcx, rax
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], r14
movsd xmm1, qword [rsp + 0x50]
movaps xmmword [rbp + 0x70], xmm0
movsd qword [rbp + 0x80], xmm1
call fcn.140051d70
xor al, al
jmp 0x140043b45
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea r9, [rbp + 0x40]
mov rcx, rax
lea edx, [r8 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140043953
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140015260
lea rcx, str.OpenThreadToken_error:__u_n
jmp 0x14004389b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140015260
lea rcx, str.OpenProcessToken_error:__u_n
mov qword [rbp + 0x58], 0x1b
jmp 0x1400438a3
mov qword [rsp + 0x1d0], rbx
lea rbx, [rbp + 0x70]
mov qword [rsp + 0x1d8], r12
lea r12, str.AdjustTokenPrivileges_error:__u_n
mov qword [rsp + 0x1e0], r13
lea r13, str.The_token_does_not_have_the_specified_privilege.__n
mov qword [rsp + 0x1a0], r15
lea r15, str.LookupPrivilegeValue_error:__u_n
nop dword [rax]
mov rdx, qword [rbx]
lea r8, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x140043a00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140015260
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x50]
mov qword [rsp + 0x60], r14
lea rdx, [rbp - 0x20]
movups xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov rcx, rax
movsd xmm1, qword [rsp + 0x70]
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 0x1f
movsd qword [rbp - 0x10], xmm1
call fcn.140051d70
jmp 0x140043af3
mov rax, qword [rbp + 0x60]
lea r8, [rbp + 0x50]
mov rcx, qword [rbp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rbp + 0x54], rax
mov dword [rbp + 0x50], 1
mov dword [rbp + 0x5c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140043a91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140015260
lea rcx, [rsp + 0x30]
mov qword [rbp - 0x80], r14
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x40]
mov qword [rsp + 0x78], r14
lea rdx, [rbp]
movups xmm0, xmmword [rsp + 0x78]
mov qword [rbp - 0x78], r14
mov rcx, rax
movsd xmm1, qword [rbp - 0x78]
movaps xmmword [rbp], xmm0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0x20
movsd qword [rbp + 0x10], xmm1
call fcn.140051d70
jmp 0x140043af3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x140043af0
call fcn.140015260
mov qword [rbp - 0x30], r13
lea r9, [rsp + 0x40]
mov qword [rbp - 0x28], 0x32
lea rdx, [rbp + 0x20]
movaps xmm0, xmmword [rbp - 0x30]
mov r8d, 4
movdqa xmmword [rsp + 0x40], xmm0
mov rcx, rax
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r14
movups xmm1, xmmword [rbp - 0x70]
mov qword [rbp - 0x60], r14
movsd xmm0, qword [rbp - 0x60]
movsd qword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm1
call fcn.140012ca0
jmp 0x140043af3
mov dil, 1
add rbx, 8
lea rax, [rbp + 0x88]
cmp rbx, rax
jne 0x140043990
mov rcx, qword [rbp + 0x40]
mov r15, qword [rsp + 0x1a0]
mov r13, qword [rsp + 0x1e0]
mov r12, qword [rsp + 0x1d8]
mov rbx, qword [rsp + 0x1d0]
test rcx, rcx
je 0x140043b36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
je 0x140043b41
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
movzx eax, dil
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140056720
add rsp, 0x1a8
pop r14
pop rdi
pop rsi
pop rbp
ret