joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x330
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x401185
lea eax, [esp + 4]
push eax
push edi
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40118f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x330
ret
push esi
mov esi, dword [esp + 0x33c]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011a0
push 0x104
sub eax, edx
lea ecx, [esp + 0x134]
push ecx
inc eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011d0
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
push esi
call fcn.0040d15e
add esp, 0xc
test eax, eax
je 0x40120d
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4011c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x330
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
add esp, 0x330
ret

Function at 0x401230
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push edi
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 6
sbb eax, eax
inc eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402260
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41e560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], 2
xor ebp, ebp
mov edi, edi
add ebp, 0x800
test esi, esi
je 0x4022a3
push esi
call fcn.00418537
add esp, 4
push ebp
call fcn.00418532
mov esi, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x1c]
mov eax, 0x10
add esp, 4
cmp ecx, eax
jb 0x4022d3
mov edx, dword [ebx + 8]
jmp 0x4022d6
lea edx, [ebx + 8]
cmp dword [esp + 0x94], eax
mov edi, dword [esp + 0x80]
jae 0x4022ed
lea edi, [esp + 0x80]
cmp dword [esp + 0x78], eax
mov ecx, dword [esp + 0x64]
jae 0x4022fb
lea ecx, [esp + 0x64]
cmp dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
jae 0x402309
lea eax, [esp + 0x48]
push edx
push ebp
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 2]
cmp eax, ecx
je 0x402290
xor ebx, ebx
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402338
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401d30
push esi
mov byte [esp + 0x3c], 3
call fcn.00418537
mov esi, dword [esp + 0x44]
add esp, 4
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00401580
mov eax, dword [esp + 0x2c]
mov ebp, 0x10
cmp eax, ebp
jb 0x402391
mov eax, dword [esp + 0x18]
push eax
call fcn.00418537
add esp, 4
cmp dword [esp + 0x5c], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
jb 0x4023b1
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x78], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
jb 0x4023d1
mov edx, dword [esp + 0x64]
push edx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x94], ebp
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], 0
jb 0x4023f7
mov eax, dword [esp + 0x80]
push eax
call fcn.00418537
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x58
Function at 0x402b10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e5f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
je 0x402b5b
mov edx, dword [esp + 0x60]
mov ecx, dword [esi + 8]
push edx
push esi
push ecx
push eax
call fcn.004020c0
mov eax, dword [esi + 4]
push eax
call fcn.00418537
add esp, 0x14
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
xor esi, esi
xor eax, eax
jmp 0x402b74
mov eax, dword [esp + 0x10]
add esi, 0x800
cmp eax, ebx
je 0x402b87
push eax
call fcn.00418537
add esp, 4
push esi
call fcn.00418532
mov ecx, dword [edi + 0x1c]
mov edx, 0x10
add esp, 4
cmp ecx, edx
mov dword [esp + 0x10], eax
jb 0x402ba5
mov ecx, dword [edi + 8]
jmp 0x402ba8
lea ecx, [edi + 8]
cmp dword [esp + 0x5c], edx
mov edx, dword [esp + 0x48]
jae 0x402bb6
lea edx, [esp + 0x48]
push ecx
push esi
push eax
push ebx
push ebx
push edx
call ebp
lea ecx, [esi - 2]
cmp eax, ecx
je 0x402b70
push 0x104
call fcn.00418532
mov ebp, dword [esp + 0x14]
add esp, 4
cmp ebp, ebx
mov edi, eax
je 0x402c76
push ebx
push ebp
call fcn.0040db40
mov esi, eax
add esp, 8
sub esi, ebp
mov dword [esp + 0x14], eax
je 0x402c72
push esi
push ebp
push edi
call fcn.0040da00
mov byte [edi + esi], bl
mov esi, 0xf
mov eax, edi
add esp, 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402c18
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401d30
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x40], 1
call fcn.00402a80
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x3c], bl
jb 0x402c57
mov eax, dword [esp + 0x1c]
push eax
call fcn.00418537
add esp, 4
mov eax, dword [esp + 0x14]
lea ebp, [eax + 1]
cmp ebp, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jne 0x402be0
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00418537
push edi
call fcn.00418537
mov eax, dword [esp + 0x64]
add esp, 8
cmp eax, 0x10
pop edi
pop esi
pop ebp
pop ebx
jb 0x402c9f
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00418537
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0x20
Function at 0x402cb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41e608
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, ecx
je 0x402cf7
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 8]
push edx
push esi
push ecx
push eax
call fcn.004020c0
mov eax, dword [esi + 4]
push eax
call fcn.00418537
add esp, 0x14
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
xor esi, esi
xor eax, eax
jmp 0x402d10
mov eax, dword [esp + 0x10]
add esi, 0x800
cmp eax, ebx
je 0x402d23
push eax
call fcn.00418537
add esp, 4
push esi
call fcn.00418532
mov ecx, dword [edi + 0x1c]
add esp, 4
cmp ecx, 0x10
mov dword [esp + 0x10], eax
jb 0x402d3d
mov ecx, dword [edi + 8]
jmp 0x402d40
lea ecx, [edi + 8]
push ecx
push esi
push eax
call ebp
lea ecx, [esi - 2]
cmp eax, ecx
je 0x402d0c
push 0x104
call fcn.00418532
mov edi, dword [esp + 0x14]
add esp, 4
cmp edi, ebx
mov ebp, eax
je 0x402e04
push ebx
push edi
call fcn.0040db40
mov esi, eax
add esp, 8
sub esi, edi
mov dword [esp + 0x14], eax
je 0x402e00
push esi
push edi
push ebp
call fcn.0040da00
mov byte [esi + ebp], bl
mov esi, 0xf
mov eax, ebp
add esp, 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402da3
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00401d30
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x40], ebx
call fcn.00402a80
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x3c], 0xffffffff
jb 0x402de5
mov eax, dword [esp + 0x1c]
push eax
call fcn.00418537
add esp, 4
mov eax, dword [esp + 0x14]
lea edi, [eax + 1]
cmp edi, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jne 0x402d67
mov edi, dword [esp + 0x10]
push edi
call fcn.00418537
push ebp
call fcn.00418537
mov ecx, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4

Function at 0x402ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ee9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402efd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402f1e
cmp esi, eax
jae 0x402ef7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402f10
cmp esi, eax
jae 0x402ef7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403600
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e656
push eax
mov dword fs:[0], esp
sub esp, 0x210
call fcn.004031b0
test eax, eax
jne 0x40365e
mov eax, dword [esp + 0x220]
test eax, eax
jne 0x403647
push 0x40
push 0x41f6e4
push 0x41f6d0
call fcn.004010e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
add esp, 0x21c
ret
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403550
push 0x2d
push str.360seextensionsExtDownloadExtDownload.ini
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0
call fcn.004033d0
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edx
push str.ThunderAgent.Agent
push str.DownProgID
push str.Download
call esi
mov eax, dword [esp + 0xc]
or edi, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x220], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.00403550
push 0x10
push str.360se360SE.ini
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 1
call fcn.004033d0
mov ecx, dword [esp + 8]
push ecx
push 0x41f65c
push str.889D2FEB_5411_4565_8998_1DD2C5261283
push str.IEBhoState
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x220], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x403740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x104
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.....Profilesexplorer.ini
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x114]
push edx
push 0x41f65c
push 0x41f608
push str.Explorer
call esi
mov eax, dword [esp + 0x228]
test eax, eax
pop edi
pop esi
jne 0x4037a6
push 0x40
push 0x41f6e4
push 0x41f5e4
call fcn.004010e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x210]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x4037c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e656
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
push 0x104
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.....Profilesexplorer.ini
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0xc]
push edx
push 0x41f6ec
push 0x41f608
push str.Explorer
call esi
call fcn.004031b0
test eax, eax
jne 0x403853
push 0x40
push 0x41f6e4
push 0x41f6d0
call fcn.004010e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
add esp, 0x21c
ret
push edi
lea eax, [esp + 0x114]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403550
push 0x2d
push str.360seextensionsExtDownloadExtDownload.ini
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0
call fcn.004033d0
mov edx, dword [esp + 0xc]
push edx
push 0
push str.DownProgID
push str.Download
call esi
mov eax, dword [esp + 0xc]
or edi, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x220], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0xc]
call fcn.00403550
push 0x10
push str.360se360SE.ini
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 1
call fcn.004033d0
mov ecx, dword [esp + 8]
push ecx
push 0x41f6ec
push str.889D2FEB_5411_4565_8998_1DD2C5261283
push str.IEBhoState
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x220], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
pop edi
jg 0x403935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x214]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x403c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x403cd4
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x403ccf
cmp ecx, 2
jbe 0x403cc5
cmp ecx, 7
jne 0x403ccf
mov ecx, dword [edi]
cmp ecx, 2
jb 0x403ccf
mov dl, byte [ecx + esi - 1]
test dl, dl
jne 0x403ccf
mov dl, byte [ecx + esi - 2]
jmp 0x403ccb
mov ecx, dword [edi]
mov dl, byte [ecx + esi - 1]
test dl, dl
je 0x403cd4
mov eax, 0xd
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x404000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push SysReAllocString
mov dword [esp + 0x140], ebx
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
je 0x40415c
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallChromium
push SysReAllocString
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
je 0x40415c
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x20]
call fcn.00402f90
test eax, eax
je 0x40411e
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallChromium
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x20]
call fcn.00402f90
test eax, eax
je 0x40411e
lea edx, [esp + 0x18]
push edx
push 1
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.GoogleChromeApplicationchrome.exe
lea eax, [esp + 0x1c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.004034d0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x404109
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push str.InstallLocation
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x400
call fcn.00403c70
test eax, eax
jne 0x4040fa
push str.chrome.exe
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [esp + 0x18]
push ecx
jmp 0x4040f2
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push str.InstallLocation
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x400
call fcn.00403c70
test eax, eax
jne 0x4041b9
push str.chrome.exe
lea ecx, [esp + 0x1c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4041a2
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403330
cmp esi, ebx
je 0x404109
push esi
jmp 0x404103
Function at 0x4041d0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e6b6
push eax
mov dword fs:[0], esp
sub esp, 0x10c
call fcn.00403ce0
test eax, eax
jne 0x40422e
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x404217
push 0x40
push 0x41f6e4
push 0x41f870
call fcn.004010e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
push esi
call fcn.00403da0
mov esi, eax
cmp esi, 4
jge 0x40427a
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x404402
push 0x30
push 0x41f6e4
push 0x41f820
call fcn.004010e0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
push 0x104
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 5
jle 0x40429d
push str...xl_plugin_chrome.crx
lea ecx, [esp + 0x10]
push ecx
jmp 0x4042a7
push str...xl_plugin_chrome_5.crx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x41f7e4
lea ecx, [esp + 8]
call fcn.00403550
lea eax, [esp + 0xc]
mov dword [esp + 0x118], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042d0
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.004033d0
push 1
push 0x41f7e4
lea ecx, [esp + 0xc]
call fcn.004033d0
push 0x41f4a6
lea ecx, [esp + 0xc]
call fcn.00403550
lea ecx, [esp + 8]
push ecx
mov byte [esp + 0x11c], 1
call fcn.00404000
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4043b3
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 1
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x118], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40436f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x118], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404398
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x118], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x118], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404402
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x110]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x404570
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41e6d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0040bb3d
mov edi, dword [esp + 0x358]
push edi
lea eax, [esp + 0x1bc]
push str._s.
push eax
mov dword [esp + 0x35c], 0
call fcn.0040e136
add esp, 0xc
push 0
lea ecx, [esp + 0x1bc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bbd0
test eax, eax
je 0x4046da
push esi
lea esp, [esp]
lea ecx, [esp + 0x14]
call fcn.0040b91e
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.0040bb04
test eax, eax
jne 0x4046cd
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.0040bdf8
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0xc8
or eax, ecx
mov byte [esp + 0x354], 1
jge 0x40463d
push 0xc8
mov ecx, esi
call fcn.00403160
mov ecx, dword [esi]
lea edx, [esp + 0x2c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x404643
mov byte [esp + 0x354], al
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [eax + 0x38]
test eax, eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push str._s_s
je 0x4046af
lea edx, [esp + 0x100]
push edx
call fcn.0040e136
add esp, 0x10
lea eax, [esp + 0xf4]
push eax
mov ecx, ebp
call fcn.00404570
jmp 0x4046cd
lea edx, [esp + 0x290]
push edx
call fcn.0040e136
add esp, 0x10
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4045e0
pop esi
lea ecx, [esp + 0x10]
call fcn.0040b84e
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop edi
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x348], 0xffffffff
jne 0x40471d
call fcn.0040bb61
xor al, al
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
add esp, 0x34c
ret 4
call fcn.0040bb61
mov ecx, dword [esp + 0x340]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x34c
ret 4
Function at 0x404fc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov esi, ecx
call fcn.004049f0
push 1
push 0x41f7e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00401d30
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0
call fcn.00404740
push 0xd
push str._thunder.xpi_
lea ecx, [esp + 0x10]
call fcn.00404830
push str._firefox.exe
add esi, 4
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00404940
mov ecx, dword [esi + 0x18]
mov edi, 0x10
add esp, 0xc
cmp ecx, edi
jb 0x405056
mov esi, dword [esi + 4]
jmp 0x405059
add esi, 4
cmp dword [esp + 0x20], edi
mov ecx, dword [esp + 0xc]
jae 0x405067
lea ecx, [esp + 0xc]
cmp dword [eax + 0x18], edi
jb 0x405071
mov eax, dword [eax + 4]
jmp 0x405074
add eax, 4
push 1
push esi
push ecx
push eax
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [esp + 0x3c], edi
jb 0x405099
mov edx, dword [esp + 0x28]
push edx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x20], edi
pop edi
pop esi
jb 0x4050ae
mov eax, dword [esp + 4]
push eax
call fcn.00418537
add esp, 4
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x44
ret