Function at 0x4017c0
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
sub esp, 0x874
lea eax, [esp + 0x568]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
jne 0x4017f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x874
ret
lea ecx, [esp + 0x26c]
push 0x104
lea edx, [esp + 0x57c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
jne 0x40181a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x874
ret
cmp byte [esp + esi + 0x26b], 0x5c
je 0x401855
mov edi, 0x4121f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x26c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x68]
push str._stemp_pack
push ecx
call esi
lea edx, [ebp + 0xc4]
push str.Program_thunder.xpi
push edx
lea eax, [esp + 0x488]
push 0x41208c
push eax
call esi
lea ecx, [esp + 0x288]
lea edx, [esp + 0x184]
push ecx
push str._sthunder.xpi
push edx
call esi
add esp, 0x28
lea eax, [esp + 0x64]
lea ecx, [esp + 0x474]
push eax
push ecx
mov ecx, ebp
call fcn.00401c20
test eax, eax
jne 0x4018c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x874
ret
lea edx, [esp + 0x64]
mov ecx, ebp
push edx
call fcn.00401cc0
test eax, eax
jne 0x4018e2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x874
ret
lea eax, [esp + 0x168]
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, ebp
call fcn.00401b30
test eax, eax
jne 0x401905
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x874
ret
lea edx, [esp + 0x370]
mov ecx, ebp
push edx
call fcn.00401a70
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4019a3
push 0
push str.MozillaUIWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4019a3
lea eax, [esp + 0x168]
lea ecx, [esp + 0x370]
push eax
push ecx
lea edx, [esp + 0x684]
push str.__s___install_global_extension___s_
push edx
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x30], 0x44
add esp, 0x10
lea edx, [esp + 0x67c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call ebx
test eax, eax
jne 0x401996
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x370]
push ecx
mov ecx, ebp
call fcn.00401ad0
test eax, eax
je 0x401a3b
push 0
push str.NS_AE_WindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x401a3b
lea edx, [esp + 0x168]
lea eax, [esp + 0x370]
push edx
push eax
lea ecx, [esp + 0x684]
push str.__s___install_global_extension___s_
push ecx
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x20], 0x44
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x698]
push 0
push ecx
push 0
call ebx
test eax, eax
jne 0x401a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebp
call fcn.00402030
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x874
ret