Function at 0x404220
Capabilities:
Check if file exists
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e866
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x378
push ebx
push esi
push edi
call fcn.00403d30
test eax, eax
jne 0x404287
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40459e
push 0x40
push 0x420704
push 0x420938
call fcn.004010e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403df0
mov esi, eax
cmp esi, 4
jge 0x4042cd
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40459e
push 0x30
push 0x420704
push 0x4208e8
call fcn.004010e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [esp + 0x74]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 5
jle 0x4042f1
push str...xl_plugin_chrome.crx
lea ecx, [esp + 0x74]
push ecx
jmp 0x4042fb
push str...xl_plugin_chrome_5.crx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [ebp + 0xc], ebx
je 0x404468
mov byte [esp + 0x178], bl
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x179]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401270
test eax, eax
je 0x404361
mov ecx, 0x13
mov esi, str.SOFTWAREWow6432NodeGoogleChromeExtensionshmbifdmobcbjlhplmlnbjbofnnoolink
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x20]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404347
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x180]
push ecx
jmp 0x404398
mov ecx, 0x10
mov esi, str.SOFTWAREGoogleChromeExtensionshmbifdmobcbjlhplmlnbjbofnnoolink
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x20]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
jmp 0x404380
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404380
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [esp + 0x194]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40444e
lea eax, [esp + 0x70]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4043d3
sub eax, edx
mov edx, eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x27c]
mov dword [esp + 0x278], 0x372e31
rep stosd dword es:[edi], eax
lea eax, [esp + 0x278]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404403
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, esi
inc edx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x74]
push ecx
push 1
push ebx
push str.Path
push edx
mov esi, eax
call edi
mov ecx, dword [esp + 0x18]
inc esi
push esi
lea eax, [esp + 0x27c]
push eax
push 1
push ebx
push str.Version
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x420804
lea ecx, [esp + 0x14]
call fcn.004035a0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x390], ebx
call fcn.00403560
push 0x420804
lea ecx, [esp + 0x14]
call fcn.00403560
push 0x4204ca
lea ecx, [esp + 0x18]
call fcn.004035a0
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x390], 1
call fcn.00404050
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404550
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 1
push ebx
push eax
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40450d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x38c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x38c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40459e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x384]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret