Function at 0x7ff787149560
Capabilities:
Get uefi variable

Disassembly:
push rbp
push r15
mov rbp, rsp
sub rsp, 0x78
lea rcx, [rbp + 0x18]
call qword [sym.imp.kernel32.dll_GetFirmwareType]
cmp dword [rbp + 0x18], 2
jne 0x7ff78714960d
xor r15d, r15d
lea r8, [rbp + 0x28]
lea rdx, [0x7ff787447a80]
mov qword [rbp + 0x28], r15
xor ecx, ecx
call qword [sym.imp.advapi32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x7ff7871495c3
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x7ff787447a80]
lea rcx, [0x7ff7874396e8]
call fcn.7ff787135370
mov al, 1
add rsp, 0x78
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x44], rax
mov dword [rbp - 0x48], 1
mov dword [rbp - 0x3c], 2
mov qword [rbp + 0x20], r15
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
lea r8, [rbp + 0x20]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
jne 0x7ff787149617
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [0x7ff787439758]
call fcn.7ff787135370
mov al, 1
add rsp, 0x78
pop r15
pop rbp
ret
mov rcx, qword [rbp + 0x20]
lea r8, [rbp - 0x48]
mov qword [rsp + 0x28], r15
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x7ff787149663
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [0x7ff787439788]
call fcn.7ff787135370
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
add rsp, 0x78
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x514
jne 0x7ff787149690
lea rcx, [0x7ff787439720]
call fcn.7ff787135370
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
add rsp, 0x78
pop r15
pop rbp
ret
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.kernel32.dll_CloseHandle]
xor r9d, r9d
lea rdx, [0x7ff787447aa0]
xor r8d, r8d
lea rcx, [0x7ff787433045]
call qword [sym.imp.kernel32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x7ff78714960d
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 1
je 0x7ff7871496f6
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e6
je 0x7ff78714960d
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [0x7ff787447ac8]
call fcn.7ff787135370
mov al, 1
add rsp, 0x78
pop r15
pop rbp
ret
mov rax, qword gs:[0x58]
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x70], rsi
mov edx, 4
mov rcx, qword [rax]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r14
mov eax, dword [rdx + rcx]
cmp dword [0x7ff7874d2f20], eax
jle 0x7ff787149756
lea rcx, [0x7ff7874d2f20]
call fcn.7ff78718e628
cmp dword [0x7ff7874d2f20], 0xffffffff
jne 0x7ff787149756
lea rcx, [0x7ff787382650]
call fcn.7ff78718e8c8
lea rcx, [0x7ff7874d2f20]
call fcn.7ff78718e5bc
xor r14d, r14d
mov byte [rbp - 0x48], 0x2c
mov al, 0x40
mov byte [rbp - 0x3d], r14b
xor al, 0x2c
mov qword [rbp - 0x28], r15
mov r8b, 0x4d
mov byte [rbp - 0x47], al
xor r8b, 0x2c
mov qword [rbp - 0x20], r15
mov bl, 0x45
mov byte [rbp - 0x44], r8b
xor bl, 0x2c
lea r8, [r14 - 1]
mov r14, qword [rsp + 0x60]
lea rax, [rbp - 0x47]
mov dil, 0x43
mov byte [rbp - 0x40], bl
mov rbx, qword [rsp + 0xa8]
xor dil, 0x2c
mov sil, 0x5f
mov byte [rbp - 0x3f], dil
mov rdi, qword [rsp + 0x68]
mov cl, 0x49
xor cl, 0x2c
mov dl, 0x4b
xor dl, 0x2c
mov byte [rbp - 0x46], cl
mov r9b, 0x4f
mov byte [rbp - 0x45], dl
xor r9b, 0x2c
mov r10b, 0x55
xor r10b, 0x2c
mov byte [rbp - 0x43], r9b
mov r11b, 0x4e
mov byte [rbp - 0x42], r10b
xor r11b, 0x2c
xorps xmm0, xmm0
xor sil, 0x2c
mov byte [rbp - 0x41], r11b
mov byte [rbp - 0x3e], sil
mov rsi, qword [rsp + 0x70]
movups xmmword [rbp - 0x38], xmm0
inc r8
cmp byte [rax + r8], r15b
jne 0x7ff7871497f0
lea rdx, [rbp - 0x47]
lea rcx, [rbp - 0x38]
call fcn.7ff78711dbf0
lea rdx, [rbp - 0x38]
lea rcx, [0x7ff7874d2f24]
call fcn.7ff787147cd0
xor al, al
add rsp, 0x78
pop r15
pop rbp
ret