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

Disassembly:
push ebp
lea ebp, [esp - 0x318]
sub esp, 0x318
push 0xffffffffffffffff
push 0x63ad00
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x314], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], ebx
je 0x40f8b3
push 0xffffffffffffffff
push ebx
call fcn.0040e080
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
push ebx
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40f766
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x1c]
call fcn.004bc0b0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x28], ebx
jne 0x40f8d8
push str.IEXPLORE
lea ecx, [ebp - 0x18]
call fcn.005494d0
push str.Internet_Explorer
lea ecx, [ebp - 0x1c]
call fcn.005494d0
mov edi, 1
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040f550
cmp dword [0x754bc8], ebx
je 0x40f7d8
push str.MicrosoftEdgeCP
lea ecx, [ebp - 0x18]
call fcn.005494d0
push str.Microsoft_Edge_Legacy
lea ecx, [ebp - 0x1c]
call fcn.005494d0
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.0040f550
push str.msedge
lea ecx, [ebp - 0x18]
call fcn.005494d0
push str.Microsoft_Edge
lea ecx, [ebp - 0x1c]
call fcn.005494d0
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.0040f550
push str.Firefox
lea ecx, [ebp - 0x18]
call fcn.005494d0
push str.Mozilla_Firefox
lea ecx, [ebp - 0x1c]
call fcn.005494d0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040f550
push str.chrome
lea ecx, [ebp - 0x18]
call fcn.005494d0
push str.Google_Chrome
lea ecx, [ebp - 0x1c]
call fcn.005494d0
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.0040f550
push str.OPERA
lea ecx, [ebp - 0x18]
call fcn.005494d0
push 0x6722e0
lea ecx, [ebp - 0x1c]
call fcn.005494d0
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.0040f550
push str.Safari
lea ecx, [ebp - 0x18]
call fcn.005494d0
push str.Apple_Safari
lea ecx, [ebp - 0x1c]
call fcn.005494d0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040f550
mov ecx, esi
call fcn.0040dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00421470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x318
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x2c], ebx
test edi, edi
jne 0x40fa05
push 0x104
lea ecx, [ebp + 0x210]
push ecx
push ebx
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x40f9ff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0xf003f
push edi
push 0x670984
push edi
lea edx, [ebp + 0x210]
push edx
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40f9ff
lea ecx, [ebp + 0x210]
push ecx
lea ecx, [ebp - 0x18]
call fcn.005494d0
lea edx, [ebp - 0x24]
push edx
push edi
push edi
push edi
push 0x672080
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f9ff
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402850
lea edx, [ebp - 0x24]
push edx
push eax
push edi
push edi
push 0x672080
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f9ff
mov dword [ebp - 0x24], 4
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x30]
push edx
push eax
push eax
push 0x67207c
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f9b6
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
jmp 0x40f9bd
mov dword [ebp - 0x14], 1
push str.MicrosoftEdgeCP
mov edx, dword [ebp - 0x18]
push edx
call fcn.00619b9e
add esp, 8
test eax, eax
jne 0x40f9f4
push str.Microsoft_Edge
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00619b9e
add esp, 8
test eax, eax
jne 0x40f9f4
push str.Microsoft_Edge_Legacy
lea ecx, [ebp - 0x1c]
call fcn.005494d0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.0040f550
inc ebx
jmp 0x40f8dd
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40fa13
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Internet_Explorer
push str.IEXPLORE
mov ecx, esi
call fcn.0040f570
cmp dword [0x754bc8], 0
je 0x40fa3e
push str.Microsoft_Edge_Legacy
push str.MicrosoftEdgeCP
mov ecx, esi
call fcn.0040f570
push str.Microsoft_Edge
push str.msedge
mov ecx, esi
call fcn.0040f570
push str.Mozilla_Firefox
push str.Firefox
mov ecx, esi
call fcn.0040f570
push 0x6722e0
push str.OPERA
mov ecx, esi
call fcn.0040f570
push str.Google_Chrome
push str.chrome
mov ecx, esi
call fcn.0040f570
push str.Apple_Safari
push str.Safari
mov ecx, esi
call fcn.0040f570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00421470
mov dword [ebp - 4], 0xffffffff
jmp 0x40f8b3