Function at 0x10006780
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x1002f2a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x280], ecx
mov ebx, dword [ecx + 0x30]
test ebx, ebx
je 0x10006c73
lea eax, [ebx + 1]
lea eax, [eax + eax*2]
push esi
lea eax, [ecx + eax*4]
push edi
lea edx, [ebp - 0x274]
sub eax, 0xc
push edx
push dword [ecx + 0x3c]
dec ebx
mov dword [ebp - 0x288], eax
push 0
push str.Interface
push dword [eax]
mov dword [ebp - 0x284], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006c5c
xor edi, edi
mov dword [ebp - 0x270], 0x80
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x270]
mov dword [ebp - 0x278], edi
push eax
lea eax, [ebp - 0x264]
push eax
push edi
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10006c43
nop dword [eax]
mov eax, dword [ebp - 0x270]
xor bl, bl
lea edx, [eax + eax]
cmp edx, 0x160
jae 0x10006c82
xor eax, eax
mov word [ebp + edx - 0x264], ax
cmp word [ebp - 0x264], 0x7b
jne 0x10006c01
cmp word [ebp - 0x252], 0x2d
jne 0x10006c01
cmp word [ebp - 0x248], 0x2d
jne 0x10006c01
cmp word [ebp - 0x23e], 0x2d
jne 0x10006c01
cmp word [ebp - 0x234], 0x2d
jne 0x10006c01
cmp word [ebp - 0x21a], 0x7d
jne 0x10006c01
cmp word [ebp - 0x218], ax
jne 0x10006c01
movzx ecx, word [ebp - 0x262]
lea eax, [ecx - 0x30]
cmp eax, 0xa
jb 0x100068c5
lea eax, [ecx - 0x41]
cmp eax, 6
jb 0x100068c5
lea eax, [ecx - 0x61]
cmp eax, 6
jae 0x10006c01
movups xmm0, xmmword [0x1002359c]
mov ax, word [0x100235ac]
movups xmmword [ebp + edx - 0x264], xmm0
mov word [ebp + edx - 0x254], ax
lea eax, [ebp - 0x26c]
push eax
push 1
push 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006a49
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0xfe
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000694c
cmp dword [ebp - 0x27c], 1
jne 0x1000694c
mov ecx, dword [ebp - 0x268]
jmp 0x10006954
xor ecx, ecx
mov dword [ebp - 0x268], ecx
and ecx, 0xfffffffe
cmp ecx, 0x100
jae 0x10006c82
xor edx, edx
mov word [ebp + ecx - 0x104], dx
test eax, eax
jne 0x10006a3f
lea eax, [ebp - 0x104]
push eax
call fcn.10005f00
add esp, 4
test al, al
je 0x10006a3f
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0xfe
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push str.Version
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x268]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x268], ecx
add ecx, ecx
cmp ecx, 0x100
jae 0x10006c82
mov word [ebp + ecx - 0x104], dx
test eax, eax
jne 0x10006a3f
mov ax, word [ebp - 0xfe]
cmp word [0x100234d6], ax
jne 0x10006a1b
lea eax, [ebp - 0x104]
push eax
push 0x100234d0
call dword [sym.imp.VBoxRT_x86.dll_RTUtf16Cmp]
add esp, 8
test eax, eax
je 0x10006a3d
mov ax, word [ebp - 0xfe]
cmp word [0x100234de], ax
jne 0x10006a3f
lea eax, [ebp - 0x104]
push eax
push 0x100234d8
call dword [sym.imp.VBoxRT_x86.dll_RTUtf16Cmp]
add esp, 8
test eax, eax
jne 0x10006a3f
mov bl, 1
push 0x798
jmp 0x10006bb0
cmp eax, 2
jne 0x10006c01
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x264]
movups xmm0, xmmword [0x100235b0]
lea ecx, [ecx + eax*2]
mov eax, dword [0x100235d0]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x100235c0]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x26c]
push eax
push 1
push 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006c01
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0xfe
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006ae8
cmp dword [ebp - 0x27c], 1
jne 0x10006ae8
mov ecx, dword [ebp - 0x268]
jmp 0x10006af0
xor ecx, ecx
mov dword [ebp - 0x268], ecx
and ecx, 0xfffffffe
cmp ecx, 0x100
jae 0x10006c82
xor edx, edx
mov word [ebp + ecx - 0x104], dx
test eax, eax
jne 0x10006bab
cmp word [ebp - 0x104], 0x7b
jne 0x10006bab
movzx eax, word [ebp - 0x102]
mov ecx, eax
lea edx, [eax - 0x61]
lea eax, [ecx - 0x20]
cmp edx, 0x1a
movzx esi, ax
mov eax, ecx
cmovae esi, eax
movzx eax, word [ebp - 0x100]
mov ecx, eax
movzx edi, si
lea edx, [eax - 0x61]
lea eax, [ecx - 0x20]
cmp edx, 0x1a
movzx esi, ax
mov eax, ecx
cmovae esi, eax
mov eax, dword [str.0BB3B78C_1807_4249_5BA5_EA42D66AF0BF]
movzx esi, si
cmp di, word [eax + 2]
jne 0x10006b7e
cmp si, word [eax + 4]
jne 0x10006b7e
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10004d80
add esp, 8
test al, al
jne 0x10006ba3
mov eax, dword [str.327E3C00_EE61_462F_AED3_0DFF6CBF9904]
cmp di, word [eax + 2]
jne 0x10006ba5
cmp si, word [eax + 4]
jne 0x10006ba5
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10004d80
add esp, 8
test al, al
je 0x10006ba5
mov bl, 1
mov edi, dword [ebp - 0x278]
push 0x7ad
push dword [ebp - 0x26c]
mov esi, dword [ebp - 0x280]
push esi
call fcn.10004cf0
add esp, 0xc
test bl, bl
je 0x10006c01
mov eax, dword [ebp - 0x270]
add eax, eax
cmp eax, 0x160
jae 0x10006c82
xor ecx, ecx
mov word [ebp + eax - 0x264], cx
lea eax, [ebp - 0x264]
push 0x7b7
push eax
push dword [ebp - 0x274]
push esi
call fcn.10005b40
add esp, 0x10
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0x80
push eax
lea eax, [ebp - 0x264]
inc edi
push eax
push edi
push dword [ebp - 0x274]
mov dword [ebp - 0x278], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10006820
mov ebx, dword [ebp - 0x284]
push 0x7c1
push dword [ebp - 0x274]
push dword [ebp - 0x280]
call fcn.10004cf0
add esp, 0xc
test ebx, ebx
je 0x10006c71
mov ecx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x288]
jmp 0x100067b3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008170
mov esp, ebp
pop ebp
ret
call fcn.10008093
int3