Function at 0x1400ff0b0
Capabilities:
Get uefi variable
Set uefi variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rcx
mov qword [rbp - 0x30], rcx
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.1400f5ad0
nop
lea r8, [rbp - 0x30]
lea rdx, str.SeSystemEnvironmentPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400ff141
xor edi, edi
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x1403c3e40]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], dil
jmp 0x1400ff606
mov dword [rbp - 0x28], 1
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x24], rax
mov dword [rbp - 0x1c], 2
xor edi, edi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400ff188
movups xmm0, xmmword [rsp + 0x38]
mov byte [rsp + 0x38], dil
jmp 0x1400ff5d6
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x28]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400ff1bc
movups xmm0, xmmword [rsp + 0x38]
mov byte [rsp + 0x38], dil
jmp 0x1400ff5d6
movabs r14, 0xc9d553a917f450e5
mov qword [rbp + 0x10], r14
movabs r15, 0xda19e0d4c7b8e6a2
mov qword [rbp + 0x18], r15
movabs r12, 0x724d2e231e96a237
mov qword [rbp + 0x20], r12
movabs rsi, 0xc97d560e4d98045c
mov qword [rbp + 0x28], rsi
movabs r13, 0x786a7fc58242d9a9
mov qword [rbp + 0x30], r13
movabs rax, 0x2e5fae607078f366
mov qword [rbp + 0x38], rax
movabs rax, 0x9a55d73f97a933db
mov qword [rbp + 0x40], rax
movabs rax, 0xda80961aeb717e30
mov qword [rbp + 0x48], rax
movabs rax, 0xda904731ac0e1e2d
mov qword [rbp + 0x50], rax
movabs rax, 0xfd991f9c19d621aa
mov qword [rbp + 0x58], rax
movabs rax, 0xc9ec539a1796509e
mov qword [rbp - 0x80], rax
movabs rax, 0xda7ce0e3c7dee6c3
mov qword [rbp - 0x78], rax
movabs rax, 0x72792e461ebba20e
mov qword [rbp - 0x70], rax
movabs rax, 0xc94956234dac0464
mov qword [rbp - 0x68], rax
movabs rax, 0x78477ff58274d99b
mov qword [rbp - 0x60], rax
movabs rax, 0x2e6aae567049f35e
mov qword [rbp - 0x58], rax
movabs rax, 0x9a66d708979933f6
mov qword [rbp - 0x50], rax
movabs rax, 0xdab9967ceb487e09
mov qword [rbp - 0x48], rax
movabs rax, 0xdaf44755ac3a1e1f
mov qword [rbp - 0x40], rax
movabs rax, 0xfd991f9c19ab21c9
mov qword [rbp - 0x38], rax
movdqa xmm0, xmmword [rbp + 0x10]
pxor xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [rbp - 0x70]
pxor xmm1, xmmword [rbp + 0x20]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [rbp - 0x60]
pxor xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [rbp - 0x50]
pxor xmm1, xmmword [rbp + 0x40]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [rbp - 0x40]
pxor xmm0, xmmword [rbp + 0x50]
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r15
mov qword [rbp], r12
mov qword [rbp + 8], rsi
movabs rax, 0xc9a153c8179850b5
mov qword [rsp + 0x60], rax
movabs rax, 0xda74e0a6c7d7e6c4
mov qword [rsp + 0x68], rax
movabs rax, 0x722c2e571ef7a273
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rsi
movdqa xmm0, xmmword [rsp + 0x60]
pxor xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [rsp + 0x70]
pxor xmm1, xmmword [rbp]
movdqa xmmword [rsp + 0x70], xmm1
mov r9d, 0x40
lea r8, [rbp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x1400ff57c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e6
jne 0x1400ff179
lea rcx, [rbp + 0x60]
call fcn.1400ee050
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], r13
movabs rax, 0x2e5fae607078f366
mov qword [rbp + 0x38], rax
movabs rax, 0x9a55d73f97a933db
mov qword [rbp + 0x40], rax
movabs rax, 0xda80961aeb717e30
mov qword [rbp + 0x48], rax
movabs rax, 0xda904731ac0e1e2d
mov qword [rbp + 0x50], rax
movabs rax, 0xfd991f9c19d621aa
mov qword [rbp + 0x58], rax
movabs rax, 0xc9ec539a1796509e
mov qword [rbp - 0x80], rax
movabs rax, 0xda7ce0e3c7dee6c3
mov qword [rbp - 0x78], rax
movabs rax, 0x72792e461ebba20e
mov qword [rbp - 0x70], rax
movabs rax, 0xc94956234dac0464
mov qword [rbp - 0x68], rax
movabs rax, 0x78477ff58274d99b
mov qword [rbp - 0x60], rax
movabs rax, 0x2e6aae567049f35e
mov qword [rbp - 0x58], rax
movabs rax, 0x9a66d708979933f6
mov qword [rbp - 0x50], rax
movabs rax, 0xdab9967ceb487e09
mov qword [rbp - 0x48], rax
movabs rax, 0xdaf44755ac3a1e1f
mov qword [rbp - 0x40], rax
movabs rax, 0xfd991f9c19ab21c9
mov qword [rbp - 0x38], rax
movdqa xmm0, xmmword [rbp + 0x10]
pxor xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [rbp - 0x70]
pxor xmm1, xmmword [rbp + 0x20]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [rbp - 0x60]
pxor xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [rbp - 0x50]
pxor xmm1, xmmword [rbp + 0x40]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [rbp - 0x40]
pxor xmm0, xmmword [rbp + 0x50]
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r15
mov qword [rbp], r12
mov qword [rbp + 8], rsi
movabs rax, 0xc9a153c8179850b5
mov qword [rsp + 0x60], rax
movabs rax, 0xda74e0a6c7d7e6c4
mov qword [rsp + 0x68], rax
movabs rax, 0x722c2e571ef7a273
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rsi
movdqa xmm0, xmmword [rbp - 0x10]
pxor xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [rsp + 0x70]
pxor xmm1, xmmword [rbp]
movdqa xmmword [rsp + 0x70], xmm1
mov r9d, 0x40
lea r8, [rbp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
test eax, eax
jne 0x1400ff57c
movups xmm0, xmmword [rsp + 0x38]
mov byte [rsp + 0x38], dil
jmp 0x1400ff5d6
mov r8d, 1
lea rdx, [0x1403c0ce4]
lea rcx, [rsp + 0x38]
call fcn.1400d7680
mov r8d, 0x40
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x10]
call fcn.1400f3bd0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1400ff5b5
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400d7680
nop
lea rcx, [rbp - 0x10]
call fcn.1400d7d30
movups xmm0, xmmword [rsp + 0x38]
mov byte [rsp + 0x38], 0
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movdqa xmm0, xmmword [0x1403c3e40]
movups xmmword [rbx + 0x10], xmm1
movdqu xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400ff606
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x38]
call fcn.1400d7d30
mov rax, rbx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1401304f0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret