Function at 0x140058940
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 [0x14031b940]
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 0x140058d60
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 0x140058d55
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140003bd0
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 0x140058ac3
mov r8d, dword [rsp + 0x30]
nop dword [rax + rax]
mov r9b, 1
mov edx, r15d
lea eax, [r8 - 1]
test eax, eax
jle 0x140058ac3
mov rcx, rbx
cmp word [rcx], 0
jne 0x140058ab0
movzx eax, word [rcx + 2]
test ax, ax
je 0x140058ab0
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 0x140058a91
test r9b, r9b
je 0x140058a80
mov rdx, rbx
lea rcx, [rsp + 0x170]
call fcn.1400182b0
mov rcx, rbx
call fcn.140003e94
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], 7
cmova 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 0x140058d67
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 0x140058c2d
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.140003bd0
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 0x140058c13
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 0x140058c13
mov rcx, rbx
cmp word [rcx], 0
jne 0x140058c00
movzx eax, word [rcx + 2]
test ax, ax
je 0x140058c00
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 0x140058be1
test r9b, r9b
je 0x140058bd0
mov rdx, rbx
lea rcx, [rsp + 0x150]
call fcn.1400182b0
mov rcx, rbx
call fcn.140003e94
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x140058d67
lea rcx, [rsp + 0x50]
call fcn.140019350
nop
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 7
cmova rdx, qword [rsp + 0x170]
mov r8, qword [rsp + 0x180]
lea rcx, [rsp + 0x60]
call fcn.140016b40
lea rdx, [0x1402cd5b8]
mov rcx, rax
call fcn.140016880
lea rdx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rdx, qword [rsp + 0x150]
mov r8, qword [rsp + 0x160]
mov rcx, rax
call fcn.140016b40
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x68]
call fcn.140019f80
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 7
cmova rdx, qword [rsp + 0x1b0]
lea rcx, [r14 + 0x18]
test rdx, rdx
jne 0x140058cea
mov r8d, r15d
jmp 0x140058cfb
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140058cf0
call fcn.140002b6c
mov rdx, qword [rsp + 0x1c8]
cmp rdx, 7
jbe 0x140058d49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058d43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400590ed
call fcn.140003e94
nop
lea rcx, [rsp + 0x50]
call fcn.140019240
jmp 0x140058d67
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 0x140058ef7
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 0x140058eec
mov edx, dword [rsp + 0x30]
inc edx
mov eax, 2
mul rdx
cmovo rax, rdi
mov rcx, rax
call fcn.140003bd0
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 0x140058e73
mov r8d, dword [rsp + 0x30]
nop dword [rax]
mov r9b, 1
mov edx, r15d
lea eax, [r8 - 1]
test eax, eax
jle 0x140058e73
mov rax, rbx
cmp word [rax], 0
jne 0x140058e60
movzx ecx, word [rax + 2]
test cx, cx
je 0x140058e60
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 0x140058e41
test r9b, r9b
je 0x140058e30
mov rdx, rbx
lea rcx, [rsp + 0x190]
call fcn.1400182b0
mov rcx, rbx
call fcn.140003e94
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x190]
cmp qword [rsp + 0x1a8], 7
cmova rdx, qword [rsp + 0x190]
lea rcx, [r14 + 0x28]
test rdx, rdx
jne 0x140058ed0
mov edi, r15d
mov r8d, r15d
call fcn.140002b6c
mov rsi, qword [rsp + 0x1a8]
jmp 0x140058ef7
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140058ed0
mov r8d, edi
call fcn.140002b6c
mov rsi, qword [rsp + 0x1a8]
jmp 0x140058ef7
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 0x140058fa1
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 0x140058f9b
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 0x140058fa6
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 [r14 + rax], dl
mov rdx, qword [rsp + 0x168]
cmp rdx, 7
jbe 0x140059003
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058ffe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400590f3
call fcn.140003e94
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x168], 7
mov word [rsp + 0x150], r15w
mov rdx, qword [rsp + 0x188]
cmp rdx, 7
jbe 0x140059068
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059063
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400590f9
call fcn.140003e94
mov qword [rsp + 0x180], r15
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], r15w
cmp rsi, 7
jbe 0x1400590c2
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400590bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400590ff
call fcn.140003e94
nop
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140220ab0
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.14022a250
nop
call fcn.14022a250
nop
call fcn.14022a250
nop
call fcn.14022a250
int3