joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b17
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x100
lea ecx, [esi + 0x2c]
push edi
call fcn.00408ef0
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push eax
push 0x67
push dword [esi + 0x10]
call ebx
lea ecx, [esi + 0x2c]
call fcn.00408ee3
push eax
lea ecx, [esi + 0x3c]
call fcn.00408f37
lea ecx, [esi + 0x3c]
call fcn.004091cd
push edi
lea ecx, [esi + 0x8c]
call fcn.00408ef0
push eax
push 0x7e
push dword [esi + 0x10]
call ebx
push edi
lea ecx, [esi + 0x9c]
call fcn.00408ef0
push eax
push 0x85
push dword [esi + 0x10]
call ebx
lea ecx, [esi + 0xac]
push edi
call fcn.00408ef0
push eax
push 0x86
push dword [esi + 0x10]
call ebx
lea ecx, [esi + 0xbc]
push edi
call fcn.00408ef0
push eax
push 0x88
push dword [esi + 0x10]
call ebx
push edi
lea ecx, [esi + 0xcc]
call fcn.00408ef0
push eax
push 0x89
push dword [esi + 0x10]
call ebx
push edi
lea ecx, [esi + 0xdc]
call fcn.00408ef0
push eax
push 0x8a
push dword [esi + 0x10]
call ebx
push edi
lea ecx, [esi + 0x12c]
call fcn.00408ef0
push eax
push 0x6e
push dword [esi + 0x10]
call ebx
lea ecx, [esi + 0xac]
call fcn.00409217
lea ecx, [esi + 0xbc]
call fcn.00409217
lea ecx, [esi + 0x5c]
push str.C:Program_FilesDialers
call fcn.00408f37
lea ecx, [esi + 0x2c]
call fcn.00408ee3
push eax
lea ecx, [esi + 0x6c]
call fcn.00408f37
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esi + 0x2c]
call fcn.00408ee3
push eax
lea eax, [ebp - 0x100]
push eax
push str._s_s_uninstall.exe
push edi
lea ecx, [esi + 0x4c]
call fcn.004094e0
push eax
call sub.MSVCRT.dll_sprintf
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x100]
push edi
push eax
push 0x6f
push dword [esi + 0x10]
call ebx
lea eax, [ebp - 0x100]
lea ecx, [esi + 0x7c]
push eax
call fcn.00408f37
lea eax, [esi + 0x2c]
lea ecx, [esi + 0x7c]
push eax
call fcn.00408f65
lea ecx, [esi + 0xec]
push 0x41138c
call fcn.00408f37
lea eax, [esi + 0x2c]
lea ecx, [esi + 0xec]
push eax
call fcn.00408f65
push str.update.exe
lea ecx, [esi + 0xec]
call fcn.00408f8b
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x100]
push edi
push eax
push 0x70
push dword [esi + 0x10]
call ebx
lea eax, [ebp - 0x100]
lea ecx, [esi + 0xfc]
push eax
call fcn.00408f37
lea ebx, [esi + 0x2c]
lea ecx, [esi + 0xfc]
push ebx
call fcn.00408f65
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.00408ee3
push eax
mov ecx, ebx
call fcn.00408ee3
push eax
lea ecx, [esi + 0x5c]
call fcn.00408ee3
push eax
lea eax, [ebp - 0x100]
push str._s_s_s.exe
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x14
lea eax, [ebp - 0x100]
lea ecx, [esi + 0x10c]
push eax
call fcn.00408f37
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4070c3
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x40d220
call fcn.00407bd0
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x20]
call fcn.00408d5c
and dword [ebp - 4], 0
lea ecx, [esi + 0x6c]
mov dword [ebp - 0x10], ecx
call fcn.00408ee3
push eax
push str._s.lnk
push 0x100
lea ecx, [ebp - 0x20]
call fcn.004094e0
push eax
call sub.MSVCRT.dll_sprintf
mov eax, dword [esi + 0x474]
add esp, 0xc
add esi, 0x474
push 1
push 0x20019
push str.softwaremicrosoftwindowscurrentversionexplorer_shell_folders
push SysReAllocString
mov ecx, esi
call dword [eax + 8]
cmp dword [ebp + 8], 0
mov edi, 0x104
mov ebx, str.Programs
je 0x40717d
mov eax, dword [esi]
push 1
push edi
mov ecx, esi
push dword [ebp + 8]
push ebx
call dword [eax + 0x18]
push 0x41138c
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
call fcn.00408ee3
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00408ef0
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0
je 0x4071db
mov eax, dword [esi]
push 1
push edi
mov ecx, esi
push dword [ebp + 0x18]
push ebx
call dword [eax + 0x18]
mov ebx, dword [ebp + 0x18]
push 0x41138c
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
call fcn.00408ee3
push eax
push ebx
call sub.MSVCRT.dll_strcat
push str.Uninstall
push ebx
call sub.MSVCRT.dll_strcat
mov ecx, dword [ebp - 0x10]
add esp, 0x10
call fcn.00408ee3
push eax
push ebx
call sub.MSVCRT.dll_strcat
push str..lnk
push ebx
call sub.MSVCRT.dll_strcat
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x407206
mov eax, dword [esi]
push 1
push edi
mov ecx, esi
push dword [ebp + 0xc]
push str.Start_Menu
call dword [eax + 0x18]
lea ecx, [ebp - 0x20]
call fcn.00408ef0
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0x14]
je 0x407243
mov eax, dword [esi]
push 1
push edi
mov ecx, esi
push dword [ebp + 0x10]
push str.Desktop
call dword [eax + 0x18]
test ebx, ebx
je 0x407230
push dword [ebp + 0x10]
push ebx
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00408ef0
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
cmp dword [ebp + 0x10], 0
je 0x407289
test ebx, ebx
je 0x407289
push 0x41138c
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
call fcn.00408ee3
push eax
push ebx
call sub.MSVCRT.dll_strcat
push str._Subscription
push ebx
call sub.MSVCRT.dll_strcat
push str..lnk
push ebx
call sub.MSVCRT.dll_strcat
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00408e57
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x40816e
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x40d2f8
call fcn.00407bd0
sub esp, 0x220
push esi
push edi
push str.CreateShortcut
lea ecx, [ebp - 0x24]
call fcn.00408de4
xor esi, esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
push eax
push 0x40e4b0
push 1
push esi
push 0x40e4a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, esi
jl 0x4082a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x40e4e0
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edi, eax
cmp edi, esi
jl 0x40829f
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jge 0x4081fd
push esi
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
push str.SetPath_failed_
push esi
call edi
mov eax, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jge 0x40821f
push esi
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
push str.SetArguments_failed_
push esi
call edi
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x408241
push esi
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
push str.SetDescription_failed_
push esi
call edi
cmp dword [ebp + 0x18], esi
je 0x408269
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
jge 0x408269
push esi
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
push str.SetIconLocation_failed_
push esi
call edi
lea eax, [ebp - 0x22c]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x22c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408e57
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4082ca
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4083d8
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
push 3
lea eax, [ebp - 0x104]
pop esi
push eax
call sub.MSVCRT.dll__strlwr
add esp, 0x18
cmp byte [ebp - 0x103], 0x3a
jne 0x408327
movsx esi, byte [ebp - 0x104]
sub esi, 0x60
push esi
call sub.MSVCRT.dll__chdrive
mov esi, 0x41138c
push esi
call sub.MSVCRT.dll__chdir
lea eax, [ebp - 0x104]
push esi
push eax
call sub.MSVCRT.dll_strstr
add esp, 0x10
mov edi, eax
test edi, edi
je 0x4083dc
inc edi
push esi
push edi
call sub.MSVCRT.dll_strstr
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x4083ca
push 0x104
lea eax, [ebp - 0x208]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
call sub.MSVCRT.dll_strlen
push edi
mov ebx, eax
call sub.MSVCRT.dll_strlen
sub eax, ebx
push eax
lea eax, [ebp - 0x208]
push edi
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll__chdir
add esp, 0x24
test eax, eax
je 0x4083ca
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x4083d8
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll__chdir
test eax, eax
pop ecx
jne 0x4083d8
push esi
push edi
call sub.MSVCRT.dll_strstr
pop ecx
pop ecx
jmp 0x408348
xor eax, eax
jmp 0x4083df
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4083e4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
push edi
mov esi, 0x100
xor edi, edi
push esi
lea eax, [ebp - 0x11c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408435
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.0040c281
pop ecx
pop ecx
push eax
push str.OpenProcessToken_failed_with__s_n
jmp 0x4084ab
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x408460
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.0040c281
pop ecx
pop ecx
push eax
push str.LookupPrivilegeValue_failed_with__s_n
jmp 0x4084ab
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x1c]
push 0x10
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4084b6
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.0040c281
pop ecx
pop ecx
push eax
push str.AdjustTokenPrivileges_failed_with__s_n
call sub.MSVCRT.dll_printf
pop ecx
xor eax, eax
pop ecx
jmp 0x4084b9
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4084bd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.004083e4
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x408505
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
leave
ret

Function at 0x40861b
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push 0
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
leave
ret

Function at 0x408634
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4086c9
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40867b
push 0x10
push str.GetFileVersion___Helper
push str.Error:_Could_not_verify_File_Control_version_info.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x41138c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4086c2
cmp dword [ebp - 4], 0
je 0x4086c2
mov eax, dword [ebp - 8]
test eax, eax
je 0x4086c2
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push edi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
jmp 0x4086cc
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x408a7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x408adc
cmp dword [ebp + 0xc], 0
je 0x408adc
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x408a9f
mov dword [esi + 0x418], 6
jmp 0x408ae6
test dword [esi + 0x14], 0x20019
jne 0x408ab4
mov dword [esi + 0x418], 5
jmp 0x408ae6
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 0x14]
push dword [ebp + 0xc]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408ad7
mov dword [esi + 0x418], eax
jmp 0x408ae6
push 1
pop eax
jmp 0x408ae8
mov dword [esi + 0x418], 0x80004003
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x408b6b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x408bcb
cmp dword [ebp + 0xc], 0
je 0x408bcb
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x408b90
mov dword [esi + 0x418], 6
jmp 0x408bd5
test dword [esi + 0x14], 0x20006
jne 0x408ba5
mov dword [esi + 0x418], 5
jmp 0x408bd5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x408bc6
mov dword [esi + 0x418], eax
jmp 0x408bd5
push 1
pop eax
jmp 0x408bd7
mov dword [esi + 0x418], 0x80004003
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x4095a1
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x40d49a
call fcn.00407bd0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x54]
call fcn.00408d5c
lea ebx, [esi + 0x64]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00408d5c
mov dword [esi], 0x40e3d8
mov dword [0x4147ac], esi
push edi
mov byte [ebp - 4], 1
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push dword [ebp + 0xc]
mov dword [esi + 0x74], eax
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], eax
call fcn.00408f37
push edi
push edi
push 1
push edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x40], edi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40ab69
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push 0x100
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push str._rnaph.dll
push eax
call sub.MSVCRT.dll_strcat
pop ecx
xor ebx, ebx
pop ecx
lea eax, [ebp - 0x104]
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40abd8
push 0x30
push str.DLL_Error
push str.Could_not_install_required_driver.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40ac0c
lea eax, [ebp - 4]
push ebx
push eax
push 0x2600
push 0x411840
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push str.rnaph.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi + 0x3c], eax
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b017
Capabilities:
Print debug messages

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x40b035
call fcn.0040adba
test eax, eax
jne 0x40b03b
push str.ModifyIconInTaskbar_:_Warning:_Called_before_icon_is_added._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
pop esi
ret 8
push dword [esp + 0xc]
mov ecx, esi
push dword [esp + 0xc]
push dword [esi + 8]
push 1
push dword [esi + 0x70]
call fcn.0040adbe
test eax, eax
je 0x40b035
push 1
mov dword [esi + 0x14], 1
pop eax
jmp 0x40b037

Function at 0x40b062
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
call fcn.0040adba
test eax, eax
jne 0x40b07d
push str.DeleteIconFromTaskBar:_Warning:_Called_before_icon_is_showed._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
pop esi
ret
push 0
push 0
push dword [esi + 8]
mov ecx, esi
push 2
push dword [esi + 0x70]
call fcn.0040adbe
test eax, eax
je 0x40b079
mov ecx, esi
call fcn.0040aea7
mov ecx, esi
call fcn.0040acfa
push 1
pop eax
pop esi
ret
Function at 0x40c111
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
push str.GTools32___GetNetscapeTypeRegistryEntry._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40c256
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x40c256
mov eax, 0x100
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str..default_software_netscape_netscape_navigator_viewers
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], 1
call edi
mov ebx, 0x103
cmp eax, ebx
je 0x40c23c
mov eax, 0x100
push str.TYPE
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strstr
pop ecx
test eax, eax
pop ecx
je 0x40c1f2
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40c218
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_atoi
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push esi
lea ecx, [ebp - 8]
push esi
inc dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x118]
push ecx
push eax
push dword [ebp - 4]
call edi
jmp 0x40c1a3
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x40c22e
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_atoi
pop ecx
mov dword [edi], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40c25b
mov edi, dword [ebp - 0x14]
push dword [ebp - 4]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40c252
mov dword [eax], edi
mov eax, edi
jmp 0x40c25b
mov eax, 0xfffffbb1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001bd0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
xor edi, edi
push edi
push ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
ja 0x10001bfc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
push esi
call fcn.100054f4
mov ebp, eax
add esp, 4
cmp ebp, edi
jne 0x10001c15
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
push 0
push ebx
rep stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10001c4a
push ebp
call fcn.1000540b
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x10001c76
push ebp
call fcn.1000540b
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor eax, eax
mov ax, word [edx]
sub eax, 0x401
je 0x10001ca5
sub eax, 0xc
je 0x10001ca5
sub eax, 0x1c
je 0x10001ca5
push ebp
xor bl, bl
call fcn.1000540b
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebp
mov bl, 1
call fcn.1000540b
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100025a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
and ecx, 0xffff
dec ecx
cmp ecx, 3
ja case.default.0x100025b6
jmp dword [ecx*4 + 0x100026d8]
mov edx, dword [esp + 0xc]
test edx, 0x80000000
jne 0x10002609
mov eax, 0xd8
ret 0xc
mov edx, dword [esp + 0xc]
test edx, 0x40000000
jne 0x10002609
mov eax, 0xd8
ret 0xc
mov edx, dword [esp + 0xc]
test edx, 0x20000000
jne 0x10002609
mov eax, 0xd8
ret 0xc
mov edx, dword [esp + 0xc]
test edx, 0x10000000
je case.default.0x100025b6
mov ecx, dword [esp + 8]
cmp ecx, 0x7e0
ja 0x10002683
je 0x10002676
cmp ecx, 0x7d4
ja 0x10002661
je 0x10002654
sub ecx, 0x400
je 0x10002643
sub ecx, 0x18
jne case.default.0x100025b6
test dh, 0x80
jne 0x100026d3
mov eax, 0xd8
ret 0xc
test dh, 0x40
jne 0x100026d3
mov eax, 0xd8
ret 0xc
test dh, 8
jne 0x100026d3
mov eax, 0xd8
ret 0xc
cmp ecx, 0x7d8
jne case.default.0x100025b6
test dh, 0x10
jne 0x100026d3
mov eax, 0xd8
ret 0xc
test dh, 0x20
jne 0x100026d3
mov eax, 0xd8
ret 0xc
cmp ecx, 0xbc0
ja 0x100026c1
je 0x100026b4
sub ecx, 0xbb9
je 0x100026a7
sub ecx, 3
jne case.default.0x100025b6
test dh, 2
jne 0x100026d3
mov eax, 0xd8
ret 0xc
test dh, 1
jne 0x100026d3
mov eax, 0xd8
ret 0xc
test dh, 4
jne 0x100026d3
mov eax, 0xd8
ret 0xc
cmp ecx, 0xfa0
jne case.default.0x100025b6
test dl, 0x80
jne 0x100026d3
mov eax, 0xd8
ret 0xc