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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b61b6
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x174], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x154], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100fd210]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100fe20c]
cmp eax, dword [ecx + 4]
jle 0x1005e615
push 0x100fe20c
call fcn.10076c14
add esp, 4
cmp dword [0x100fe20c], 0xffffffff
jne 0x1005e615
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 0x49
push str.SYSTEMControlSet001ControlClass4d36e968_e325_11ce_bfc1_08002be10318
mov ecx, 0x100fe210
mov dword [0x100fe220], 0
movups xmmword [0x100fe210], xmm0
mov dword [0x100fe224], 0
call fcn.10037aa0
push 0x100b8300
call fcn.10076fef
mov byte [ebp - 4], 0
push 0x100fe20c
call fcn.10076bca
add esp, 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
push 0x100fe210
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x154], 1
call fcn.10041890
mov dword [ebp - 4], 3
xorps xmm0, xmm0
mov dword [ebp - 0x154], 9
xor eax, eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
push eax
mov eax, 0x104
sub eax, dword [ebp - 0x38]
push eax
call fcn.10039e20
xor esi, esi
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x164]
push 0
push 0
add eax, eax
cmp dword [ebp - 0x34], 8
push 0
push 0
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ecx
push eax
push esi
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1005e770
cmp dword [ebp - 0x34], 8
lea edi, [ebp - 0x48]
mov ecx, dword [ebp - 0x16c]
cmovae edi, dword [ebp - 0x48]
mov dword [ebp - 0x158], edi
cmp ecx, dword [ebp - 0x168]
je 0x1005e757
mov edx, edi
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [edx + 2]
mov dword [ebp - 0x158], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1005e730
sub edx, dword [ebp - 0x158]
sar edx, 1
push edx
push edi
call fcn.10037aa0
add dword [ebp - 0x16c], 0x18
inc esi
jmp 0x1005e6c2
lea eax, [ebp - 0x158]
push eax
push ecx
lea ecx, [ebp - 0x170]
call fcn.10041400
inc esi
jmp 0x1005e6c2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.10038340
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0x16c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x150]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x174], ecx
cmp eax, ecx
je 0x1005efa2
nop dword [eax + eax]
sub esp, 8
lea ecx, [ebp - 0x130]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10041ba0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x8c], 0
jne 0x1005e7f4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.10038340
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x80]
call fcn.10038340
mov byte [ebp - 4], 3
jmp 0x1005ef66
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xbc]
push 0xa
push str.DriverDesc
movq qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
call fcn.10037aa0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xbc]
push ecx
push eax
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10041cd0
mov edi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x30]
cmp eax, edi
je 0x1005e8a1
mov ecx, eax
call fcn.10038340
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x148]
call fcn.10038340
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xa8]
cmp ecx, 8
jb 0x1005e8f4
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e8ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f025
push ecx
push edx
call fcn.100768a6
add esp, 8
xor eax, eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
cmp dword [ebp - 0x20], eax
jne 0x1005e937
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10038340
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x68]
call fcn.10038340
mov byte [ebp - 4], 0xd
jmp 0x1005ef54
push 0x20
xorps xmm0, xmm0
mov dword [ebp - 0xc4], eax
push str.HardwareInformation.qwMemorySize
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xc0], eax
movups xmmword [ebp - 0xd4], xmm0
call fcn.10037aa0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x8c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test ecx, ecx
jne 0x1005e97b
mov byte [ebp - 0x149], cl
jmp 0x1005e9cd
cmp dword [ebp - 0xc0], 8
lea edx, [ebp - 0x150]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x150], 8
push edx
lea edx, [ebp - 0x178]
push edx
lea eax, [ebp - 0xd4]
cmovae eax, dword [ebp - 0xd4]
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x1005e9c6
cmp dword [ebp - 0x178], 0xb
mov ecx, 0xd
cmovne eax, ecx
test eax, eax
sete byte [ebp - 0x149]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call fcn.10038340
cmp byte [ebp - 0x149], 0
je 0x1005ea41
mov edi, dword [esi + 4]
lea eax, [ebp - 0x30]
push eax
cmp edi, dword [esi + 8]
je 0x1005ea18
mov ecx, edi
mov dword [ebp - 0x18c], edi
call fcn.10038fd0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov byte [ebp - 4], 9
add dword [esi + 4], 0x20
jmp 0x1005ea20
push edi
mov ecx, esi
call fcn.1005f3a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10038340
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x68]
call fcn.10038340
mov byte [ebp - 4], 0x14
jmp 0x1005ef54
push 0x1e
xorps xmm0, xmm0
mov dword [ebp - 0x15c], 0
push str.HardwareInformation.MemorySize
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xdc], 0
movups xmmword [ebp - 0xec], xmm0
mov dword [ebp - 0xd8], 0
call fcn.10037aa0
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
jne 0x1005ea91
mov byte [ebp - 0x149], cl
jmp 0x1005eae6
cmp dword [ebp - 0xd8], 8
lea edx, [ebp - 0x150]
push edx
lea edx, [ebp - 0x15c]
mov dword [ebp - 0x150], 4
push edx
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0xec]
cmovae eax, dword [ebp - 0xec]
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x1005eadf
cmp dword [ebp - 0x17c], 4
mov ecx, 0xd
cmovne eax, ecx
test eax, eax
sete byte [ebp - 0x149]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xec]
call fcn.10038340
cmp byte [ebp - 0x149], 0
je 0x1005eb6a
mov eax, dword [ebp - 0x15c]
mov edi, dword [esi + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
cmp edi, dword [esi + 8]
je 0x1005eb41
mov ecx, edi
mov dword [ebp - 0x190], edi
call fcn.10038fd0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov byte [ebp - 4], 9
add dword [esi + 4], 0x20
jmp 0x1005eb49
push edi
mov ecx, esi
call fcn.1005f3a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10038340
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x68]
call fcn.10038340
mov byte [ebp - 4], 0x1b
jmp 0x1005ef54
push 0x1e
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.HardwareInformation.MemorySize
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
call fcn.10037aa0
mov byte [ebp - 4], 0x1e
or dword [ebp - 0x154], 2
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x1005ebeb
cmp dword [ebp - 0x34], 8
lea edx, [ebp - 0x150]
push edx
push 0
lea edx, [ebp - 0x180]
mov dword [ebp - 0x150], 0
push edx
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x1005ebeb
cmp dword [ebp - 0x180], 3
jne 0x1005ebeb
cmp dword [ebp - 0x150], 4
mov byte [ebp - 0x149], 1
je 0x1005ebf2
mov byte [ebp - 0x149], 0
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x154]
test al, 2
je 0x1005ec5a
and eax, 0xfffffffd
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x1005ec46
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ec3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f025
push ecx
push edx
call fcn.100768a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp byte [ebp - 0x149], 0
je 0x1005ede9
push 0x1e
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
push str.HardwareInformation.MemorySize
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0xa4], xmm0
call fcn.10037aa0
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
jne 0x1005ecad
mov byte [ebp - 0x149], cl
jmp 0x1005ed14
cmp dword [ebp - 0x90], 8
lea edx, [ebp - 0x150]
push edx
lea edx, [ebp - 0x15c]
mov dword [ebp - 0x150], 4
push edx
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x1005ecf9
cmp dword [ebp - 0x184], 3
mov ecx, 0xd
cmovne eax, ecx
cmp dword [ebp - 0x150], 4
je 0x1005ed0b
mov byte [ebp - 0x149], 0
jmp 0x1005ed14
test eax, eax
sete byte [ebp - 0x149]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x90]
cmp ecx, 8
jb 0x1005ed58
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ed4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f025
push ecx
push edx
call fcn.100768a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp byte [ebp - 0x149], al
je 0x1005ede9
mov eax, dword [ebp - 0x15c]
mov edi, dword [esi + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
cmp edi, dword [esi + 8]
je 0x1005edc0
mov ecx, edi
mov dword [ebp - 0x194], edi
call fcn.10038fd0
mov byte [ebp - 4], 0x21
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov byte [ebp - 4], 9
add dword [esi + 4], 0x20
jmp 0x1005edc8
push edi
mov ecx, esi
call fcn.1005f3a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10038340
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x68]
call fcn.10038340
mov byte [ebp - 4], 0x23
jmp 0x1005ef54
call fcn.10055620
cmp byte [eax + 0x1c], 0
je 0x1005eefd
call fcn.10055620
mov edi, eax
mov dword [ebp - 0x150], edi
call fcn.1003aaa0
test eax, eax
je 0x1005f01b
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x160]
push 0x1e
push str.FAILED_TO_LOAD_MemorySize_for
call fcn.1003f390
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x30]
jb 0x1005ee4a
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x1005ee72
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ee50
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x160]
call fcn.1003f390
mov edi, dword [ebp - 0x150]
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x1005f01b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x158]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
lea eax, [ebp - 0x160]
mov ecx, edi
push eax
sub esp, 8
call fcn.10055700
mov byte [ebp - 4], 0x28
or eax, 0xffffffff
mov edx, dword [ebp - 0x158]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005eedb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x160]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005eefd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi + 4]
lea eax, [ebp - 0x30]
push eax
cmp edi, dword [esi + 8]
je 0x1005ef30
mov ecx, edi
mov dword [ebp - 0x198], edi
call fcn.10038fd0
mov byte [ebp - 4], 0x31
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov byte [ebp - 4], 9
add dword [esi + 4], 0x20
jmp 0x1005ef38
push edi
mov ecx, esi
call fcn.1005f3a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10038340
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x68]
call fcn.10038340
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x80]
call fcn.10038340
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x1005ef7d
push eax
call edi
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x164]
add eax, 0x18
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x164], eax
cmp eax, dword [ebp - 0x174]
jne 0x1005e7b0
and dword [ebp - 0x154], 0xfffffff7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x170]
call fcn.10038b70
mov dword [ebp - 4], 0x37
lea ecx, [ebp - 0x10c]
call fcn.10038340
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0x124]
call fcn.10038340
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x1005eff4
push eax
call edi
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007685e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100374f0
call fcn.1007bd92
int3