joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ca60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4266cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4297a8
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x41caf0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x41cab7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x41cae1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x41caf6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x41caf6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x427fd8
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x427fc4
mov dword [esp + 0x1c], 0xffffffff
call fcn.004222da
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x41dc40
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00422790
mov eax, dword [esp + 0x1018]
mov edx, dword [esp + 0x1014]
push esi
push eax
mov eax, dword [esp + 0x1018]
lea ecx, [esp + 0xc]
push 0x1000
push ecx
mov ecx, dword [esp + 0x101c]
push edx
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x100c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x41df40
Capabilities:
Access peb ldr_data
Get ntdll base address
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4268d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
lea eax, [esp]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41dff0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42691d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push esi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
lea eax, [esp + 8]
mov dword [esp + 0xa0], 3
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41e0cc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0xb8]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e0cc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 8], eax
call fcn.00422328
mov esi, dword [esp + 0xa8]
lea edx, [esp + 4]
push edx
mov ecx, esi
mov byte [esp + 0xa4], 4
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0xa0], 3
call sub.MFC42.DLL_CString::CString
jmp 0x41e0f5
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0xa8]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0xa0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb4]
mov byte [esp + 0xa0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb8]
mov byte [esp + 0xa0], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x98]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xa0
ret
Function at 0x41e9f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x426abf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [esp + 0x11c]
push ebx
push esi
push edi
mov esi, ecx
push eax
push 0x7de
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esi + 0x64]
mov dword [esp + 0x120], 0
call fcn.0041a5d0
lea ecx, [esi + 0x110]
mov byte [esp + 0x120], 1
call fcn.00418480
lea ecx, [esi + 0x214]
mov byte [esp + 0x120], 2
call fcn.00412460
lea ecx, [esi + 0x2c0]
mov byte [esp + 0x120], 3
call fcn.0041b090
lea ecx, [esi + 0x428]
mov byte [esp + 0x120], 4
call fcn.0041e1c0
lea edi, [esi + 0x4c8]
mov byte [esp + 0x120], 5
mov dword [esp + 0x10], edi
lea ebx, [edi + 0x14]
mov dword [esp + 0xc], ebx
lea ecx, [ebx + 4]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [ebx + 0x18]
mov byte [esp + 0x120], 6
call sub.MFC42.DLL_CStringArray::CStringArray
add edi, 0x40
mov byte [esp + 0x120], 7
mov ecx, edi
mov dword [esp + 0xc], edi
call fcn.00422340
lea ecx, [edi + 4]
mov byte [esp + 0x120], 8
call fcn.00422340
lea ecx, [edi + 8]
mov byte [esp + 0x120], 9
call fcn.00422340
lea ecx, [edi + 0xc]
mov byte [esp + 0x120], 0xa
call fcn.00422340
lea ecx, [edi + 0x1c]
mov byte [esp + 0x120], 0xb
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0x30]
mov byte [esp + 0x120], 0xc
call sub.MFC42.DLL_CStringArray::CStringArray
lea edi, [esi + 0x56c]
mov byte [esp + 0x120], 0xd
mov ecx, edi
call fcn.00422340
lea ecx, [esp + 0x18]
push 0xff
push ecx
push 0
mov byte [esp + 0x12c], 0xe
mov dword [esi], 0x429ab0
mov dword [esi + 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_2
mov bl, 0xf
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x41ebaf
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 0x10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x41ebef
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 0x11
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 0xe
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x421b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x14]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
ret 0xc

Function at 0x421bc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [esp + 8]
push edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x32c]
xor edi, edi
push eax
push 0x20019
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x100
xor esi, esi
call ebx
test eax, eax
je 0x421c0b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x31c
ret 8
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x38]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x421ccd
lea ecx, [esp + 0x28]
lea edx, [esp + 0x128]
push ecx
push str._sNdi
push edx
call ebp
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
push 0x20019
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x421cbd
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push str.DeviceID
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00421b80
test eax, eax
jne 0x421cb2
mov edx, dword [esp + 0x334]
lea eax, [esp + 0x228]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x421cb2
mov edi, 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov dword [esp + 0x18], 0x100
je 0x421c12
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret 8
Function at 0x421d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x320
push ebx
push esi
lea eax, [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x330]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.Bindings
push ecx
xor esi, esi
mov dword [esp + 0x20], 0x104
call edi
test eax, eax
je 0x421dcb
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x320
ret 4
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push 0
lea edx, [esp + 0x24]
push 0
push edx
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x34]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x421e86
lea ecx, [esp + 0x24]
lea edx, [esp + 0x128]
push ecx
push str.EnumNetwork_s
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x421e76
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x22c]
push edx
push str.CompatibleIDs
push eax
call fcn.00421b80
lea ecx, [esp + 0x22c]
push str.MSTCP
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x421e6b
mov ebx, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov dword [esp + 0x10], 0x104
je 0x421dd2
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x320
ret 4

