Function at 0x40ece0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f564b
push eax
mov dword fs:[0], esp
sub esp, 0xfc
lea eax, [esp]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
mov ebp, 1
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ed9c
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push ebx
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ed89
lea ecx, [esp + 0x28]
push 0x2e
push ecx
mov esi, ebp
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40ed89
lea edx, [esp + 0x28]
mov byte [eax], bl
push edx
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40ed89
cmp eax, 8
jge 0x40ed89
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40f01d
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20019
push ebx
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ee37
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ebx
push str.CurrentVersion
push ecx
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ee24
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40ee24
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40ee24
cmp eax, 8
jge 0x40ee24
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40f01d
call fcn.00441af0
test eax, eax
je 0x40f011
lea edx, [esp + 0x10]
xor esi, esi
push edx
push 0x20119
push ebx
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eedf
mov ecx, 0x19
lea edi, [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push ebx
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40eecc
lea eax, [esp + 0x28]
mov esi, 1
push 0x2e
push eax
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40eecc
lea ecx, [esp + 0x28]
mov byte [eax], bl
push ecx
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40eecc
cmp eax, 8
jge 0x40eecc
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40f01d
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20119
push ebx
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ef7a
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push ebx
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ef67
lea ecx, [esp + 0x28]
mov esi, 1
push 0x2e
push ecx
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40ef67
lea edx, [esp + 0x28]
mov byte [eax], bl
push edx
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40ef67
cmp eax, 8
jge 0x40ef67
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40f01d
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20119
push ebx
push str.SoftwareMozillaWaterfox
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f011
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ebx
push str.CurrentVersion
push ecx
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f002
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40f002
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40f002
cmp eax, 8
jge 0x40f002
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40f01d
call fcn.0040e5a0
xor eax, eax
jmp 0x40f172
call fcn.0040dfa0
mov edi, eax
push edi
call fcn.0040e2e0
add esp, 4
test eax, eax
je 0x40f038
xor eax, eax
jmp 0x40f172
lea edx, [esp + 0x18]
push edx
push 0xf003f
push ebx
push str.SoftwareMozillaFirefoxExtensions
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f05e
xor eax, eax
jmp 0x40f172
cmp dword [esp + 0x11c], ebx
je 0x40f0a1
cmp ebp, ebx
je 0x40f0a1
xor esi, esi
push 0x6a2f5c
call fcn.00418560
add esp, 4
test eax, eax
jne 0x40f094
push 0x3e8
call fcn.00423810
add esp, 4
inc esi
cmp esi, 0x12c
jl 0x40f06d
push 0x2bf20
call fcn.00423810
add esp, 4
xor esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
cmp edi, 0x1a
mov dword [esp + 0x114], ebx
mov ecx, str.idmmzcc7
jg 0x40f0c6
mov ecx, str.idmmzcc5
mov eax, dword [0x6d1130]
cmp eax, ebx
jne 0x40f0d4
mov eax, 0x6d1134
push ecx
push eax
push 0x6a2074
lea ecx, [esp + 0x28]
call fcn.0040eb20
cmp edi, 0x1a
mov eax, 0x6a2d34
jg 0x40f0f3
mov eax, 0x6a2ce4
push eax
lea eax, [esp + 0x90]
push eax
call fcn.005c742a
lea ecx, [esp + 0x94]
push ecx
call fcn.0040ecb0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00402050
push eax
call fcn.005c7292
add esp, 4
lea edx, [eax + eax + 2]
lea ecx, [esp + 0x1c]
push edx
call fcn.00402050
mov ecx, dword [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x98]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f151
mov esi, 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x114], 0xffffffff
call fcn.00401070
mov eax, esi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret