joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dcd
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x24
mov eax, 0x47c5c4
call fcn.004409e3
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x218]
xor esi, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push 8
push str.Software360safe_tpi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00403529
test eax, eax
jne 0x405e9e
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0x104
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405e9e
xor edi, edi
mov ebx, 0x4a8228
push dword [ebx]
lea eax, [ebp]
push eax
call fcn.004417fd
pop ecx
pop ecx
test eax, eax
je 0x405e75
inc edi
add ebx, 0x10
cmp edi, 0xe
jb 0x405e59
jmp 0x405e7f
mov eax, dword [ebp - 0x20]
mov dword [eax + edi*4], 1
mov ecx, dword [ebp - 0x28]
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00405c8d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x100
jl 0x405e2c
lea ecx, [ebp - 0x18]
call fcn.0040350e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004409d4
add ebp, 0x20c
leave
ret 8

Function at 0x406bc4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 5
jne 0x406c01
cmp dword [ebp - 0x78], 0
jne 0x406c01
xor eax, eax
inc eax
jmp 0x406c03
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004409d4
add ebp, 0x98
leave
ret

Function at 0x406c18
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 5
jne 0x406c52
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
je 0x406c54
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004409d4
add ebp, 0x98
leave
ret

Function at 0x406c69
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 5
jne 0x406ca6
cmp dword [ebp - 0x78], 2
jne 0x406ca6
xor eax, eax
inc eax
jmp 0x406ca8
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004409d4
add ebp, 0x98
leave
ret
Function at 0x406cbd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004409d4
leave
ret

Function at 0x406d98
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x406db8
xor eax, eax
jmp 0x406e0b
push esi
push edi
call fcn.00441d75
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x406dca
xor eax, eax
jmp 0x406e0a
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x406e01
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x484348
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00441c98
pop ecx
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x406e0f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406e6a
lea eax, [ebp - 0x10]
push eax
push 0x48434c
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x406ee2
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x406f01
test byte [ebp - 4], 7
je 0x406f01
xor eax, eax
inc eax
leave
ret
call fcn.00406e6f
leave
ret
Function at 0x406f82
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00440110
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00440110
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
pop esi
test eax, eax
je 0x407036
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x407036
push str.param.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x407036
lea eax, [ebp - 0x414]
push eax
push 0
push str.ProtectSelf
push str.Param
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x407036
push 2
pop eax
jmp 0x407038
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004409d4
leave
ret

Function at 0x407044
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x40713c
push esi
lea ecx, [ebp - 0x468]
push ecx
push 0x3e8
push 1
push edi
push 0x65
push 0x591
push eax
mov dword [ebp - 0x468], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push edi
push eax
call fcn.00440110
xor eax, eax
push esi
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push edi
push eax
call fcn.00440110
add esp, 0x18
push 0x104
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
pop esi
test eax, eax
je 0x40713c
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40713c
push str.param.ini
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x40713c
lea eax, [ebp - 0x464]
push eax
push 0x28
lea eax, [ebp - 0x54]
push eax
push edi
push str.StateARP
push str.Param
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40713c
lea eax, [ebp - 0x54]
push eax
call fcn.00440ed4
pop ecx
jmp 0x40713e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004409d4
leave
ret

Function at 0x40714b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 1
push 0x4830a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
leave
ret
Function at 0x40718a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
jne 0x407198
push 0x57
pop eax
pop ebp
ret
push dword [ebp + 0x14]
call fcn.004405d4
pop ecx
add eax, eax
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ebp
ret

Function at 0x4071ba
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00440110
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x4074e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00440110
add esp, 0xc
push str.GetNativeSystemInfo
push 0x4844e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40751d
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x407527
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x24], 9
je 0x407539
cmp word [ebp - 0x24], 6
je 0x407539
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x40753e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407581
cmp dword [ebp - 0x7c], 6
jne 0x407581
cmp dword [ebp - 0x78], 1
jne 0x407581
call fcn.004074e4
jmp 0x407583
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004409d4
add ebp, 0x98
leave
ret

Function at 0x4076f5
Capabilities:
Check if file exists

