Function at 0x1400984a0
Capabilities:
Get uefi variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
vmovaps xmmword [rsp + 0x130], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140114500]
xor rax, rsp
mov qword [rsp + 0x128], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
test rax, rax
je 0x1400984ed
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rax, qword [rdi + 0x60]
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0x40], ymm0
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x60], rcx
mov r14, qword gs:[0x30]
lea rbx, [rsp + 0x40]
mov qword [r14 + 0x870], rbx
mov qword [r14 + 0x858], 0xdead
mov qword [r14 + 0x860], 0x8461028
mov qword [r14 + 0x5b8], rax
lea rdx, str.SecureBoot
lea r15, [rsp + 0xe0]
mov rcx, r15
vzeroupper
call sub.ntdll.dll_RtlInitUnicodeString
mov byte [rsp + 0x90], 0
mov dword [rsp + 0xd0], 1
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x90]
lea rbp, [rsp + 0xd0]
mov rcx, r15
mov rdx, rdi
mov r9, rbp
call sub.ntdll.dll_NtQuerySystemEnvironmentValueEx
mov rax, qword [r14 + 0x5b8]
mov qword [rdi + 0x270], rax
mov qword [r14 + 0x870], 0
mov qword [r14 + 0x5b8], 0
mov rax, qword [rdi + 0x270]
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x28], rax
vxorps xmm6, xmm6, xmm6
xor r12d, r12d
jmp 0x1400985f8
mov r12, qword [rsp + 0x38]
inc r12
vmovaps xmmword [rsp + 0x80], xmm6
mov rax, r12
shl rax, 4
add rax, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x68]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0x10
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov r14, qword gs:[0x30]
mov qword [r14 + 0x870], rbx
mov qword [r14 + 0x858], 0xdead
mov qword [r14 + 0x860], 0x8461028
mov qword [r14 + 0x5b8], rcx
mov rcx, r15
lea rdx, str.SecureBoot
vzeroupper
call sub.ntdll.dll_RtlInitUnicodeString
mov byte [rsp + 0xc8], 0
mov dword [rsp + 0xd0], 1
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov rcx, r15
mov rdx, rdi
lea r8, [rsp + 0xc8]
mov r9, rbp
call sub.ntdll.dll_NtQuerySystemEnvironmentValueEx
mov rax, qword [r14 + 0x5b8]
mov qword [rdi + 0x270], rax
mov qword [r14 + 0x870], 0
mov qword [r14 + 0x5b8], 0
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x1400988f1
mov rax, qword [rsp + 0x88]
test rax, rax
vxorps xmm0, xmm0, xmm0
je 0x1400988f1
mov qword [rsp + 0x38], r12
lea rcx, [rax + 0xfff]
test rax, rax
cmovns rcx, rax
shr rcx, 0xc
mov rdx, qword [0x1401145e0]
mov dword [rdx + 0x194], ecx
cmp rax, 0x1000
jl 0x1400985f0
xor r13d, r13d
jmp 0x140098781
inc r13
add r14, 0x1000
mov rax, qword [rsp + 0x88]
lea rcx, [rax + 0xfff]
test rax, rax
cmovns rcx, rax
sar rcx, 0xc
cmp rcx, r13
vxorps xmm0, xmm0, xmm0
jle 0x1400985f0
mov rax, qword [0x1401145e0]
mov dword [rax + 0x190], r13d
vmovups ymmword [rsp + 0x60], ymm0
vmovups ymmword [rsp + 0x40], ymm0
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
mov r9, r14
vzeroupper
call fcn.140098e50
test rax, rax
je 0x140098750
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0x100], ymm0
vmovups ymmword [rsp + 0xe0], ymm0
mov rcx, qword [rdi + 0x38]
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0x40
mov qword [rsp + 0xb0], 1
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0xb8], rax
mov r12, qword gs:[0x30]
lea rax, [rsp + 0x98]
mov qword [r12 + 0x870], rax
mov qword [r12 + 0x858], 0xdead
mov qword [r12 + 0x860], 0x8461028
mov qword [r12 + 0x5b8], rcx
mov rcx, rbp
lea rdx, str.SecureBoot
vzeroupper
call sub.ntdll.dll_RtlInitUnicodeString
mov byte [rsp + 0xcf], 0
mov dword [rsp + 0xc8], 1
mov dword [rsp + 0xc4], 0
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, rdi
lea r8, [rsp + 0xcf]
lea r9, [rsp + 0xc8]
call sub.ntdll.dll_NtQuerySystemEnvironmentValueEx
mov rax, qword [r12 + 0x5b8]
mov qword [rdi + 0x270], rax
mov qword [r12 + 0x870], 0
mov qword [r12 + 0x5b8], 0
cmp qword [rsp + 0x90], 0x40
jne 0x140098750
movzx eax, word [rsp + 0xe0]
cmp eax, 0x5a4d
jne 0x140098750
mov qword [rsp + 0x28], r14
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
vzeroupper
call fcn.1400a1e40
mov rax, qword [rsp + 0x28]
vmovaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret