Function at 0x10018860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bb9d
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100d0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 7
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x400
mov dword [ebp - 0x88], 0x400
call fcn.1000d9b0
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x28]
cmova edx, dword [ebp - 0x28]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018910
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003150
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.10003260
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x40]
call fcn.100174e0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.1000b750
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x100189ac
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100189a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ea1
push ecx
push edx
call fcn.1005cfe0
add esp, 8
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x60]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
movq qword [ebp - 0x18], xmm0
cmp ecx, 7
jbe 0x100189fc
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100189f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ea1
push ecx
push edx
call fcn.1005cfe0
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x10018a4d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018a43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ea1
push ecx
push edx
call fcn.1005cfe0
add esp, 8
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 7
mov edi, dword [ebp - 0x18]
cmova edx, eax
mov dword [ebp - 0x74], edx
cmp edi, 8
jne 0x10018ab2
mov esi, edi
mov edx, str.acad.exe
test esi, esi
je 0x10018a9d
mov eax, dword [ebp - 0x74]
sub eax, edx
mov dword [ebp - 0x74], eax
nop word [eax + eax]
movzx ecx, word [eax + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10018aac
mov eax, dword [ebp - 0x74]
add edx, 2
sub esi, 1
jne 0x10018a80
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x80]
or dword [esi + 0x1f0], 0x80
jmp 0x10018ab5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x80]
cmp ecx, 7
lea ecx, [ebp - 0x28]
cmova ecx, eax
cmp edi, 0xf
jne 0x10018b00
mov eax, edi
mov edx, str.wezterm_gui.exe
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10018af3
sub ecx, edx
mov dword [ebp - 0x78], ecx
movzx ecx, word [ecx + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10018afd
mov eax, dword [ebp - 0x74]
add edx, 2
mov ecx, dword [ebp - 0x78]
dec eax
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x10018ad6
or dword [esi + 0x1f0], 0x800
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
cmova ecx, eax
cmp edi, 0xb
jne 0x10018b49
mov eax, edi
mov edx, str.firefox.exe
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10018b3f
sub ecx, edx
mov dword [ebp - 0x78], ecx
movzx ecx, word [edx + ecx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10018b49
mov eax, dword [ebp - 0x74]
add edx, 2
mov ecx, dword [ebp - 0x78]
dec eax
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x10018b22
or dword [esi + 0x1f0], 0x800000
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp eax, 7
cmova ecx, dword [ebp - 0x28]
cmp edi, 9
jne 0x10018c41
mov eax, edi
mov edx, str.dota2.exe
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10018b93
sub ecx, edx
mov dword [ebp - 0x78], ecx
movzx ecx, word [edx + ecx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10018c3e
mov eax, dword [ebp - 0x74]
add edx, 2
mov ecx, dword [ebp - 0x78]
dec eax
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x10018b72
mov eax, dword [esi + 0x1f0]
and eax, 0xfffeffff
or eax, 0x200000
mov dword [esi + 0x1f0], eax
mov ecx, dword [esi + 0x178]
mov eax, dword [ecx + 0x14]
mov dl, byte [eax + 0x1f2]
mov eax, dword [ecx + 0xc]
and dl, 1
mov byte [eax + 0x4e8], dl
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x10018bd1
mov byte [eax + 0x2b0], dl
cmp dword [0x100d55b4], 7
lea ecx, [ebp - 0x74]
push ecx
push 0x20119
mov eax, 0x100d55a0
cmova eax, dword [0x100d55a0]
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10018c3b
cmp dword [0x100d5584], 7
lea eax, [ebp - 0x78]
push eax
lea eax, [esi + 0x1dc]
mov dword [ebp - 0x78], 0x10
push eax
push 0
mov ecx, 0x100d5570
cmova ecx, dword [0x100d5570]
push 0
push ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp eax, 7
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
cmp edi, 0x13
jne 0x10018c81
mov edx, str.PlantsVsZombies.exe
test edi, edi
je 0x10018c77
sub ecx, edx
mov dword [ebp - 0x78], ecx
nop
movzx ecx, word [edx + ecx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10018c81
mov ecx, dword [ebp - 0x78]
add edx, 2
sub edi, 1
jne 0x10018c60
or dword [esi + 0x1f0], 0x4000000
xor eax, eax
lea ecx, [esi + 0x234]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x14], 7
lea eax, [eax + eax*2]
push dword [ebp - 0x18]
lea edi, [ecx + eax*8]
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x40], xmm0
call fcn.10003260
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x40]
call fcn.100174e0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.1000b750
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x8c], eax
jbe 0x10018cf2
mov edi, dword [edi]
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x58]
cmp ecx, 7
mov esi, dword [ebp - 0x48]
seta byte [ebp - 0x7a]
mov dword [ebp - 0x78], edx
cmova eax, edx
cmp esi, dword [ebp - 0x8c]
jne 0x10018d46
test esi, esi
je 0x10018d3a
sub edi, eax
nop dword [eax]
movzx edx, word [eax]
movzx ecx, word [eax + edi]
cmp dx, cx
jne 0x10018d40
add eax, 2
sub esi, 1
jne 0x10018d20
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 0x79], 1
jmp 0x10018d4a
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 0x79], 0
cmp byte [ebp - 0x7a], 0
je 0x10018d7f
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018d75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ea1
push ecx
push edx
call fcn.1005cfe0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x10018dbd
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018db3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ea1
push ecx
push edx
call fcn.1005cfe0
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 7
jbe 0x10018e0e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018e04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ea1
push ecx
push edx
call fcn.1005cfe0
add esp, 8
cmp byte [ebp - 0x79], 0
je 0x10018e39
mov esi, dword [ebp - 0x80]
mov eax, dword [esi + 0x1f0]
or eax, 0x40000
cmp dword [ebp - 0x74], 0
mov dword [esi + 0x1f0], eax
jne 0x10018e39
or eax, 0x80000
mov dword [esi + 0x1f0], eax
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp eax, 2
jae 0x10018e50
mov ecx, dword [ebp - 0x84]
jmp 0x10018c92
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x10018e86
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018e7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ea6
push ecx
push edx
call fcn.1005cfe0
add esp, 8
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.1005cfa2
mov esp, ebp
pop ebp
ret
call fcn.1006c54f
call fcn.1006c54f
int3