Disassembly:
call fcn.004020ae
test eax, eax
je 0x407702
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x407741
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407741
push esi
call fcn.0045e310
pop ecx
test eax, eax
je 0x407741
push esi
call fcn.004020d6
pop ecx
test eax, eax
jne 0x407741
push 1
call fcn.0045dfc0
push eax
push esi
call fcn.0045e1d0
add esp, 0xc
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x407800
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00442140
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.00440110
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4078c7
cmp eax, 0x3fff
ja 0x4078c7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4078c7
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x484348
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4078c7
mov esi, dword [ebp + 0x10]
push esi
push 0
push edi
call fcn.00440110
mov eax, dword [ebp - 0x4008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
dec esi
push esi
push edi
call fcn.00402fd0
xor eax, eax
add esp, 0x28
inc eax
jmp 0x4078c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004409d4
leave
ret
Function at 0x4078d7
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x49e068
push 0x441ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4aa3ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x80c]
xor eax, eax
mov word [ebp], ax
push 0x7fe
xor esi, esi
push esi
lea eax, [ebp + 2]
push eax
call fcn.00440110
push edi
push str.__s_
push 0x800
lea eax, [ebp]
push eax
call fcn.00402fd0
push 5
push esi
lea eax, [ebp]
push eax
push str.Explorer
push 0x4831b0
push esi
call fcn.0045e420
add esp, 0x34
cmp eax, 0x20
jle 0x407973
xor eax, eax
inc eax
jmp 0x407a42
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1c]
push eax
push 0x48a898
push 0x15
push esi
push 0x48a8a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x407a33
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x407a1a
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x94]
cmp dword [ebp - 0x20], esi
je 0x4079cf
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.004405d4
pop ecx
test eax, eax
jbe 0x407a11
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x38], eax
xor eax, eax
mov word [ebp - 0x30], ax
push 8
pop eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push edx
push edx
push edx
lea edx, [ebp - 0x40]
push edx
push eax
call dword [ecx + 0xd0]
push dword [ebp - 0x38]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40796b
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004409d4
add ebp, 0x804
leave
ret
Function at 0x407b46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x194], eax
and dword [ebp - 0x78], 0
push esi
mov esi, dword [ebp + 0x1a8]
push edi
mov edi, dword [ebp + 0x1a0]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00440110
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x483124
push 0x4835b8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x208
mov dword [ebp - 0x80], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x74], 0
jne 0x407bf3
call fcn.004240e9
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp - 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407bec
push str.....
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x74], 0
je 0x407c34
test esi, esi
je 0x407c1d
push esi
call fcn.004405d4
pop ecx
test eax, eax
jbe 0x407c1d
push esi
lea eax, [ebp - 0x74]
push eax
push str._s_s
push dword [ebp + 0x1a4]
push edi
call fcn.00402fd0
add esp, 0x14
jmp 0x407c2d
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x1a4]
push edi
call fcn.00402dc9
mov dword [ebp - 0x78], 1
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x78]
pop edi
xor ecx, ebp
pop esi
call fcn.004409d4
add ebp, 0x198
leave
ret
Function at 0x407c4e
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00440110
lea esi, [edi + 2]
push esi
lea eax, [ebp - 0x74]
push 0
push eax
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x80], esi
call fcn.00440110
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.360Safetray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x407d97
and dword [ebp - 0x7c], eax
push edi
push eax
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push eax
call fcn.00440110
add esp, 0xc
cmp word [ebp - 0x74], 0x22
mov edi, str.safemon360Tray.exe___start
jne 0x407d09
push 0x22
pop eax
push edi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push esi
push eax
call fcn.00407b46
jmp 0x407d22
push str.safemon360Tray.exe__start
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00407b46
mov dword [ebp - 0x7c], 1
add esp, 0xc
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004417fd
pop ecx
pop ecx
test eax, eax
je 0x407d42
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x7c], 0
je 0x407d97
push 0x22
pop eax
push edi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push esi
push eax
call fcn.00407b46
lea eax, [ebp + 0x194]
push eax
mov dword [ebp - 0x78], 1
call fcn.004405d4
add esp, 0x10
add eax, eax
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x194]
push eax
push dword [ebp - 0x78]
push str.360Safetray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp + 0x39c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004409d4
add ebp, 0x3a0
leave
ret
Function at 0x407daf
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5f0]
sub esp, 0x670
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x5ec], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
push esi
push edi
xor esi, esi
push esi
push str.Q360SafeMainClass
call ebx
mov edi, eax
cmp edi, esi
je 0x407e23
cmp dword [ebp + 0x5fc], esi
je 0x407dfb
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp + 0x5f8], esi
jbe 0x407fa3
push 0x168
push dword [ebp + 0x5f8]
push 0x52c
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x407fa3
xor eax, eax
push 0x40e
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2a]
push esi
push eax
call fcn.00440110
xor eax, eax
push 0x206
mov word [ebp + 0x3e4], ax
lea eax, [ebp + 0x3e6]
push esi
push eax
call fcn.00440110
add esp, 0x18
call fcn.004240e9
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp + 0x3e4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x3e4]
push 0x5c
push eax
call fcn.00441c6c
pop ecx
pop ecx
cmp eax, esi
je 0x407ebd
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x3e4]
push 0x5c
push eax
call fcn.00441c6c
pop ecx
pop ecx
cmp eax, esi
je 0x407ebd
mov ecx, eax
lea edx, [ebp + 0x3e4]
sub ecx, edx
sar ecx, 1
push str.360safe.exe
mov edx, 0x208
sub edx, ecx
push edx
push eax
call fcn.00402dc9
mov edi, 0x410
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
ja 0x407ee9
lea eax, [ebp + 0x3e4]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00402dc9
lea eax, [ebp - 0x2c]
push eax
call fcn.00406cfd
pop ecx
test al, al
je 0x407fa3
lea eax, [ebp - 0x2c]
push eax
call fcn.00402263
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00440110
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x10
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x5fc]
neg eax
sbb eax, eax
and eax, 5
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407fa3
cmp dword [ebp + 0x5f8], esi
jbe 0x407f93
push 0xbb8
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push esi
push str.Q360SafeMainClass
call ebx
cmp eax, esi
je 0x407f93
push 0x168
push dword [ebp + 0x5f8]
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x5ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004409d4
add ebp, 0x5f0
leave
ret
Function at 0x40813d
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
mov edi, dword [ebp + 0x194]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.00440110
add esp, 0xc
call fcn.004240e9
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
je 0x4081eb
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
je 0x4081eb
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.SoftMgr
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
je 0x4081eb
push str.SoftManager.exe
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
je 0x4081eb
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4081eb
push 5
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00407ae6
add esp, 0xc
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.004409d4
add ebp, 0x18c
leave
ret

Function at 0x408202
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004240e9
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40827e
push str...ipc360boxmain.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40827e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40827e
push 5
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00407ae6
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004409d4
leave
ret

Function at 0x40828b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004240e9
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x408307
push str.360realpro.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x408307
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408307
push 5
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00407ae6
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004409d4
leave
ret