Function at 0x10004170
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x100370a0]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
je 0x10004221
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x68], ebx
mov ecx, dword [eax]
push 2
push eax
mov eax, dword [ecx + 0x3c]
call eax
cmp eax, ebx
jne 0x10004221
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x60]
push ecx
push 0x2001f
push ebx
push str.SoftwarePoliciesGoogleChromeExtensionInstallWhitelist
push edx
mov dword [ebp - 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x78], eax
cmp eax, 2
jne 0x10004212
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.10013396
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x60], ebx
jne 0x10004225
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x100041f4
push 0xc
mov dword [ebp - 0x70], ebx
call fcn.100139d0
add esp, 4
cmp eax, ebx
je 0x100045a1
mov edi, eax
mov dword [eax], eax
mov dword [ebp - 0x74], edi
mov dword [eax + 4], eax
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], esi
lea esp, [esp]
cmp esi, 0x100
jge 0x100043b2
xor eax, eax
xor edx, edx
push 0x80
mov word [ebp - 0x24], dx
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x84], 0xa
call fcn.10013d8f
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x60]
push 0
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x24]
push eax
push esi
push ecx
mov dword [ebp - 0x7c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x10004390
cmp dword [ebp - 0x8c], 1
jne 0x10004390
push 0xa
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.10013fe5
add esp, 0xc
test eax, eax
jle 0x10004390
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100042f0
sub eax, edx
sar eax, 1
cmp eax, 0x20
jne 0x10004390
mov esi, dword [edi]
mov byte [ebp - 0x59], cl
cmp esi, edi
je 0x10004351
mov eax, dword [esi + 8]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000433c
test dx, dx
je 0x10004338
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000433c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10004316
xor eax, eax
jmp 0x10004341
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000434d
mov esi, dword [esi]
cmp esi, edi
jne 0x10004311
jmp 0x10004351
mov byte [ebp - 0x59], 1
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec dword [ebp - 0x64]
cmp byte [ebp - 0x59], 0
jne 0x10004390
mov esi, dword [ebp - 0x7c]
push esi
call fcn.10013d8f
add esp, 4
push esi
push ebx
push eax
mov dword [ebp - 0x80], eax
call fcn.10016130
add esp, 0xc
lea eax, [ebp - 0x80]
lea edi, [ebp - 0x74]
call fcn.100045e0
mov edi, dword [ebp - 0x74]
push ebx
call fcn.10013fff
mov esi, dword [ebp - 0x64]
inc esi
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x88], 0x103
mov dword [ebp - 0x64], esi
jne 0x10004250
cmp dword [ebp + 0xc], ebx
je 0x10004436
mov edi, dword [edi]
mov esi, edi
cmp esi, dword [ebp - 0x74]
je 0x10004433
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100043ec
test dx, dx
je 0x100043e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100043ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x100043c6
xor eax, eax
jmp 0x100043f1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100043fe
mov esi, dword [esi]
cmp esi, dword [ebp - 0x74]
jne 0x100043c0
jmp 0x10004433
mov ebx, dword [esi + 8]
mov esi, edi
mov edi, dword [ebp - 0x74]
cmp esi, edi
je 0x10004433
lea ebx, [ebx]
cmp dword [esi + 8], ebx
jne 0x1000442d
mov eax, dword [esi + 4]
push esi
mov esi, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], eax
call fcn.1001338b
add esp, 4
dec dword [ebp - 0x70]
jmp 0x1000442f
mov esi, dword [esi]
cmp esi, edi
jne 0x10004410
mov edi, dword [ebp - 0x74]
mov ebx, dword [edi]
mov esi, 1
cmp ebx, edi
je 0x100044cb
mov edx, dword [ebp - 0x70]
add edx, 0x100
mov dword [ebp - 0x64], edx
cmp esi, dword [ebp - 0x64]
jae 0x10004489
push esi
lea eax, [ebp - 0x38]
push 0x1002f80c
push eax
call fcn.10014039
mov edx, dword [ebp - 0x60]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x10004489
inc esi
cmp esi, dword [ebp - 0x64]
jb 0x10004456
mov edx, dword [ebx + 8]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004491
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [ebp - 0x60]
push 1
push 0
lea ecx, [ebp - 0x38]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x78], 0
jne 0x100044c1
mov dword [ebp - 0x78], eax
mov ebx, dword [ebx]
cmp ebx, dword [ebp - 0x74]
jne 0x10004451
mov edi, dword [ebp - 0x74]
mov esi, dword [edi]
cmp esi, edi
je 0x100044ec
mov eax, dword [esi + 8]
test eax, eax
je 0x100044e6
cmp eax, dword [ebp + 0xc]
je 0x100044e6
push eax
call fcn.10013fff
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x100044d1
mov eax, dword [ebp - 0x60]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x68]
push ecx
call esi
mov eax, dword [0x1002f758]
mov ecx, dword [0x1002f75c]
mov edx, dword [0x1002f754]
mov dword [ebp - 0x44], eax
mov eax, dword [0x1002f764]
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x1002f768]
mov dword [ebp - 0x58], eax
mov eax, dword [0x1002f770]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x48], edx
mov edx, dword [0x1002f760]
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x3c], edx
mov edx, dword [0x1002f76c]
lea ecx, [ebp - 0x48]
push ecx
push 1
mov dword [ebp - 0x50], edx
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 1
push eax
call edx
test eax, eax
jne 0x1000456c
cmp dword [ebp - 0x78], eax
jne 0x1000456c
mov bl, 1
jmp 0x1000456e
xor bl, bl
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x10004591
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.1001338b
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x10004580
push edi
call fcn.1001338b
add esp, 4
mov al, bl
jmp 0x100041f4
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], ebx
call fcn.10013ad8
push 0x10032e88
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], vtable.std::bad_alloc.0
call fcn.1001586a
int3