Function at 0x406140
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413246
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x41b044]
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
call fcn.00405f10
test eax, eax
jne 0x4065b0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x41b514]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x41b4a4]
cmp eax, dword [ecx + 4]
jg 0x4065d5
cmp dword [0x41b038], 0
jne 0x4063e6
push 0x32
xor eax, eax
mov dword [ebp - 0x238], 0
push str.BrowserWCFirefoxExtncomponentsWCFirefoxExtn.dll
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.004073f0
push 0x1d
xor eax, eax
mov dword [ebp - 4], 0
push str.SOFTWAREAdobeAdobe_Acrobat_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004073f0
push 2
push 0x415dd8
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00407350
push 0xc
push str.InstallPath
lea ecx, [ebp - 0x230]
call fcn.00407350
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x478]
push ecx
push 1
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406333
lea eax, [ebp - 0x47c]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406327
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x406327
inc eax
push 0x41b4b9
push eax
call fcn.0041144b
mov esi, eax
add esp, 8
test esi, esi
je 0x406327
mov ecx, dword [ebp - 0x47c]
inc ecx
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x47c]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40631e
push esi
mov ecx, 0x41b028
call fcn.004073c0
push 0x416110
mov ecx, 0x41b028
call fcn.00407320
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
mov ecx, 0x41b028
push eax
call fcn.00407350
push esi
call fcn.00411446
add esp, 4
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x406379
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40636f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40636f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov edx, dword [ebp - 0x234]
mov dword [ebp - 4], 3
cmp edx, 8
jb 0x4063df
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4063d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [0x41b478], 0
jne 0x4065b0
push 1
call fcn.00401230
add esp, 4
test eax, eax
jne 0x406429
cmp dword [0x41b038], eax
je 0x406429
cmp dword [0x41b03c], 8
mov eax, 0x41b028
cmovae eax, dword [0x41b028]
push eax
call fcn.00408480
mov dword [0x41b478], eax
jmp 0x40642e
mov eax, dword [0x41b478]
test eax, eax
je 0x4065d1
push str._CPP_SetParentWindowClass
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [ebp - 0x478], ebx
test ebx, ebx
je 0x406591
push 0
push 2
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x406534
push 0x22c
lea eax, [ebp - 0x474]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x474], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea eax, [ebp - 0x474]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4064d8
cmp dword [ebp - 0x46c], ebx
je 0x4064d2
lea eax, [ebp - 0x474]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4064b7
jmp 0x4064d8
mov edi, dword [ebp - 0x45c]
lea eax, [ebp - 0x474]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406527
nop dword [eax]
cmp dword [ebp - 0x46c], edi
je 0x40650b
lea eax, [ebp - 0x474]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4064f0
jmp 0x406527
push 0x104
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x478]
lea eax, [ebp - 0x218]
mov esi, str.firefox.exe
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
add esp, 4
nop dword [eax]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x406576
test cx, cx
je 0x406572
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x406576
add eax, 4
add esi, 4
test cx, cx
jne 0x406550
xor eax, eax
jmp 0x40657b
sbb eax, eax
or eax, 1
mov ecx, ebx
test eax, eax
jne 0x406584
push eax
jmp 0x406586
push 1
call dword [0x4153b8]
call ebx
add esp, 4
push 2
push 0
push 0x407010
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00402280
add esp, 0x10
mov dword [0x41b480], eax
mov eax, 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.00411460
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4065b5
push 0x41b4a4
call fcn.004118fa
add esp, 4
cmp dword [0x41b4a4], 0xffffffff
jne 0x40619b
push 0x4141b0
call fcn.00411717
push 0x41b4a4
call fcn.004118b0
add esp, 8
jmp 0x40619b