joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411489
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x5c
mov eax, 0x4c394f
call fcn.0049f5ab
mov esi, ecx
lea eax, [esi + 4]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x49], bl
call fcn.00404bf2
push 0xffffffffffffffff
push ebx
add esi, 0x20
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00405c92
push str.CFirefoxBrowser::CopyXmlToProgramFiles___Copy_from
lea ecx, [ebp - 0x68]
call fcn.00404bd0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call fcn.00401985
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.004058b3
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00405ece
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.00411403
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x41150f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41154e
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405c92
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x411533
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x41153f
lea eax, [ebp - 0x44]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne byte [ebp - 0x49]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004058b3
mov al, byte [ebp - 0x49]
call fcn.0049f62e
ret
Function at 0x411643
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2804]
mov eax, 0x2804
call fcn.0049fdd0
push 0xffffffffffffffff
push 0x4bfb3e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50e7dc]
xor eax, ebp
mov dword [ebp + 0x2800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x280c]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
mov esi, ecx
mov dword [ebp - 0x14], eax
call edi
cmp dword [esi + 0x18], 8
jb 0x4116a1
mov eax, dword [esi + 4]
jmp 0x4116a4
lea eax, [esi + 4]
push ebx
push 0x80
push 4
push ebx
xor esi, esi
inc esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4116fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::ReadTempXML_____CreateFile_failed._GetLastError
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.00404bd0
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 4], ebx
call fcn.004018c5
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.004058b3
xor al, al
jmp 0x41179a
push ebx
mov byte [ebp], bl
call edi
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x2800
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411754
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::ReadTempXML_____ReadFile_failed._GetLastError
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00404bd0
lea eax, [ebp - 0x34]
push edi
push eax
mov dword [ebp - 4], esi
call fcn.004018c5
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.004058b3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4116f3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x411776
xor eax, eax
jmp 0x41178c
lea eax, [edi + edi]
call fcn.004a0cd0
mov esi, esp
push 3
push edi
lea eax, [ebp]
push eax
call fcn.0040123d
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00405dda
mov al, 1
lea esp, [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2800]
xor ecx, ebp
call fcn.0049f533
add ebp, 0x2804
leave
ret 4
Function at 0x41199a
Capabilities:
Write file on windows

