Function at 0x140056370
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1f0
mov rax, qword [0x14030b930]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov r15, rdx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov qword [r11 - 0x78], r12
mov qword [r11 - 0x68], r12
mov ebx, 7
mov qword [rsp + 0x48], rbx
mov qword [r11 - 0x60], rbx
mov word [r11 - 0x78], r12w
mov qword [r11 - 0x98], r12
mov qword [r11 - 0x80], rbx
mov qword [r11 - 0xb8], r12
mov qword [r11 - 0xa8], r12
mov qword [r11 - 0xa0], rbx
mov word [r11 - 0xb8], r12w
mov qword [r11 - 0x88], r12
mov word [r11 - 0x98], r12w
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 0x140056c1e
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
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 0x140056c13
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.140003e28
mov r15, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
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 0x140056503
mov r8d, dword [rsp + 0x30]
nop word [rax + rax]
mov r9b, 1
mov edx, r12d
lea eax, [r8 - 1]
test eax, eax
jle 0x140056503
mov rcx, r15
cmp word [rcx], 0
jne 0x1400564f0
movzx eax, word [rcx + 2]
test ax, ax
je 0x1400564f0
mov word [rcx], ax
mov word [rcx + 2], r12w
xor r9b, r9b
mov r8d, dword [rsp + 0x30]
inc edx
add rcx, 2
lea eax, [r8 - 1]
cmp edx, eax
jl 0x1400564d1
test r9b, r9b
je 0x1400564c0
mov rbx, rsi
nop word [rax + rax]
inc rbx
cmp word [r15 + rbx*2], 0
jne 0x140056510
mov r14, qword [rsp + 0x198]
cmp rbx, r14
ja 0x140056571
lea rdi, [rsp + 0x180]
cmp r14, 8
cmovae rdi, qword [rsp + 0x180]
mov qword [rsp + 0x190], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.1402171d0
mov word [rbx + rdi], r12w
movabs r13, 0x7ffffffffffffffe
mov r12, 0xfffffffffffffffe
jmp 0x1400566af
movabs r13, 0x7ffffffffffffffe
cmp rbx, r13
ja 0x140056f38
mov rsi, rbx
or rsi, 7
cmp rsi, r13
jbe 0x14005659f
mov rsi, r13
mov r12, 0xfffffffffffffffe
mov rcx, r12
jmp 0x1400565f4
mov rcx, r14
shr rcx, 1
mov rax, r13
sub rax, rcx
cmp r14, rax
jbe 0x1400565bf
mov rsi, r13
mov r12, 0xfffffffffffffffe
mov rcx, r12
jmp 0x1400565f4
lea rax, [r14 + rcx]
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
ja 0x140056f3e
add rcx, rcx
cmp rcx, 0x1000
jb 0x140056620
mov r12, 0xfffffffffffffffe
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140056f43
mov rcx, rax
call fcn.14007585c
test rax, rax
je 0x140056f48
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140056639
test rcx, rcx
je 0x14005662f
call fcn.14007585c
mov rdi, rax
jmp 0x140056632
mov rdi, r12
mov r12, 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov qword [rsp + 0x198], rsi
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.1402171d0
xor eax, eax
mov word [rbx + rdi], ax
cmp r14, 8
jb 0x1400566a0
lea rdx, [r14*2 + 2]
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005669b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056f4d
call fcn.140004104
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x180], rdi
movabs rdi, 0x7fffffffffffffff
mov rcx, r15
call fcn.1400758a4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x170], rbx
lea rax, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
cmovae rax, qword [rsp + 0x160]
mov word [rax], bx
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 0x140056a92
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
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 0x140056a87
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.140003e28
mov r15, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
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 0x1400567f0
mov r8d, dword [rsp + 0x30]
nop word [rax + rax]
mov r9b, 1
mov edx, ebx
lea eax, [r8 - 1]
test eax, eax
jle 0x1400567f0
mov rcx, r15
cmp word [rcx], bx
jne 0x1400567dd
movzx eax, word [rcx + 2]
test ax, ax
je 0x1400567dd
mov word [rcx], ax
mov word [rcx + 2], bx
xor r9b, r9b
mov r8d, dword [rsp + 0x30]
inc edx
add rcx, 2
lea eax, [r8 - 1]
cmp edx, eax
jl 0x1400567c0
test r9b, r9b
je 0x1400567b0
mov rbx, rsi
inc rbx
cmp word [r15 + rbx*2], 0
jne 0x1400567f3
mov r14, qword [rsp + 0x178]
cmp rbx, r14
ja 0x140056846
lea rdi, [rsp + 0x160]
cmp r14, 8
cmovae rdi, qword [rsp + 0x160]
mov qword [rsp + 0x170], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.1402171d0
xor r14d, r14d
mov word [rdi + rbx], r14w
jmp 0x140056955
cmp rbx, r13
ja 0x140056f53
mov rsi, rbx
or rsi, 7
cmp rsi, r13
jbe 0x140056863
mov rsi, r13
mov rcx, r12
jmp 0x1400568a0
mov rcx, r14
shr rcx, 1
mov rax, r13
sub rax, rcx
cmp r14, rax
jbe 0x14005687c
mov rsi, r13
mov rcx, r12
jmp 0x1400568a0
lea rax, [rcx + r14]
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, rdi
ja 0x140056f58
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400568cc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140056f5d
mov rcx, rax
call fcn.14007585c
test rax, rax
je 0x140056f62
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400568df
test rcx, rcx
je 0x1400568db
call fcn.14007585c
mov rdi, rax
jmp 0x1400568df
xor eax, eax
mov edi, eax
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x178], rsi
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.1402171d0
xor eax, eax
mov word [rdi + rbx], ax
cmp r14, 8
jb 0x140056946
lea rdx, [r14*2 + 2]
mov rcx, qword [rsp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056941
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056f67
call fcn.140004104
xor r14d, r14d
lea rsi, [r14 - 1]
mov qword [rsp + 0x160], rdi
mov rcx, r15
call fcn.1400758a4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.140018dc0
nop
lea rdx, [rsp + 0x180]
cmp qword [rsp + 0x198], 8
cmovae rdx, qword [rsp + 0x180]
mov r8, qword [rsp + 0x190]
lea rcx, [rsp + 0x70]
call fcn.1400165e0
lea rdx, [0x1402ba9c8]
mov rcx, rax
call fcn.140016310
lea rdx, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
cmovae rdx, qword [rsp + 0x160]
mov r8, qword [rsp + 0x170]
mov rcx, rax
call fcn.1400165e0
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x78]
call fcn.1400199b0
lea rdx, [rsp + 0x1c0]
cmp qword [rsp + 0x1d8], 8
cmovae rdx, qword [rsp + 0x1c0]
mov r15, qword [rsp + 0x50]
lea rcx, [r15 + 0x18]
test rdx, rdx
jne 0x140056a17
mov eax, r14d
jmp 0x140056a2a
mov rax, rsi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140056a20
mov r8d, eax
call fcn.140002a88
mov rdx, qword [rsp + 0x1d8]
cmp rdx, 8
jb 0x140056a7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056a75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056f6d
call fcn.140004104
nop
lea rcx, [rsp + 0x60]
call fcn.140018ca0
jmp 0x140056a97
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
movabs rdi, 0x7fffffffffffffff
mov r14, 0xffffffffffffffff
xor esi, esi
mov qword [rsp + 0x1b0], rsi
mov word [rsp + 0x1a0], si
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 0x140056d4d
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
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 0x140056d42
mov edx, dword [rsp + 0x30]
inc edx
mov eax, 2
mul rdx
cmovo rax, r14
mov rcx, rax
call fcn.140003e28
mov rsi, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.SystemBiosDate
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r10d, r10d
cmp dword [rsp + 0x40], 3
jne 0x140056bc3
mov r8d, dword [rsp + 0x30]
nop word [rax + rax]
mov r9b, 1
mov edx, r10d
lea eax, [r8 - 1]
test eax, eax
jle 0x140056bc3
mov rcx, rsi
cmp word [rcx], r10w
jne 0x140056bb0
movzx eax, word [rcx + 2]
test ax, ax
je 0x140056bb0
mov word [rcx], ax
mov word [rcx + 2], r10w
xor r9b, r9b
mov r8d, dword [rsp + 0x30]
inc edx
add rcx, 2
lea eax, [r8 - 1]
cmp edx, eax
jl 0x140056b91
test r9b, r9b
je 0x140056b80
mov rbx, r14
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140056bc6
cmp rbx, 7
ja 0x140056c34
mov qword [rsp + 0x1b0], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x1a0]
call fcn.1402171d0
xor eax, eax
mov word [rsp + rbx + 0x1a0], ax
mov r13, qword [rsp + 0x1b8]
mov rdi, qword [rsp + 0x1a0]
jmp 0x140056ce0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movabs r13, 0x7ffffffffffffffe
mov r12, 0xfffffffffffffffe
jmp 0x140056a9c
cmp rbx, r13
ja 0x140056f73
mov rax, rbx
or rax, 7
cmp rax, r13
ja 0x140056c72
mov r13, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r13, rcx
lea rax, [r13 + 1]
cmp rax, rdi
ja 0x140056f78
lea r12, [rax + rax]
cmp r12, 0x1000
jb 0x140056c9c
lea rcx, [r12 + 0x27]
cmp rcx, r12
jbe 0x140056f7d
call fcn.14007585c
test rax, rax
je 0x140056f82
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140056cb1
test r12, r12
je 0x140056cae
mov rcx, r12
call fcn.14007585c
mov rdi, rax
jmp 0x140056cb1
mov rdi, r10
mov qword [rsp + 0x1b0], rbx
mov qword [rsp + 0x1b8], r13
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1402171d0
xor eax, eax
mov word [rdi + rbx], ax
mov qword [rsp + 0x1a0], rdi
mov rcx, rsi
call fcn.1400758a4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x1a0]
cmp r13, 8
cmovae rdx, rdi
lea rcx, [r15 + 0x28]
test rdx, rdx
jne 0x140056d23
xor esi, esi
mov r14d, esi
mov r8d, esi
call fcn.140002a88
mov rbx, qword [rsp + 0x1b8]
jmp 0x140056d4d
inc r14
cmp word [rdx + r14*2], 0
jne 0x140056d23
xor esi, esi
mov r8d, r14d
call fcn.140002a88
mov rbx, qword [rsp + 0x1b8]
jmp 0x140056d4d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x44], esi
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 0x140056df4
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
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 0x140056dee
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 al
mov cl, 1
jmp 0x140056df8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
xor cl, cl
mov byte [r15 + 0x48], cl
mov byte [r15 + 0x58], al
mov rdx, qword [rsp + 0x178]
cmp rdx, 8
jb 0x140056e48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056e43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056f88
call fcn.140004104
mov qword [rsp + 0x170], rsi
mov qword [rsp + 0x178], 7
mov word [rsp + 0x160], si
mov rdx, qword [rsp + 0x198]
cmp rdx, 8
jb 0x140056eac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x180]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056ea7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056f8e
call fcn.140004104
mov qword [rsp + 0x190], rsi
mov qword [rsp + 0x198], 7
mov word [rsp + 0x180], si
cmp rbx, 8
jb 0x140056f09
lea rdx, [rbx*2 + 2]
mov rcx, qword [rsp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056f03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056f94
call fcn.140004104
nop
mov al, 1
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140212a70
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140006980
nop
call fcn.14000616c
call fcn.14000616c
call fcn.14021b87c
call fcn.14021b87c
int3
call fcn.140006980
call fcn.14000616c
call fcn.14000616c
call fcn.14021b87c
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.140006980
call fcn.14000616c
call fcn.14000616c
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.14021b87c
nop
call fcn.14021b87c
int3