joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428d90
Capabilities:
Access peb ldr_data
Get file version info
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x430697
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
xor edi, edi
push str.Unknown_Version
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [esp + 0xc], eax
jbe 0x428ec4
push ebp
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push ebp
push ecx
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x428eba
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x1c]
push edx
push eax
push 0x43b134
push ebp
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x1c]
push 0x43b598
mov eax, dword [ecx + 8]
mov edi, eax
and eax, 0xffff
mov ebx, eax
mov eax, dword [ecx + 0xc]
mov esi, eax
and eax, 0xffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
shr edi, 0x10
shr esi, 0x10
call sub.MFC42.DLL_CString::CString_1
mov eax, 0x51eb851f
mov byte [esp + 0x30], 2
mul esi
shr edx, 5
sub edx, 0
je 0x428e73
dec edx
je 0x428e6c
push str.Release
jmp 0x428e78
push str.Beta
jmp 0x428e78
push str.Alpha
lea ecx, [esp + 0x40]
call fcn.00426038
mov ecx, dword [esp + 0x20]
mov eax, esi
push ecx
xor edx, edx
mov ecx, 0x64
div ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x44]
push edx
push ebx
push edi
push str._d._d__s_d_build_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
pop ebx
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop ebp
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4295c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x429706
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x43b398]
mov dx, word [0x43b39c]
mov dword [esp + 0x18], eax
mov al, byte [0x43b39e]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x4296de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.00429740
cmp eax, 1
jne 0x4296fa
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x4296e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00429740
jmp 0x4296fa
cmp dword [esp + 0x14], 0xc
je 0x4296b3
jmp 0x4296f3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x4296fa
mov ecx, ebx
call fcn.00429790
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x429830
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x43b964], ecx
mov ecx, esi
call fcn.00429b70
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x429880
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x429ee0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x429f16
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x429f3d
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x429fb0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x429fe6
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x42a010
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x42ad90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x43b980]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x42ae0a
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x43b974]
pop edi
test eax, eax
jne 0x42adca
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str._s....configDynamicInfo.ini
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [0x43b980]
add esp, 0x10
lea edx, [esp]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
push str.LastQQUin
push 0x439230
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [0x43b980]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret
Function at 0x401d70
Capabilities:
Print debug messages

Disassembly:
push edi
xor edi, edi
cmp dword [0x415150], edi
je 0x401d86
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [0x415148], edi
je 0x401d97
mov eax, 1
pop edi
ret 4
push esi
cmp dword [0x415150], edi
jne 0x401da9
call fcn.00401b60
test eax, eax
je 0x401deb
mov eax, dword [0x41517c]
mov esi, dword [0x414010]
test eax, eax
jne 0x401dd5
push str.ActivateActCtx
push 0x415174
push 0x40f3b8
call fcn.00401030
mov dword [0x41517c], eax
test eax, eax
je 0x401deb
mov ecx, dword [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x401deb
pop esi
mov eax, 1
pop edi
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7f
je 0x401e00
cmp eax, 0x7e
je 0x401e00
cmp eax, 0x78
jne 0x401e0f
mov eax, 1
pop esi
mov dword [0x415148], eax
pop edi
ret 4
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x402df0
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 8], ecx
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
push esi
push edi
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
lea ebx, [ebp + ebp]
push ebx
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov edi, dword [esp + 0x2c]
add esp, 0x10
push edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyW]
push ebx
push 0
push edi
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
add eax, 0x254
push eax
push ebp
push edi
push esi
push ecx
push str.labels
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x403260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40326f
pop dword [ebp - 0x44]
mov eax, 0xeb64d3b5
add eax, 0x14db5eba
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x36397
push 0
mov eax, 0x46fe6b5e
add eax, 0xb942857a
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0xf00edca7
sub ecx, 0xf00e9638
mov ebx, eax
mov esi, 0x419c00
add esi, dword [ebp - 0x44]
mov edx, 0x80afb95f
add dword [ebp - 4], esi
mov edi, dword [esi]
sub dword [ebp - 0x10], 0xd2a18d09
xor edi, edx
xor dword [ebp - 8], edi
mov dword [ebx], edi
add dword [ebp - 0x10], 0x37b913f6
add ebx, 0x998695e8
sub ebx, 0x998695e4
add esi, 4
loop 0x4032c2
add eax, 0x10c8f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push edi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.softwarehewlett_packardhp_software_update
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40121a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.ndays
push eax
call esi
test eax, eax
jne 0x4011c4
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.notify
push ecx
call esi
test eax, eax
jne 0x4011e9
mov edx, dword [esp + 0x14]
mov dword [edi + 4], edx
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.never
push edx
call esi
test eax, eax
pop esi
jne 0x40120f
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x14
ret

