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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413d36
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x41b048]
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.00406340
test eax, eax
jne 0x406ff0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x41b544]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x41b4b4]
cmp eax, dword [ecx + 4]
jg 0x407015
cmp dword [0x41b038], 0
jne 0x406e2d
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.00407fa0
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.00407fa0
push 2
push 0x415f84
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00407e20
push 0xc
push str.InstallPath
lea ecx, [ebp - 0x230]
call fcn.00407e20
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 0x406d73
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 0x406d67
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x406d67
inc eax
push 0x41b4ed
push eax
call fcn.00411ccb
mov esi, eax
add esp, 8
test esi, esi
je 0x406d67
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 0x406d5e
push esi
mov ecx, 0x41b028
call fcn.00407f70
push 0x416090
mov ecx, 0x41b028
call fcn.00407df0
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.00407e20
push esi
call fcn.00411cc6
add esp, 4
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x406db9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 2
cmp edx, 0x1000
jb 0x406daf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406daf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00411d21
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x406e2d
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 3
cmp edx, 0x1000
jb 0x406e1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406e1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00411d21
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [0x41b478], 0
jne 0x406ff0
push 1
call fcn.00401240
add esp, 4
test eax, eax
jne 0x406e70
cmp dword [0x41b038], eax
je 0x406e70
cmp dword [0x41b03c], 8
mov eax, 0x41b028
cmovae eax, dword [0x41b028]
push eax
call fcn.00409260
mov dword [0x41b478], eax
jmp 0x406e75
mov eax, dword [0x41b478]
test eax, eax
je 0x407011
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 0x406fd1
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 0x406f76
push 0x228
lea eax, [ebp - 0x470]
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 0x406f21
nop
cmp dword [ebp - 0x46c], ebx
je 0x406f1b
lea eax, [ebp - 0x474]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406f00
jmp 0x406f21
mov edi, dword [ebp - 0x45c]
lea eax, [ebp - 0x474]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406f69
cmp dword [ebp - 0x46c], edi
je 0x406f4d
lea eax, [ebp - 0x474]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406f32
jmp 0x406f69
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 + eax]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x406fb6
test cx, cx
je 0x406fb2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x406fb6
add eax, 4
add esi, 4
test cx, cx
jne 0x406f90
xor eax, eax
jmp 0x406fbb
sbb eax, eax
or eax, 1
mov ecx, ebx
test eax, eax
jne 0x406fc4
push eax
jmp 0x406fc6
push 1
call dword [0x4153c4]
call ebx
add esp, 4
push 2
push 0
push 0x407aa0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00402260
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.00411ce0
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x406ff5
push 0x41b4b4
call fcn.004120ba
add esp, 4
cmp dword [0x41b4b4], 0xffffffff
jne 0x406bdb
push 0x414b00
call fcn.00411f6b
push 0x41b4b4
call fcn.00412070
add esp, 8
jmp 0x406bdb