Function at 0x10016740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e12e
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x10088014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x78], edi
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
cmp dword [edi + 0x54], ebx
jne 0x10017263
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftAMSIOptions_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x100169cb
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x80618077
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x68], 0x806e8072
mov dword [ebp - 0x64], 0x806e8069
mov dword [ebp - 0x60], 0x802c8067
mov dword [ebp - 0x5c], 0x80528020
mov dword [ebp - 0x58], 0x80678065
mov dword [ebp - 0x54], 0x8070804f
mov dword [ebp - 0x50], 0x806e8065
mov dword [ebp - 0x4c], 0x8065804b
mov dword [ebp - 0x48], 0x80458079
mov dword [ebp - 0x44], 0x80578078
mov dword [ebp - 0x40], 0x80668020
mov dword [ebp - 0x3c], 0x80698061
mov dword [ebp - 0x38], 0x8065806c
mov dword [ebp - 0x34], 0x80208064
mov dword [ebp - 0x30], 0x80698077
mov dword [ebp - 0x2c], 0x80688074
mov dword [ebp - 0x28], 0x80658020
mov dword [ebp - 0x24], 0x80728072
mov dword [ebp - 0x20], 0x8072806f
mov dword [ebp - 0x1c], 0x807b805b
mov dword [ebp - 0x18], 0x805d807d
mov dword [ebp - 0x14], 0x8000
call fcn.1001c040
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 8
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xc8]
cmovae eax, dword [ebp - 0xb0]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.1001c250
add esp, 4
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.10026cb0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
cmovae esi, dword [ebp - 0x94]
call fcn.10027ed0
push esi
push ebx
push str._antimalware_provider__::_CAntimalwareProvider::GetDisplayName____
push 8
push eax
call fcn.100254b0
mov byte [ebp - 4], 1
add esp, 0x14
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x10016901
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100168f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001727f
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp edx, 8
jb 0x1001695e
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016954
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001727f
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
cmp edx, 8
jb 0x100170a6
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100169bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001727f
push edx
push ecx
call fcn.10045702
add esp, 8
jmp 0x100170a6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0
push str.DisplayName
push dword [ebp - 0x74]
call esi
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x10016b66
lea eax, [ebp - 0xc8]
push eax
call fcn.10017290
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x10016a0b
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1001c250
add esp, 4
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.10026cb0
mov byte [ebp - 4], 5
lea esi, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
cmovae esi, dword [ebp - 0x94]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_CAntimalwareProvider::GetDisplayName____
push 8
push eax
call fcn.100254b0
mov byte [ebp - 4], 4
add esp, 0x14
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x10016aa1
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016a97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp edx, 8
jb 0x10016aff
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016af5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
cmp edx, 8
jb 0x100170a6
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100169bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
jmp 0x100169bc
mov eax, dword [ebp - 0x70]
cmp eax, 0x800
jbe 0x10016c86
lea eax, [ebp - 0xc8]
push eax
call fcn.100173a0
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x10016b8f
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1001c250
add esp, 4
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.10026cb0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
cmovae esi, dword [ebp - 0x94]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_CAntimalwareProvider::GetDisplayName____
push 8
push eax
call fcn.100254b0
mov byte [ebp - 4], 7
add esp, 0x14
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x10016c25
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016c1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp edx, 8
jb 0x10016aff
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016af5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
jmp 0x10016af5
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10045e61
mov ecx, dword [ebp - 0x70]
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi + ecx*2], ax
lea eax, [ebp - 0x70]
push eax
push edi
push 0
push 0
push str.DisplayName
push dword [ebp - 0x74]
call esi
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x10016f21
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016cd0
mov esi, dword [ebp - 0x78]
sub ecx, edx
sar ecx, 1
add esi, 0x44
push ecx
push edi
mov ecx, esi
call fcn.10002e70
push edi
call fcn.10045c56
add esp, 4
call fcn.10027ed0
mov eax, dword [eax]
cmp dword [eax], ebx
je 0x10016e0b
cmp dword [esi + 0x14], 8
jb 0x10016d0e
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0x78], esi
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x806e8069
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x40], 0x806f8066
mov dword [ebp - 0x3c], 0x8020802c
mov dword [ebp - 0x38], 0x80698064
mov dword [ebp - 0x34], 0x80708073
mov dword [ebp - 0x30], 0x8061806c
mov dword [ebp - 0x2c], 0x804e8079
mov dword [ebp - 0x28], 0x806d8061
mov dword [ebp - 0x24], 0x80208065
mov dword [ebp - 0x20], 0x80738069
mov dword [ebp - 0x1c], 0x807b8020
mov dword [ebp - 0x18], 0x8000807d
mov word [ebp - 0x14], ax
call fcn.1001c040
mov dword [ebp - 4], 0xf
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], 8
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x7c], 0x4001
cmovae eax, dword [ebp - 0xc8]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x78]
push eax
call fcn.1001cb20
add esp, 4
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x94]
push eax
mov dword [ebp - 0x7c], 0x4003
call fcn.10026cb0
mov dword [ebp - 4], 0x11
lea esi, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
mov ebx, 0x14007
mov dword [ebp - 0x7c], ebx
cmovae esi, dword [ebp - 0x94]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_CAntimalwareProvider::GetDisplayName____
push 0
push eax
call fcn.100254b0
add esp, 0x14
test bl, 4
je 0x10016e6a
mov edx, dword [ebp - 0x80]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x10016e50
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016e46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
test bl, 2
je 0x10016ecf
mov edx, dword [ebp - 0x9c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x10016eb2
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016ea8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
test bl, 1
je 0x10017263
mov edx, dword [ebp - 0xb4]
cmp edx, 8
jb 0x10017263
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016f12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
jmp 0x10017263
lea eax, [ebp - 0xc8]
push eax
call fcn.100175a0
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x10016f3c
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1001c250
add esp, 4
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xd
call fcn.10026cb0
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
cmovae esi, dword [ebp - 0x94]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_CAntimalwareProvider::GetDisplayName____
push 8
push eax
call fcn.100254b0
mov byte [ebp - 4], 0xd
add esp, 0x14
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x10016fd8
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016fce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp edx, 8
jb 0x10017036
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001702c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
cmp edx, 8
jb 0x1001709a
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017090
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
push edi
call fcn.10045c56
mov edi, dword [ebp - 0x78]
add esp, 4
lea eax, [ebp - 0x110]
push eax
call fcn.10017690
mov dword [ebp - 4], 0x12
cmp dword [eax + 0x14], 8
jb 0x100170c1
mov eax, dword [eax]
push ecx
lea edx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0xf8]
call fcn.1001cd50
add esp, 4
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x13
call fcn.10026cb0
mov byte [ebp - 4], 0x14
lea esi, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 8
cmovae esi, dword [ebp - 0xe0]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_CAntimalwareProvider::GetDisplayName____
push 8
push eax
call fcn.100254b0
mov byte [ebp - 4], 0x13
add esp, 0x14
mov edx, dword [ebp - 0xcc]
cmp edx, 8
jb 0x10017160
mov ecx, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017156
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
cmp edx, 8
jb 0x100171c1
mov ecx, dword [ebp - 0xf8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100171b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
cmp edx, 8
jb 0x10017221
mov ecx, dword [ebp - 0x110]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017217
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017284
push edx
push ecx
call fcn.10045702
add esp, 8
mov ecx, str.Bitdefender_AMSI_Provider
mov dword [ebp - 0x100], 0
xor eax, eax
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017246
sub ecx, edx
sar ecx, 1
push ecx
push str.Bitdefender_AMSI_Provider
lea ecx, [edi + 0x44]
call fcn.10002e70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100456c4
mov esp, ebp
pop ebp
ret
call fcn.100503fe
call fcn.100503fe
int3