joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405721
Capabilities:
Check if file exists
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0xc30
lea ebp, [esp - 4]
mov eax, dword [0x4ad40c]
xor eax, ebp
mov dword [ebp + 0xc30], eax
push 0x2c
mov eax, 0x47de44
call fcn.00442103
mov eax, ecx
mov ecx, dword [ebp + 0xc3c]
lea edi, [eax + 0x34]
mov dword [ebp - 0x2c], ecx
mov ecx, edi
mov dword [ebp - 0x28], edi
call fcn.00404e14
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push 0x20019
push str.Software360safemenuext
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.0040368f
test eax, eax
jne 0x4058f5
push 0x104
lea eax, [ebp + 0xa28]
push eax
push ebx
push dword [ebp - 0x20]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4058f5
mov edi, 0x410
inc esi
cmp esi, 0x64
jge 0x4058f2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 0x20019
lea eax, [ebp + 0xa28]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.0040368f
test eax, eax
jne 0x4058c9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push str.Application
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], edi
call fcn.004036fc
test eax, eax
jne 0x4058c9
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4058c9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x820]
push eax
push 0x4851c0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call fcn.004036fc
test eax, eax
jne 0x4058c9
push edi
lea eax, [ebp + 0x410]
push ebx
push eax
call fcn.00441830
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x410]
push eax
push str.Parameters
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], edi
call fcn.004036fc
lea eax, [ebp - 0x24]
push eax
push str.flags
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call fcn.004036c4
lea eax, [ebp + 0x820]
push eax
lea eax, [esi + 0x64]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_AppendMenuW]
lea ecx, [ebp - 0x38]
call fcn.00403e88
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], esi
call fcn.004017a9
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x30]
call fcn.004017a9
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x38]
push eax
call fcn.004055e3
lea ecx, [ebp - 0x38]
call fcn.00403e9f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00403674
push 0x104
lea eax, [ebp + 0xa28]
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4057ac
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0xc
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x405915
push ebx
push ebx
push 0x800
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_AppendMenuW]
lea ecx, [ebp - 0x20]
call fcn.00403674
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc30]
xor ecx, ebp
call fcn.004420f4
add ebp, 0xc34
leave
ret 4
Function at 0x4062b6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4ad40c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x24
mov eax, 0x47df38
call fcn.00442103
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.0040368f
test eax, eax
jne 0x406387
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 0x406387
xor edi, edi
mov ebx, 0x4ab228
push dword [ebx]
lea eax, [ebp]
push eax
call fcn.00442f1d
pop ecx
pop ecx
test eax, eax
je 0x40635e
inc edi
add ebx, 0x10
cmp edi, 0xe
jb 0x406342
jmp 0x406368
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.00406176
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x100
jl 0x406315
lea ecx, [ebp - 0x18]
call fcn.00403674
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.004420f4
add ebp, 0x20c
leave
ret 8

Function at 0x4070cd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ad40c]
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 0x40710a
cmp dword [ebp - 0x78], 0
jne 0x40710a
xor eax, eax
inc eax
jmp 0x40710c
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004420f4
add ebp, 0x98
leave
ret

Function at 0x407121
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ad40c]
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 0x40715b
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
je 0x40715d
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004420f4
add ebp, 0x98
leave
ret

Function at 0x407172
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ad40c]
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 0x4071af
cmp dword [ebp - 0x78], 2
jne 0x4071af
xor eax, eax
inc eax
jmp 0x4071b1
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004420f4
add ebp, 0x98
leave
ret
Function at 0x4071c6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ad40c]
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.004420f4
leave
ret

Function at 0x4072a1
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 0x4072fc
lea eax, [ebp - 0x10]
push eax
push 0x486364
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 0x40737b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ad40c]
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.00441830
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00441830
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 0x40742f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40742f
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 0x40742f
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 0x40742f
push 2
pop eax
jmp 0x407431
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004420f4
leave
ret
Function at 0x40743d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4ad40c]
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 0x407535
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.00441830
xor eax, eax
push esi
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push edi
push eax
call fcn.00441830
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 0x407535
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x407535
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 0x407535
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 0x407535
lea eax, [ebp - 0x54]
push eax
call fcn.00442443
pop ecx
jmp 0x407537
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004420f4
leave
ret

Function at 0x407544
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 0x4850b8
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 0x407583
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
jne 0x407591
push 0x57
pop eax
pop ebp
ret
push dword [ebp + 0x14]
call fcn.00441cf4
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 0x4075b3
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00441830
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 0x4078dd
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.00441830
add esp, 0xc
push str.GetNativeSystemInfo
push 0x4864f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407916
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x407920
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x24], 9
je 0x407932
cmp word [ebp - 0x24], 6
je 0x407932
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x407937
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ad40c]
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 0x40797a
cmp dword [ebp - 0x7c], 6
jne 0x40797a
cmp dword [ebp - 0x78], 1
jne 0x40797a
call fcn.004078dd
jmp 0x40797c
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004420f4
add ebp, 0x98
leave
ret

Function at 0x407991
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ad40c]
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], 6
jne 0x4079ce
cmp dword [ebp - 0x78], 2
jne 0x4079ce
xor eax, eax
inc eax
jmp 0x4079d0
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004420f4
add ebp, 0x98
leave
ret

Function at 0x407c30
Capabilities:
Check if file exists

Disassembly:
call fcn.004020cf
test eax, eax
je 0x407c3d
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x407c7c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407c7c
push esi
call fcn.0045f9b0
pop ecx
test eax, eax
je 0x407c7c
push esi
call fcn.004020f7
pop ecx
test eax, eax
jne 0x407c7c
push 1
call fcn.0045f660
push eax
push esi
call fcn.0045f870
add esp, 0xc
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x407ccb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00443860
mov eax, dword [0x4ad40c]
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.00441830
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x407d92
cmp eax, 0x3fff
ja 0x407d92
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407d92
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x486360
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407d92
mov esi, dword [ebp + 0x10]
push esi
push 0
push edi
call fcn.00441830
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.00403161
xor eax, eax
add esp, 0x28
inc eax
jmp 0x407d94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004420f4
leave
ret
Function at 0x407da2
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x4a00d0
push 0x443200
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4ad40c]
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.00441830
push edi
push str.__s_
push 0x800
lea eax, [ebp]
push eax
call fcn.00403161
push 5
push esi
lea eax, [ebp]
push eax
push str.Explorer
push 0x4851c0
push esi
call fcn.0045fac0
add esp, 0x34
cmp eax, 0x20
jle 0x407e3e
xor eax, eax
inc eax
jmp 0x407f0d
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 0x48ca20
push 0x15
push esi
push 0x48ca30
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x407efe
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x407ee5
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 0x407e9a
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.00441cf4
pop ecx
test eax, eax
jbe 0x407edc
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 0x407e36
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.004420f4
add ebp, 0x804
leave
ret
Function at 0x408052
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4ad40c]
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.00441830
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x485134
push 0x4855d0
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 0x4080ff
call fcn.00425809
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 0x4080f8
push str.....
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x74], 0
je 0x408140
test esi, esi
je 0x408129
push esi
call fcn.00441cf4
pop ecx
test eax, eax
jbe 0x408129
push esi
lea eax, [ebp - 0x74]
push eax
push str._s_s
push dword [ebp + 0x1a4]
push edi
call fcn.00403161
add esp, 0x14
jmp 0x408139
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x1a4]
push edi
call fcn.00402ef4
mov dword [ebp - 0x78], 1
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x78]
pop edi
xor ecx, ebp
pop esi
call fcn.004420f4
add ebp, 0x198
leave
ret
Function at 0x40815a
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 [0x4ad40c]
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.00441830
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.00441830
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 0x4082a3
and dword [ebp - 0x7c], eax
push edi
push eax
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push eax
call fcn.00441830
add esp, 0xc
cmp word [ebp - 0x74], 0x22
mov edi, str.safemon360Tray.exe___start
jne 0x408215
push 0x22
pop eax
push edi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push esi
push eax
call fcn.00408052
jmp 0x40822e
push str.safemon360Tray.exe__start
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00408052
mov dword [ebp - 0x7c], 1
add esp, 0xc
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00442f1d
pop ecx
pop ecx
test eax, eax
je 0x40824e
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x7c], 0
je 0x4082a3
push 0x22
pop eax
push edi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push esi
push eax
call fcn.00408052
lea eax, [ebp + 0x194]
push eax
mov dword [ebp - 0x78], 1
call fcn.00441cf4
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.004420f4
add ebp, 0x3a0
leave
ret
Function at 0x4082bb
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5f0]
sub esp, 0x670
mov eax, dword [0x4ad40c]
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 0x40832f
cmp dword [ebp + 0x5fc], esi
je 0x408307
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 0x4084af
push 0x168
push dword [ebp + 0x5f8]
push 0x52c
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4084af
xor eax, eax
push 0x40e
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2a]
push esi
push eax
call fcn.00441830
xor eax, eax
push 0x206
mov word [ebp + 0x3e4], ax
lea eax, [ebp + 0x3e6]
push esi
push eax
call fcn.00441830
add esp, 0x18
call fcn.00425809
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.0044338c
pop ecx
pop ecx
cmp eax, esi
je 0x4083c9
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x3e4]
push 0x5c
push eax
call fcn.0044338c
pop ecx
pop ecx
cmp eax, esi
je 0x4083c9
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.00402ef4
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 0x4083f5
lea eax, [ebp + 0x3e4]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00402ef4
lea eax, [ebp - 0x2c]
push eax
call fcn.00407206
pop ecx
test al, al
je 0x4084af
lea eax, [ebp - 0x2c]
push eax
call fcn.004022fe
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00441830
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 0x4084af
cmp dword [ebp + 0x5f8], esi
jbe 0x40849f
push 0xbb8
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push esi
push str.Q360SafeMainClass
call ebx
cmp eax, esi
je 0x40849f
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.004420f4
add ebp, 0x5f0
leave
ret