joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022b0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41e710
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 0x4022f3
push esi
call fcn.004186e7
add esp, 4
push ebp
call fcn.004186e2
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 0x402323
mov edx, dword [ebx + 8]
jmp 0x402326
lea edx, [ebx + 8]
cmp dword [esp + 0x94], eax
mov edi, dword [esp + 0x80]
jae 0x40233d
lea edi, [esp + 0x80]
cmp dword [esp + 0x78], eax
mov ecx, dword [esp + 0x64]
jae 0x40234b
lea ecx, [esp + 0x64]
cmp dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
jae 0x402359
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 0x4022e0
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 0x402388
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401d80
push esi
mov byte [esp + 0x3c], 3
call fcn.004186e7
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.004015d0
mov eax, dword [esp + 0x2c]
mov ebp, 0x10
cmp eax, ebp
jb 0x4023e1
mov eax, dword [esp + 0x18]
push eax
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x5c], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
jb 0x402401
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x78], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
jb 0x402421
mov edx, dword [esp + 0x64]
push edx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x94], ebp
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], 0
jb 0x402447
mov eax, dword [esp + 0x80]
push eax
call fcn.004186e7
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 0x402b60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e7a0
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 0x402bab
mov edx, dword [esp + 0x60]
mov ecx, dword [esi + 8]
push edx
push esi
push ecx
push eax
call fcn.00402110
mov eax, dword [esi + 4]
push eax
call fcn.004186e7
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 0x402bc4
mov eax, dword [esp + 0x10]
add esi, 0x800
cmp eax, ebx
je 0x402bd7
push eax
call fcn.004186e7
add esp, 4
push esi
call fcn.004186e2
mov ecx, dword [edi + 0x1c]
mov edx, 0x10
add esp, 4
cmp ecx, edx
mov dword [esp + 0x10], eax
jb 0x402bf5
mov ecx, dword [edi + 8]
jmp 0x402bf8
lea ecx, [edi + 8]
cmp dword [esp + 0x5c], edx
mov edx, dword [esp + 0x48]
jae 0x402c06
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 0x402bc0
push 0x104
call fcn.004186e2
mov ebp, dword [esp + 0x14]
add esp, 4
cmp ebp, ebx
mov edi, eax
je 0x402cc6
push ebx
push ebp
call fcn.0040dcf0
mov esi, eax
add esp, 8
sub esi, ebp
mov dword [esp + 0x14], eax
je 0x402cc2
push esi
push ebp
push edi
call fcn.0040dbb0
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 0x402c68
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401d80
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x40], 1
call fcn.00402ad0
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x3c], bl
jb 0x402ca7
mov eax, dword [esp + 0x1c]
push eax
call fcn.004186e7
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 0x402c30
mov ebp, dword [esp + 0x10]
push ebp
call fcn.004186e7
push edi
call fcn.004186e7
mov eax, dword [esp + 0x64]
add esp, 8
cmp eax, 0x10
pop edi
pop esi
pop ebp
pop ebx
jb 0x402cef
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004186e7
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0x20
Function at 0x402d00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41e7b8
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 0x402d47
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 8]
push edx
push esi
push ecx
push eax
call fcn.00402110
mov eax, dword [esi + 4]
push eax
call fcn.004186e7
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 0x402d60
mov eax, dword [esp + 0x10]
add esi, 0x800
cmp eax, ebx
je 0x402d73
push eax
call fcn.004186e7
add esp, 4
push esi
call fcn.004186e2
mov ecx, dword [edi + 0x1c]
add esp, 4
cmp ecx, 0x10
mov dword [esp + 0x10], eax
jb 0x402d8d
mov ecx, dword [edi + 8]
jmp 0x402d90
lea ecx, [edi + 8]
push ecx
push esi
push eax
call ebp
lea ecx, [esi - 2]
cmp eax, ecx
je 0x402d5c
push 0x104
call fcn.004186e2
mov edi, dword [esp + 0x14]
add esp, 4
cmp edi, ebx
mov ebp, eax
je 0x402e54
push ebx
push edi
call fcn.0040dcf0
mov esi, eax
add esp, 8
sub esi, edi
mov dword [esp + 0x14], eax
je 0x402e50
push esi
push edi
push ebp
call fcn.0040dbb0
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 0x402df3
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00401d80
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x40], ebx
call fcn.00402ad0
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x3c], 0xffffffff
jb 0x402e35
mov eax, dword [esp + 0x1c]
push eax
call fcn.004186e7
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 0x402db7
mov edi, dword [esp + 0x10]
push edi
call fcn.004186e7
push ebp
call fcn.004186e7
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 0x402f20
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 0x402f39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402f4d
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 0x402f6e
cmp esi, eax
jae 0x402f47
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402f60
cmp esi, eax
jae 0x402f47
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403650
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e806
push eax
mov dword fs:[0], esp
sub esp, 0x210
call fcn.00403200
test eax, eax
jne 0x4036ae
mov eax, dword [esp + 0x220]
test eax, eax
jne 0x403697
push 0x40
push 0x420704
push 0x4206f0
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.004035a0
push 0x2d
push str.360seextensionsExtDownloadExtDownload.ini
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0
call fcn.00403420
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 0x40372f
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.004035a0
push 0x10
push str.360se360SE.ini
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 1
call fcn.00403420
mov ecx, dword [esp + 8]
push ecx
push 0x42067c
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 0x403790
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 0x42067c
push 0x420628
push str.Explorer
call esi
mov eax, dword [esp + 0x228]
test eax, eax
pop edi
pop esi
jne 0x4037f6
push 0x40
push 0x420704
push 0x420604
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 0x403810
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e806
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 0x42070c
push 0x420628
push str.Explorer
call esi
call fcn.00403200
test eax, eax
jne 0x4038a3
push 0x40
push 0x420704
push 0x4206f0
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.004035a0
push 0x2d
push str.360seextensionsExtDownloadExtDownload.ini
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0
call fcn.00403420
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 0x403920
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.004035a0
push 0x10
push str.360se360SE.ini
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 1
call fcn.00403420
mov ecx, dword [esp + 8]
push ecx
push 0x42070c
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 0x403985
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 0x403cc0
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 0x403d24
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x403d1f
cmp ecx, 2
jbe 0x403d15
cmp ecx, 7
jne 0x403d1f
mov ecx, dword [edi]
cmp ecx, 2
jb 0x403d1f
mov dl, byte [ecx + esi - 1]
test dl, dl
jne 0x403d1f
mov dl, byte [ecx + esi - 2]
jmp 0x403d1b
mov ecx, dword [edi]
mov dl, byte [ecx + esi - 1]
test dl, dl
je 0x403d24
mov eax, 0xd
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x404050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e83b
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 0x80000001
mov dword [esp + 0x140], ebx
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
je 0x4041ac
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallChromium
push 0x80000001
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
je 0x4041ac
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push 0x80000002
lea ecx, [esp + 0x20]
call fcn.00402fe0
test eax, eax
je 0x40416e
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallChromium
push 0x80000002
lea ecx, [esp + 0x20]
call fcn.00402fe0
test eax, eax
je 0x40416e
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.00403520
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x404159
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.00403cc0
test eax, eax
jne 0x40414a
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 0x404142
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.00403cc0
test eax, eax
jne 0x404209
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 0x4041f2
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403380
cmp esi, ebx
je 0x404159
push esi
jmp 0x404153
Function at 0x404710
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41e886
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.0040bced
mov edi, dword [esp + 0x358]
push edi
lea eax, [esp + 0x1bc]
push str._s.
push eax
mov dword [esp + 0x35c], 0
call fcn.0040e2e6
add esp, 0xc
push 0
lea ecx, [esp + 0x1bc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bd80
test eax, eax
je 0x40487a
push esi
lea esp, [esp]
lea ecx, [esp + 0x14]
call fcn.0040bace
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.0040bcb4
test eax, eax
jne 0x40486d
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.0040bfa8
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 0x4047dd
push 0xc8
mov ecx, esi
call fcn.004031b0
mov ecx, dword [esi]
lea edx, [esp + 0x2c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4047e3
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 0x404812
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 0x40484f
lea edx, [esp + 0x100]
push edx
call fcn.0040e2e6
add esp, 0x10
lea eax, [esp + 0xf4]
push eax
mov ecx, ebp
call fcn.00404710
jmp 0x40486d
lea edx, [esp + 0x290]
push edx
call fcn.0040e2e6
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 0x404780
pop esi
lea ecx, [esp + 0x10]
call fcn.0040b9fe
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 0x4048bd
call fcn.0040bd11
xor al, al
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
add esp, 0x34c
ret 4
call fcn.0040bd11
mov ecx, dword [esp + 0x340]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x34c
ret 4
Function at 0x405160
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov esi, ecx
call fcn.00404b90
push 1
push 0x420804
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00401d80
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0
call fcn.004048e0
push 0xd
push str._thunder.xpi_
lea ecx, [esp + 0x10]
call fcn.004049d0
push str._firefox.exe
add esi, 4
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00404ae0
mov ecx, dword [esi + 0x18]
mov edi, 0x10
add esp, 0xc
cmp ecx, edi
jb 0x4051f6
mov esi, dword [esi + 4]
jmp 0x4051f9
add esi, 4
cmp dword [esp + 0x20], edi
mov ecx, dword [esp + 0xc]
jae 0x405207
lea ecx, [esp + 0xc]
cmp dword [eax + 0x18], edi
jb 0x405211
mov eax, dword [eax + 4]
jmp 0x405214
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 0x405239
mov edx, dword [esp + 0x28]
push edx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x20], edi
pop edi
pop esi
jb 0x40524e
mov eax, dword [esp + 4]
push eax
call fcn.004186e7
add esp, 4
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x405f90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [0x42bbbc]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea edx, [esp + 0x11c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.004186e2
mov esi, eax
add esp, 4
test esi, esi
jne 0x406039
push eax
call fcn.004186e7
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
push 0
lea ecx, [esp + 0x124]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x406061
push esi
call fcn.004186e7
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x420718
push esi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
push esi
je 0x40604f
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
and ecx, 0xffff
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x14]
and eax, 0xffff
mov dword [ecx], eax
call fcn.004186e7
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4060f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [esp + 0xc], ecx
mov esi, 0x4280f0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push 0x80000001
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
lea eax, [esp + 0x14]
je 0x406172
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push 0x80000002
call edi
test eax, eax
je 0x40619b
add esi, 8
cmp esi, 0x428108
jl 0x406107
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406175
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, 4
call fcn.00401d80
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4061a2
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
add ecx, 4
call fcn.00401d80
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret
Function at 0x4061d0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.004060f0
test eax, eax
jne 0x40622d
push 0x420cb0
add esi, 4
lea eax, [esp + 8]
push esi
push eax
call fcn.00404ae0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, 0x10
jb 0x406202
mov eax, dword [eax + 4]
jmp 0x406205
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
cmp dword [esp + 0x1c], 0x10
jb 0x406222
mov ecx, dword [esp + 8]
push ecx
call fcn.004186e7
add esp, 4
test esi, esi
je 0x40622d
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, 3
pop esi
add esp, 0x1c
ret