Disassembly:
push 0x40
mov eax, 0x4bf39e
call fcn.0049f542
mov edi, ecx
mov esi, edx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x18], 8
jb 0x4119be
mov eax, dword [edi + 4]
jmp 0x4119c1
lea eax, [edi + 4]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x411a14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::WriteFile___CreateFile_failed._GetLastError
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00404bd0
lea eax, [ebp - 0x30]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.004018c5
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004058b3
xor al, al
call fcn.0049f61a
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x10], ebx
jb 0x411a2c
mov eax, dword [esi + 4]
jmp 0x411a2f
lea eax, [esi + 4]
push ebx
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::WriteFile___WriteFile_failed._GetLastError
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.00404bd0
xor esi, esi
lea eax, [ebp - 0x30]
push edi
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.004018c5
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.004058b3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411a0c
mov esi, dword [esi + 0x14]
cmp dword [ebp - 0x10], esi
jae 0x411ac0
push str.CFirefoxBrowser::WriteFile_____WriteFile_failed._size_written_too_small
lea ecx, [ebp - 0x4c]
call fcn.00404bd0
mov dword [ebp - 4], 2
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
call fcn.004018c5
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004058b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x411a0e
mov bl, 1
jmp 0x411ab2
Function at 0x4120af
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5e53
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x50e7dc]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x50e7dc]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
push str.CFirefoxBrowser::SetHomepage__homepage
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x18]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x118], ebx
call fcn.00401985
or dword [esp + 0x118], 0xffffffff
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x20]
call fcn.004058b3
cmp byte [ebp + 0xc], bl
je 0x412178
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x84]
test eax, eax
jne 0x412178
push str.CFirefoxBrowser::SetHomepage___NOT_host_Browser___Exit
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x114], esi
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.004058b3
push 5
pop eax
jmp 0x4122e1
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x90], bl
je 0x4121b7
push str.CFirefoxBrowser::SetHomepage___Firefox_is_running.
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x114], 2
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.004058b3
push 0x15
jmp 0x412172
push ebx
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x6c], 7
call fcn.00405ece
mov dword [esp + 0x110], 3
mov byte [esp + 0x10], bl
jmp 0x4122b0
push str.CFirefoxBrowser::SetHomepage__next_profile
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x118], 4
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x118], 3
call fcn.004058b3
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x70]
call fcn.0042b45c
push str.browser.startup.homepage
lea ecx, [esp + 0x1c]
mov byte [esp + 0x114], 5
call fcn.00404bd0
push esi
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x11c], 6
call fcn.0042bbb6
push ebx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], al
mov byte [esp + 0x118], 5
call fcn.004058b3
push str.CFirefoxBrowser::SetHomepage__success
lea ecx, [esp + 0x38]
call fcn.00404bd0
push dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x118], 7
call fcn.00401927
pop ecx
pop ecx
push ebx
push esi
lea ecx, [esp + 0x3c]
call fcn.004058b3
lea ecx, [esp + 0x6c]
mov byte [esp + 0x110], 3
call fcn.0042b4e1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0042b7fb
pop ecx
pop ecx
test al, al
jne 0x4121e1
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.004058b3
xor eax, eax
cmp byte [esp + 0x10], bl
setne al
dec eax
and eax, 0x17
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0049f533
mov esp, ebp
pop ebp
ret 8
Function at 0x412d2d
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c1cf5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x50e7dc]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x50e7dc]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push eax
call fcn.00407b93
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
mov dword [esp + 0x94], ebx
call fcn.00412f0c
mov esi, dword [esp + 0x34]
cmp esi, dword [esp + 0x38]
jbe 0x412daf
call fcn.004a0556
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x34], esi
jbe 0x412dca
call fcn.004a0556
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], esi
lea edi, [esp + 0x40]
lea esi, [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.00407ce0
test al, al
je 0x412ed6
call fcn.00476440
push eax
lea ecx, [esp + 0x4c]
call fcn.00404bf2
push str._searchplugins_
lea ecx, [esp + 0x4c]
mov byte [esp + 0x94], 1
call fcn.004052dd
push 0xffffffffffffffff
push ebx
push dword [esp + 0x20]
lea ecx, [esp + 0x54]
call fcn.00405c92
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x412e2f
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x412eb5
cmp byte [ebp + 0x18], bl
je 0x412e58
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x412e4f
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x412eb5
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov byte [eax], 1
cmp dword [esi + 0x14], ebx
je 0x412eb5
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x412e77
lea eax, [esp + 0x4c]
push str.SearchPlugin_ShortName
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004029f8
add esp, 0xc
lea eax, [esp + 0x64]
push eax
mov ecx, esi
mov byte [esp + 0x94], 2
call fcn.00404cf8
test eax, eax
jne 0x412ea9
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
push ebx
push 1
lea ecx, [esp + 0x6c]
call fcn.004058b3
push ebx
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], bl
call fcn.004058b3
lea esi, [esp + 0x10]
call fcn.00407cb5
jmp 0x412dbb
lea esi, [esp + 0x28]
call fcn.00407df2
push dword [esp + 0x28]
call fcn.0049ecd9
pop ecx
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0049f533
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4133b2
Capabilities:
Check if file exists
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c366d
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x50e7dc]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push edi
mov eax, dword [0x50e7dc]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
push eax
call fcn.0042b708
pop ecx
xor ebx, ebx
mov dword [esp + 0xb8], ebx
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x54], 7
call fcn.00405ece
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0xc0], 1
call fcn.0042b7fb
pop ecx
pop ecx
test al, al
je 0x4135a2
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x20]
call fcn.00404bf2
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 2
call fcn.00405c92
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
call fcn.00404bf2
push str._search.json
lea ecx, [esp + 0x58]
mov byte [esp + 0xbc], 3
call fcn.004052dd
push str._searchplugins_
lea ecx, [esp + 0x20]
call fcn.004052dd
push 0xffffffffffffffff
push ebx
push dword [esp + 0x18]
lea ecx, [esp + 0x28]
call fcn.00405c92
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4134d5
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x413569
cmp byte [ebp + 0x14], bl
je 0x413510
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4134f9
lea eax, [esp + 0x20]
push eax
call edi
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x41350b
lea eax, [esp + 0x58]
push eax
call edi
jmp 0x413569
mov eax, dword [esp + 0x14]
mov byte [eax], 1
cmp dword [esi + 0x14], ebx
je 0x413569
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x41352b
lea eax, [esp + 0x20]
push str.SearchPlugin_ShortName
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004029f8
add esp, 0xc
lea eax, [esp + 0x70]
push eax
mov ecx, esi
mov byte [esp + 0xbc], 4
call fcn.00404cf8
test eax, eax
jne 0x41355d
mov eax, dword [esp + 0x18]
mov byte [eax], 1
push ebx
push 1
lea ecx, [esp + 0x78]
call fcn.004058b3
push ebx
push 1
lea ecx, [esp + 0x5c]
call fcn.004058b3
push ebx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 1
call fcn.004058b3
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0042b7fb
pop ecx
pop ecx
test al, al
jne 0x41345a
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.004058b3
push ebx
push 1
lea ecx, [esp + 0x94]
call fcn.004058b3
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0049f533
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4135e2
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c3611
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x50e7dc]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
mov eax, dword [0x50e7dc]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
lea eax, [esp + 0x64]
push eax
call fcn.0042b708
pop ecx
xor esi, esi
mov dword [esp + 0x90], esi
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0x48], 7
call fcn.00405ece
mov byte [esp + 0x90], 1
jmp 0x4136f0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
call fcn.00404bf2
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 2
call fcn.00405c92
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.00404bf2
push str._search.json
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 3
call fcn.004052dd
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4136ae
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4136d0
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4136c9
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 1
lea ecx, [esp + 0x18]
call fcn.004058b3
push esi
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 1
call fcn.004058b3
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0042b7fb
pop ecx
pop ecx
test al, al
jne 0x413654
push esi
push 1
lea ecx, [esp + 0x34]
call fcn.004058b3
push esi
push 1
lea ecx, [esp + 0x6c]
call fcn.004058b3
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0049f533
mov esp, ebp
pop ebp
ret
Function at 0x41587e
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x50e7dc]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 8
mov eax, 0x4c35c6
call fcn.0049f542
mov eax, dword [ebp + 0x250]
xor ebx, ebx
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0xd], bl
jb 0x4158bb
mov ecx, dword [eax + 4]
jmp 0x4158be
lea ecx, [eax + 4]
lea edx, [ebp + 0x38]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, bx
jne 0x4158c1
lea edi, [ebp + 0x38]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x4158d5
push 6
pop ecx
mov esi, str.install.rdf
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x38]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415962
push str.RDF_Description_em:targetApplication_Description_em:maxVersion
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
push eax
call fcn.004029f8
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
je 0x415957
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.00405ece
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004108d7
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00415c1b
test eax, eax
jge 0x41594c
mov byte [ebp - 0xd], 1
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp]
call fcn.004058b3
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.0049f533
add ebp, 0x244
leave
ret 8
Function at 0x416932
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x4c218b
call fcn.0049f5ab
mov edi, dword [ebp + 8]
xor esi, esi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00405ece
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004130e5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x41696e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416994
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x416985
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 1
push esi
push edi
push eax
call fcn.004019da
add esp, 0x14
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004058b3
call fcn.0049f62e
ret 4
Function at 0x417acb
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x5c
mov eax, 0x4c351c
call fcn.0049f5ab
mov edi, ecx
push str.CFirefoxBrowser::DeleteXmlFromProgramFiles___start
lea ecx, [ebp - 0x4c]
call fcn.00404bd0
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004017f5
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x4c]
call fcn.004058b3
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x14], 7
call fcn.00405ece
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004130e5
pop ecx
pop ecx
test al, al
jne 0x417b63
push str.CFirefoxBrowser::DeleteXmlFromProgramFiles___GetCurrentFirefoxInstallationPath_failed
lea ecx, [ebp - 0x4c]
call fcn.00404bd0
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.004058b3
mov byte [ebp - 0x2d], bl
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004058b3
mov al, byte [ebp - 0x2d]
call fcn.0049f62e
ret
push str._searchplugins_
lea ecx, [ebp - 0x2c]
call fcn.004052dd
push 0xffffffffffffffff
push ebx
add edi, 0x20
push edi
lea ecx, [ebp - 0x2c]
call fcn.00405c92
push str.CFirefoxBrowser::DeleteXmlFromProgramFiles___Delete_file_from
lea ecx, [ebp - 0x68]
call fcn.00404bd0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 3
call fcn.00401985
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.004058b3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x417bb5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
jne 0x417bda
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x417bcc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x417bdd
mov al, byte [ebp - 0x2d]
mov byte [ebp - 0x2d], al
jmp 0x417b50
Function at 0x4180a5
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x4bfad8
call fcn.0049f5ab
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404bf2
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041bfc3
or esi, 0xffffffff
cmp eax, esi
je 0x4181c4
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404cd6
push esi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405301
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004058b3
lea eax, [ebp - 0x2c]
push eax
call fcn.0041bfc3
cmp eax, esi
je 0x4181c4
inc eax
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404cd6
push esi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00405301
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.004058b3
push str.ProgData
lea ecx, [ebp - 0x2c]
call fcn.004052dd
push 0x4d5480
lea ecx, [ebp - 0x2c]
call fcn.004052dd
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404bf2
push str.FireFoxSearchXml.tmp
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004052dd
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x418181
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4181b9
push esi
push ebx
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00405301
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x48]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004058b3
mov eax, esi
call fcn.0049f62e
ret
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004058b3
xor esi, esi
jmp 0x4181a6