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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6386d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x40c4c9
push 0xffffffffffffffff
push edi
call fcn.0040f010
push edi
push edi
mov edx, dword [esi + 0x14]
push edi
push edi
push edi
lea eax, [ebp - 0x34]
push edi
lea ecx, [ebp - 0x2c]
push eax
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40c290
mov dword [ebp - 0x2c], edi
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
jne 0x40c4da
push str.IEXPLORE
lea ecx, [ebp - 0x18]
call fcn.00622f13
push str.Internet_Explorer
lea ecx, [ebp - 0x1c]
call fcn.00622f13
mov edi, dword [esi + 8]
mov ebx, 1
push 0xffffffffffffffff
mov ecx, esi
lea eax, [edi + 1]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0040f010
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.00622ec3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.00622ec3
mov edx, dword [ebp - 0x14]
mov dword [edi + 8], edx
mov eax, dword [0x6fcad8]
test eax, eax
je 0x40c35e
push str.MicrosoftEdgeCP
lea ecx, [ebp - 0x18]
call fcn.00622f13
push str.Microsoft_Edge
lea ecx, [ebp - 0x1c]
call fcn.00622f13
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040f010
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.00622ec3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.00622ec3
mov edx, dword [ebp - 0x14]
mov dword [edi + 8], edx
push str.Firefox
lea ecx, [ebp - 0x18]
call fcn.00622f13
push str.Mozilla_Firefox
lea ecx, [ebp - 0x1c]
call fcn.00622f13
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040f010
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.00622ec3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.00622ec3
mov edx, dword [ebp - 0x14]
push str.chrome
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.00622f13
push str.Google_Chrome
lea ecx, [ebp - 0x1c]
call fcn.00622f13
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040f010
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.00622ec3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.00622ec3
mov edx, dword [ebp - 0x14]
push str.OPERA
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.00622f13
push str.Opera
lea ecx, [ebp - 0x1c]
call fcn.00622f13
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040f010
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.00622ec3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.00622ec3
mov edx, dword [ebp - 0x14]
push str.Safari
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.00622f13
push str.Apple_Safari
lea ecx, [ebp - 0x1c]
call fcn.00622f13
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040f010
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.00622ec3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.00622ec3
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov dword [edi + 8], edx
call fcn.0040bfa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00622d8a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
xor ebx, ebx
cmp ebx, edi
jne 0x40c602
mov ecx, dword [ebp - 0x28]
mov edx, dword [esi + 0x14]
lea eax, [ebp - 0x13c]
push 0x104
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
cmp ebx, edi
jne 0x40c5f4
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x14]
push ecx
push edi
push 0xf003f
push edi
push 0x6fc418
lea edx, [ebp - 0x13c]
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c5f4
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00622f13
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
push edi
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x6c98a0
push eax
call edi
test eax, eax
jne 0x40c5f4
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00623157
lea edx, [ebp - 0x24]
push edx
push eax
mov eax, dword [ebp - 0x20]
push 0
push 0
push 0x6c98a0
push eax
call edi
test eax, eax
jne 0x40c5f4
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x30]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x20]
push 0x6c989c
push eax
mov dword [ebp - 0x24], 4
call edi
test eax, eax
jne 0x40c5b7
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
jmp 0x40c5be
mov dword [ebp - 0x14], 1
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
lea edx, [edi + 1]
push edx
call fcn.0040f010
mov ecx, dword [esi + 4]
lea eax, [edi + edi*2]
lea edx, [ebp - 0x1c]
lea edi, [ecx + eax*4]
push edx
mov ecx, edi
call fcn.00622ec3
lea eax, [ebp - 0x18]
lea ecx, [edi + 4]
push eax
call fcn.00622ec3
mov ecx, dword [ebp - 0x14]
mov dword [edi + 8], ecx
mov eax, dword [ebp - 0x28]
inc eax
xor edi, edi
mov dword [ebp - 0x28], eax
jmp 0x40c4e2
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x40c610
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Internet_Explorer
push str.IEXPLORE
mov ecx, esi
call fcn.0040c0d0
cmp dword [0x6fcad8], edi
je 0x40c63a
push str.Microsoft_Edge
push str.MicrosoftEdgeCP
mov ecx, esi
call fcn.0040c0d0
push str.Mozilla_Firefox
push str.Firefox
mov ecx, esi
call fcn.0040c0d0
push str.Opera
push str.OPERA
mov ecx, esi
call fcn.0040c0d0
push str.Google_Chrome
push str.chrome
mov ecx, esi
call fcn.0040c0d0
push str.Apple_Safari
push str.Safari
mov ecx, esi
call fcn.0040c0d0
mov byte [ebp - 4], 3
jmp 0x40c4b5