Function at 0x140057f80
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x1e0
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov r14, rdx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [r11 - 0x68], xmm0
mov qword [r11 - 0x58], r15
mov esi, 7
mov qword [r11 - 0x50], rsi
mov word [r11 - 0x68], r15w
movups xmmword [rsp + 0x170], xmm0
mov qword [r11 - 0x70], rsi
movups xmmword [rsp + 0x150], xmm0
mov qword [r11 - 0x98], r15
mov qword [r11 - 0x90], rsi
mov word [r11 - 0xa8], r15w
mov qword [r11 - 0x78], r15
mov word [r11 - 0x88], r15w
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystem_bios
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400583a0
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BIOSVendor
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058395
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140003e80
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVendor
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 3
jne 0x140058103
mov r8d, dword [rsp + 0x30]
nop dword [rax + rax]
mov r9b, 1
mov edx, r15d
lea eax, [r8 - 1]
test eax, eax
jle 0x140058103
mov rcx, rbx
cmp word [rcx], 0
jne 0x1400580f0
movzx eax, word [rcx + 2]
test ax, ax
je 0x1400580f0
mov word [rcx], ax
mov word [rcx + 2], r15w
xor r9b, r9b
mov r8d, dword [rsp + 0x30]
inc edx
add rcx, 2
lea eax, [r8 - 1]
cmp edx, eax
jl 0x1400580d1
test r9b, r9b
je 0x1400580c0
mov rdx, rbx
lea rcx, [rsp + 0x170]
call fcn.140018440
mov rcx, rbx
call fcn.140004144
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov qword [rsp + 0x160], r15
lea rax, [rsp + 0x150]
cmp qword [rsp + 0x168], 8
cmovae rax, qword [rsp + 0x150]
mov word [rax], r15w
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystem_bios
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400583a7
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005826d
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.140003e80
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 3
jne 0x140058253
mov r8d, dword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
mov r9b, 1
mov edx, r15d
lea eax, [r8 - 1]
test eax, eax
jle 0x140058253
mov rcx, rbx
cmp word [rcx], 0
jne 0x140058240
movzx eax, word [rcx + 2]
test ax, ax
je 0x140058240
mov word [rcx], ax
mov word [rcx + 2], r15w
xor r9b, r9b
mov r8d, dword [rsp + 0x30]
inc edx
add rcx, 2
lea eax, [r8 - 1]
cmp edx, eax
jl 0x140058221
test r9b, r9b
je 0x140058210
mov rdx, rbx
lea rcx, [rsp + 0x150]
call fcn.140018440
mov rcx, rbx
call fcn.140004144
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1400583a7
lea rcx, [rsp + 0x50]
call fcn.1400194c0
nop
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae rdx, qword [rsp + 0x170]
mov r8, qword [rsp + 0x180]
lea rcx, [rsp + 0x60]
call fcn.140016ce0
lea rdx, [0x1402c7918]
mov rcx, rax
call fcn.140016a20
lea rdx, [rsp + 0x150]
cmp qword [rsp + 0x168], 8
cmovae rdx, qword [rsp + 0x150]
mov r8, qword [rsp + 0x160]
mov rcx, rax
call fcn.140016ce0
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x68]
call fcn.14001a0c0
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae rdx, qword [rsp + 0x1b0]
lea rcx, [r14 + 0x18]
test rdx, rdx
jne 0x14005832a
mov r8d, r15d
jmp 0x14005833b
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140058330
call fcn.140002a9c
mov rdx, qword [rsp + 0x1c8]
cmp rdx, 8
jb 0x140058389
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058383
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005872d
call fcn.140004144
nop
lea rcx, [rsp + 0x50]
call fcn.1400193b0
jmp 0x1400583a7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1a0], r15
mov word [rsp + 0x190], r15w
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystem_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140058537
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SystemBiosDate
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005852c
mov edx, dword [rsp + 0x30]
inc edx
mov eax, 2
mul rdx
cmovo rax, rdi
mov rcx, rax
call fcn.140003e80
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.SystemBiosDate
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 3
jne 0x1400584b3
mov r8d, dword [rsp + 0x30]
nop dword [rax]
mov r9b, 1
mov edx, r15d
lea eax, [r8 - 1]
test eax, eax
jle 0x1400584b3
mov rax, rbx
cmp word [rax], 0
jne 0x1400584a0
movzx ecx, word [rax + 2]
test cx, cx
je 0x1400584a0
mov word [rax], cx
mov word [rax + 2], r15w
xor r9b, r9b
mov r8d, dword [rsp + 0x30]
inc edx
add rax, 2
lea ecx, [r8 - 1]
cmp edx, ecx
jl 0x140058481
test r9b, r9b
je 0x140058470
mov rdx, rbx
lea rcx, [rsp + 0x190]
call fcn.140018440
mov rcx, rbx
call fcn.140004144
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x190]
cmp qword [rsp + 0x1a8], 8
cmovae rdx, qword [rsp + 0x190]
lea rcx, [r14 + 0x28]
test rdx, rdx
jne 0x140058510
mov edi, r15d
mov r8d, r15d
call fcn.140002a9c
mov rsi, qword [rsp + 0x1a8]
jmp 0x140058537
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140058510
mov r8d, edi
call fcn.140002a9c
mov rsi, qword [rsp + 0x1a8]
jmp 0x140058537
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x44], r15d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSecureBootState
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400585e1
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.UEFISecureBootEnabled
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x1400585db
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.UEFISecureBootEnabled
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x44], 0
seta dl
mov r8b, 1
jmp 0x1400585e6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor dl, dl
xor r8b, r8b
mov ecx, 0x48
mov eax, 0x58
mov r9, r14
mov byte [r14 + rcx], r8b
mov byte [rax + r14], dl
mov rdx, qword [rsp + 0x168]
cmp rdx, 8
jb 0x140058643
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005863e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058733
call fcn.140004144
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x168], 7
mov word [rsp + 0x150], r15w
mov rdx, qword [rsp + 0x188]
cmp rdx, 8
jb 0x1400586a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400586a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058739
call fcn.140004144
mov qword [rsp + 0x180], r15
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], r15w
cmp rsi, 8
jb 0x140058702
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400586fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005873f
call fcn.140004144
nop
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140220510
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140229804
nop
call fcn.140229804
nop
call fcn.140229804
nop
call fcn.140229804
int3