Function at 0x421ea0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [esp + 0x10]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.EnumRootNet
mov ebx, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0x100
xor esi, esi
call ebp
test eax, eax
je 0x421ee6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x34]
mov eax, esi
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x421f87
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x20019
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
call ebp
test eax, eax
jne 0x421f77
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x124]
push eax
push str.CompatibleIDs
push ecx
mov ecx, ebx
call fcn.00421b80
test eax, eax
jne 0x421f6c
lea edx, [esp + 0x124]
push str.PNP8387
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x421f6c
mov eax, dword [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00421d80
mov edi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov dword [esp + 0x18], 0x100
je 0x421ee6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x401e10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41299a
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x451028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
test byte [0x4573e0], 1
mov dword [ebp - 0x238], esi
jne 0x401e76
or dword [0x4573e0], 1
mov ecx, 0x4573c4
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x413a00
call fcn.00411dbc
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x4573d8], esi
jne 0x401f39
push 0x206
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str._bugreport.exe
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x401f00
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401f14
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
mov ecx, 0x4573c4
call dword [0x414194]
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x4573c4
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d08
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x451028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 8
mov esi, str.SoftWareBaidu_
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
push 0x1e0
xor edi, edi
lea eax, [ebp - 0x1e4]
push edi
push eax
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x204]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x402ba0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402ba0
sub eax, edx
sar eax, 1
mov ebx, pe_nt_image_headers32
sub ebx, eax
lea esi, [ebp + eax*2 - 0x204]
call fcn.00402900
lea ecx, [ebp - 0x208]
push ecx
push 1
push edi
lea edx, [ebp - 0x204]
push edx
push 0x80000001
mov dword [ebp - 0x208], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x208]
cmp eax, edi
je 0x402c2f
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
push edi
push edi
push str.update_available
push eax
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x210], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x20c], edi
jne 0x402c42
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp edx, dword [ebp - 0x20c]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.00411d08
mov esp, ebp
pop ebp
ret

Function at 0x403a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x451028]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push str.Software_baiduBaiduPlayer2Startup
push 0x80000001
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0x14
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0x4163b0
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
add eax, 1
call fcn.00411d08
mov esp, ebp
pop ebp
ret
Function at 0x407880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4132eb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x451028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00406400
mov eax, dword [0x456eec]
mov edx, dword [eax + 0xc]
mov ecx, 0x456eec
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x21c], ebx
xor edi, edi
push 0x206
lea eax, [ebp - 0x216]
push edi
mov dword [ebp - 4], edi
push eax
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x407961
push 0x416b90
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, 1
jne 0x407961
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x407961
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407937
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, eax
call fcn.004064b0
mov ebx, dword [ebp - 0x21c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407993
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40798f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4079c8
lea eax, [ebp - 0x21c]
mov edi, esi
call fcn.004060e0
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d08
mov esp, ebp
pop ebp
ret
Function at 0x4079f0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41350b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x451028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.bdbtray_276F393B8C5C41a7B53613C0F23F8E32
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x407a43
push 0
push 0
push 0xf406
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x407b50
mov eax, dword [0x456eec]
mov edx, dword [eax + 0xc]
mov ecx, 0x456eec
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00407880
cmp eax, 1
mov edi, dword [ebp - 0x21c]
jne 0x407b2d
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
mov word [ebp - 0x218], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 1
jne 0x407b16
push str..._bdbtrayc.ini
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, 1
jne 0x407b16
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x407b16
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x415908
push str.bdbtray
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x407b16
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x36ee80
jae 0x407b16
lea eax, [ebp - 0x21c]
call fcn.004060c0
jmp 0x407b50
push 5
push 0
push 0x416c20
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d08
mov esp, ebp
pop ebp
ret