Function at 0x4014c0
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 0x4014d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4014ed
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 0x40150e
cmp esi, eax
jae 0x4014e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401500
cmp esi, eax
jae 0x4014e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c3c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403e30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push 0x17
push edi
push str.HPRulesEngine.ContentCollection
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call fcn.00402ca0
cmp eax, edi
jge 0x403e59
cmp eax, 0x80004002
je 0x403e59
push eax
call fcn.0043b8c0
cmp dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
je 0x403ede
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401820
push 1
push ecx
mov ecx, dword [ebp - 0x18]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
cmp eax, edi
mov dword [ebp - 0x20], esp
je 0x403e8c
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
jne 0x403e9f
push 0x80004003
call fcn.0043b8c0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004028d0
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
push 1
push edx
mov ecx, esi
call fcn.00420ff0
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.00420b60
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x403ede
call fcn.00401c60
mov dword [ebp - 0x18], edi
jmp 0x403ede
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 4], 0xffffffff
je 0x403ef2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4042f0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404351
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x404333
cmp eax, 2
jne 0x404343
test esi, esi
mov eax, dword [esp + 0x14]
je 0x40434d
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x40434d
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x406d30
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44c7cb
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.0042d3a0
mov eax, dword [0x46453c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1014], eax
call fcn.004414a2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x1028]
push 0x1000
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
push edi
mov dword [esp + 0x102c], ebx
mov byte [esp + 0x20], bl
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x406dd6
lea ecx, [esp + 0x14]
push ecx
call fcn.00406c80
add esp, 4
cmp eax, ebx
je 0x406dd6
xor edx, edx
mov dx, word [0x46311c]
lea ecx, [esp + 0x10]
push edx
push eax
mov eax, dword [0x4655dc]
push eax
call fcn.00405060
test eax, eax
je 0x406dd6
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.USER32.dll_FindWindowExA]
push ebx
push ebx
push ebx
push edi
call ebp
mov esi, eax
cmp esi, ebx
je 0x406e51
jmp 0x406df0
push 0x1000
lea edx, [esp + 0x18]
push edx
push esi
mov byte [esp + 0x20], bl
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x406e45
lea eax, [esp + 0x14]
push eax
call fcn.00406c80
add esp, 4
cmp eax, ebx
je 0x406e45
mov edx, dword [0x4655dc]
xor ecx, ecx
mov cx, word [0x46311c]
push ecx
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00405060
test eax, eax
je 0x406e45
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push ebx
push esi
push edi
call ebp
mov esi, eax
cmp esi, ebx
jne 0x406df0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1020], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x406e7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1008]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1004]
call fcn.0042c9b6
add esp, 0x1014
ret
Function at 0x407d70
Capabilities:
Connect to http server
Create http request

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1ab0]
test eax, eax
jne 0x407e24
mov edx, dword [esi + 0x1258]
mov eax, dword [edx - 0xc]
mov ecx, eax
neg ecx
sbb ecx, ecx
push 0
and ecx, edx
neg eax
push 0
sbb eax, eax
push ecx
and eax, 3
push eax
push str.VCSoapClient
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x1aac], eax
je 0x407e28
mov ecx, dword [esi + 0x125c]
test ecx, ecx
push edi
lea edi, [esi + 0x125c]
je 0x407df1
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push edi
push 2
push eax
call ebx
mov eax, dword [esi + 0x1aac]
push 4
push edi
push 6
push eax
call ebx
mov ecx, dword [esi + 0x1aac]
push 4
push edi
push 5
push ecx
call ebx
pop ebx
push 0
push 0x200
xor eax, eax
mov ax, word [esi + 0x122a]
push 3
push 0
push 0
lea edx, [esi + 0x25]
push eax
mov eax, dword [esi + 0x1aac]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x1ab0], eax
pop edi
je 0x407e28
xor eax, eax
pop esi
ret
mov ecx, esi
call fcn.004076c0
mov eax, 0x80004005
pop esi
ret
Function at 0x409260
Capabilities:
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x44c8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call fcn.00407d70
test eax, eax
je 0x4092a3
mov dword [esi + 0x1aa8], 4
mov eax, 0x80004005
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push ebx
lea eax, [esi + 0x1260]
xor ebx, ebx
test eax, eax
je 0x4092b8
lea ecx, [esi + 0x126c]
jmp 0x4092ba
xor ecx, ecx
mov ax, word [esi + 0x122a]
mov ecx, dword [ecx]
xor edx, edx
cmp ax, 0x1bb
mov eax, dword [esi + 0x1ab0]
setne dl
push edi
push ebx
dec edx
and edx, 0x800000
or edx, 0x200
push edx
push 0x463160
push ebx
push str.HTTP_1.0
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 0x1ab4], eax
je 0x409402
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_text_xml
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edi, dword [esp + 0x20]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409324
mov ecx, dword [esi + 0x124c]
sub eax, edx
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov ecx, dword [esi + 0x1ab4]
push eax
push edi
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40940c
mov eax, dword [esi + 0x1ab4]
mov ecx, esi
mov dword [esi + 0x1254], eax
call fcn.00407740
cmp eax, 0x1f4
je 0x40937f
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov dword [esi + 0x1aa8], 7
mov dword [esp + 0x20], ebx
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
call dword [edx]
test eax, eax
jl 0x4093ea
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.00407720
test eax, eax
mov edi, dword [esp + 0xc]
jl 0x4093dc
mov edx, dword [esp + 0x20]
push edx
push edi
lea ecx, [esi + 0x1ab8]
call fcn.00408e10
test eax, eax
jge 0x4093dc
mov dword [esi + 0x1aa8], 8
cmp edi, ebx
mov byte [esp + 0x18], bl
je 0x4093ea
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x18], 0xffffffff
je 0x40940c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40940c
mov dword [esi + 0x1aa8], 5
mov ecx, dword [esp + 0x10]
pop edi
pop ebx
mov eax, 0x80004005
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40afe0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44ca1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x46453c]
mov dword [esp + 0x114], eax
lea eax, [esp + 0x10]
push str.SoftwareHewlett_Packardediags
push eax
call fcn.0042def6
add esp, 8
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x1c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esp + 0xc], 4
jne 0x40b063
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.OpMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b06b
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp], 0
mov eax, dword [esp + 4]
sub eax, 0
mov dword [esp + 0x120], 0
lea ecx, [esp]
je 0x40b0a5
dec eax
je 0x40b09e
push str.embed_hp_web_update_3
jmp 0x40b0aa
push str.embed_hp_web_update_3_staging
jmp 0x40b0aa
push str.embed_hp_web_update_3_test
call fcn.00402780
mov ecx, dword [esp]
test ecx, ecx
je 0x40b0c9
push esi
mov esi, dword [ecx]
mov dword [ecx], 0
call fcn.00401c60
mov eax, esi
pop esi
jmp 0x40b0d5
push 0x80004003
call fcn.0043b8c0
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x114]
call fcn.0042c9b6
add esp, 0x124
ret

Function at 0x40b100
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44ca40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.00422340
push eax
lea ecx, [esp + 8]
call fcn.004018b0
push 0x451e34
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.00401820
lea eax, [esp]
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call fcn.00402830
mov ecx, dword [esp]
test ecx, ecx
mov byte [esp + 0x10], 0
je 0x40b160
call fcn.00401c60
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40b180
mov eax, dword [esi + 4]
test eax, eax
jne 0x40b17b
mov ecx, dword [esi]
push ecx
call fcn.0043baa0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x40b182
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40b1cd
test esi, esi
je 0x40b1a8
mov eax, dword [esi + 4]
test eax, eax
jne 0x40b1a3
mov edx, dword [esi]
push edx
call fcn.0043baa0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x40b1aa
xor eax, eax
push 0x44fa38
push eax
push str.SessionFile_was_deleted
mov ecx, 0x465608
call fcn.004136f0
mov ecx, eax
call fcn.004136f0
mov ecx, eax
call fcn.004136f0
test esi, esi
je 0x40b1d8
mov ecx, esi
call fcn.00401c60
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret