joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bfc6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x439028]
and dword [ebp - 8], 0
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 4]
call fcn.0040a97c
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x40c008
lea ecx, [ebp - 4]
call fcn.00408148
jmp 0x40c0a7
push esi
push dword [edi]
call fcn.0041a94b
mov esi, eax
pop ecx
inc esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.0040b72c
push eax
lea ecx, [ebp - 4]
call fcn.0040a92c
lea ecx, [ebp - 0xc]
call fcn.00408148
push 0
push str._id
lea ecx, [ebp - 4]
call fcn.00408116
mov esi, eax
cmp esi, 0xffffffff
je 0x40c09e
push esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.0040b72c
push eax
mov ecx, 0x43d664
call fcn.0040a92c
lea ecx, [ebp - 0xc]
call fcn.00408148
push 4
add esi, 4
push esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.0040b6e3
push section..data
push 0x431cbc
push dword [eax]
call fcn.0041ce78
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00408148
lea ecx, [ebp - 4]
call fcn.00408148
pop esi
pop edi
leave
ret

Function at 0x40c12c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
mov ebx, dword [ebp + 0x3a4]
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
mov dword [ebp - 0x80], 0xffffff9c
call fcn.00419dc0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.00419dc0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00419e97
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0x18
lea eax, [ebp + 0x190]
push eax
call esi
lea eax, [ebp + 0x190]
push eax
call esi
push str.360Util.dll
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x190]
mov esi, 0x43c048
push eax
mov ecx, esi
call fcn.00408343
test eax, eax
je 0x40c22b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040b686
push str.__elevated
lea ecx, [ebp - 0x7c]
call fcn.004093cd
push ebx
push 5
push 0xbb8
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040d403
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.00408148
mov ecx, dword [ebp + 0x398]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x39c
leave
ret
Function at 0x40c97a
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
mov eax, dword [ebp + 0x5b4]
mov dword [ebp - 0x78], eax
call fcn.0040e255
lea eax, [ebp - 0x80]
push eax
call fcn.0040c12c
pop ecx
cmp eax, 1
je 0x40cbb6
cmp eax, 2
je 0x40cbb6
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
push 0x3400
call fcn.0040d0aa
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push esi
push eax
call fcn.00419dc0
add esp, 0x10
mov edi, 0x104
push edi
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push ebx
mov word [ebp + 0x3a0], ax
lea eax, [ebp + 0x3a2]
push esi
push eax
call fcn.00419dc0
add esp, 0xc
push edi
lea eax, [ebp + 0x3a0]
push eax
push dword [0x43d68c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x3a0]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040b686
push 0x5c
lea ecx, [ebp - 0x74]
call fcn.004080c2
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040b6e3
push eax
lea ecx, [ebp - 0x74]
call fcn.0040a92c
lea ecx, [ebp - 0x7c]
call fcn.00408148
push 0x5c
lea ecx, [ebp - 0x74]
call fcn.004080c2
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040b6e3
push eax
lea ecx, [ebp - 0x74]
call fcn.0040a92c
lea ecx, [ebp - 0x7c]
call fcn.00408148
push str.Config_newui_themesdefault_
lea ecx, [ebp - 0x74]
call fcn.004093cd
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
push ebx
mov word [ebp + 0x198], ax
push esi
lea eax, [ebp + 0x19a]
push eax
call fcn.00419dc0
push str.sites.dll
lea eax, [ebp + 0x198]
push edi
push eax
call fcn.0040e0c0
lea eax, [ebp + 0x198]
push eax
call fcn.0040a5ed
xor edi, edi
inc edi
push edi
call fcn.00407704
add esp, 0x20
mov dword [0x43b43c], edi
mov dword [0x43b440], edi
call fcn.0040f80f
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00407957
pop ecx
push esi
push dword [ebp - 0x78]
push esi
mov esi, 0x43b6dc
mov ecx, esi
call fcn.00408067
push dword [ebp - 0x78]
mov ecx, 0x43c698
call fcn.0040f46f
call fcn.0040bfc6
call fcn.0040e899
mov eax, dword [0x439028]
push dword [section..data]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push 0x431cbc
push eax
call fcn.0040b74a
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c0aa
push dword [eax]
push dword [ebp - 0x78]
call fcn.0040e943
add esp, 0x18
lea ecx, [ebp - 0x7c]
call fcn.00408148
push dword [ebp + 0x5c0]
push dword [ebp + 0x5bc]
call fcn.0040c692
pop ecx
pop ecx
mov edi, eax
call fcn.0040c94e
mov ecx, eax
call fcn.00418e13
mov ecx, esi
call fcn.0040a8b8
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x78]
call fcn.00408148
lea ecx, [ebp - 0x74]
call fcn.00408148
mov eax, edi
pop edi
pop esi
pop ebx
jmp 0x40cbb8
xor eax, eax
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
call fcn.00419db1
add ebp, 0x5ac
leave
ret 0x10
Function at 0x40ce5c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov ecx, dword [ebp + 0x1bc]
mov eax, dword [ebp + 0x1b8]
push ebx
push esi
mov esi, dword [ebp + 0x1b4]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp + 0x1c0]
xor ebx, ebx
push edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], ecx
cmp esi, ebx
je 0x40cfd5
cmp eax, ebx
je 0x40cfd5
cmp ecx, ebx
je 0x40cfd5
push 0x208
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], 1
call fcn.00419dc0
mov eax, dword [ebp + 0x1c4]
push esi
push str.SOFTWARE360SafeLiveUpupdatecfg
add eax, eax
push str._s_s
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x60]
push 0x103
push eax
call fcn.0041a4e5
add esp, 0x20
lea eax, [ebp - 0x64]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x60]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x40cf4f
cmp dword [ebp - 0x64], ebx
je 0x40cf47
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push ebx
push dword [ebp - 0x70]
push dword [ebp - 0x64]
call esi
push dword [ebp - 0x64]
mov dword [ebp - 0x80], eax
call edi
cmp dword [ebp - 0x80], ebx
jne 0x40cf4f
mov eax, dword [ebp - 0x68]
jmp 0x40cfd7
cmp byte [ebp + 0x1c8], bl
je 0x40cfd5
lea eax, [ebp - 0x64]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cfd5
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push str.Path
push dword [ebp - 0x64]
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], 0x206
call esi
push dword [ebp - 0x64]
call edi
push 0xe
push str.updatecfg.ini
lea eax, [ebp - 0x60]
push 0x104
push eax
call fcn.0041d1fd
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x1c4]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40cfd7
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x1ac
leave
ret
Function at 0x40cfef
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1f94]
mov eax, 0x2014
call fcn.0041ae10
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x1f90], eax
mov eax, dword [ebp + 0x1fa4]
push ebx
mov ebx, dword [ebp + 0x1fa0]
push esi
push edi
mov edi, dword [ebp + 0x1f9c]
mov esi, 0x1fff
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.00419dc0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d090
cmp eax, esi
ja 0x40d090
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d090
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x431e8c
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d090
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x40d092
xor eax, eax
mov ecx, dword [ebp + 0x1f90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x1f94
leave
ret

Function at 0x40d1d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40d259
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40d259
xor ecx, ecx
cmp cx, word [eax]
je 0x40d259
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40d259
and dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d259
lea eax, [esi + esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push str.Path
push dword [ebp + 8]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [edi]
je 0x40d250
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
call fcn.0041a94b
pop ecx
jmp 0x40d25b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40df31
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x436258
push 0x419ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x439c3c]
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.00419dc0
push edi
push str.__s_
push 0x800
lea eax, [ebp]
push eax
call fcn.0040da72
add esp, 0x1c
push 5
push esi
lea eax, [ebp]
push eax
push str.Explorer
push 0x434d74
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40dfce
xor eax, eax
inc eax
jmp 0x40e09d
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 0x433284
push 0x15
push esi
push 0x433294
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40e08e
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x40e075
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 0x40e02a
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.0041a94b
pop ecx
test eax, eax
jbe 0x40e06c
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 0x40dfc6
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.00419db1
add ebp, 0x804
leave
ret

Function at 0x40e255
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00419dc0
push str.CrashReport.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040e0c0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e2d0
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a5ed
pop ecx
test eax, eax
je 0x40e2d0
push str.Initialize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e2d0
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419db1
leave
ret
Function at 0x40eb99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c4]
mov esi, 0x208
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x80], str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360EDRSensor.exe
mov dword [ebp - 0x7c], 0x200
mov dword [ebp - 0x78], str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsMMScan.exe
mov dword [ebp - 0x74], 0x400
mov dword [ebp - 0x70], str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360asset.exe
mov dword [ebp - 0x6c], 0x800
call fcn.00419dc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
push esi
lea eax, [ebp + 0x1b0]
push ebx
push eax
call fcn.00419dc0
mov eax, dword [ebp + edi*8 - 0x80]
lea ecx, [ebp + 0x1b0]
add esp, 0xc
test ecx, ecx
je 0x40ecb1
cmp eax, ebx
je 0x40ecb1
xor ecx, ecx
cmp cx, word [eax]
je 0x40ecb1
lea ecx, [ebp - 0x5c]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ecd8
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1b0]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push str.Path
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x68], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [ebp + 0x1b0]
je 0x40eca2
lea eax, [ebp + 0x1b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0x1b0]
push eax
call fcn.0041a94b
pop ecx
jmp 0x40ecb3
xor eax, eax
cmp eax, ebx
je 0x40ecd8
xor ecx, ecx
cmp cx, word [ebp + 0x1b0]
je 0x40ecd8
push eax
lea eax, [ebp + 0x1b0]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x40ece6
inc edi
cmp edi, 3
jl 0x40ec0e
mov eax, ebx
jmp 0x40ecf4
mov eax, dword [ebp + edi*8 - 0x7c]
cmp eax, 0x200
jne 0x40ecf4
add eax, 0x40
mov ecx, dword [ebp + 0x3b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x3bc
leave
ret

Function at 0x40ed93
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40edf7
test esi, esi
je 0x40edf7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00419dc0
push esi
push edi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040da3e
add esp, 0x20
test eax, eax
jl 0x40edf7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x40edf9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00419db1
leave
ret
Function at 0x40f0a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push ebx
push esi
push edi
mov esi, 0x208
push esi
mov dword [ebp - 0x78], eax
xor edi, edi
lea eax, [ebp + 0x198]
push edi
push eax
call fcn.00419dc0
lea eax, [ebp + 0x198]
add esp, 0xc
test eax, eax
je 0x40f17b
xor ecx, ecx
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
cmp ecx, eax
je 0x40f17b
lea ecx, [ebp - 0x74]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f1ed
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push str.Path
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [ebp + 0x198]
je 0x40f16a
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0x198]
push eax
call fcn.0041a94b
pop ecx
mov ebx, eax
jmp 0x40f17d
xor ebx, ebx
cmp ebx, edi
je 0x40f1ed
xor eax, eax
cmp ax, word [ebp + 0x198]
je 0x40f1ed
cmp dword [ebp + 0x3b0], edi
je 0x40f1cd
push esi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.00419dc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
neg eax
sbb eax, eax
inc eax
je 0x40f1e9
lea eax, [ebp + 0x198]
push str.360SkinMgr.exe
push eax
call fcn.0040ed93
pop ecx
pop ecx
test eax, eax
je 0x40f1e9
mov edi, 0x1000
mov eax, edi
jmp 0x40f1ef
xor eax, eax
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x3a4
leave
ret
Function at 0x40f207
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3ac]
mov esi, 0x208
xor ebx, ebx
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x74], ebx
call fcn.00419dc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp + 0x198]
push ebx
push eax
call fcn.00419dc0
lea eax, [ebp + 0x198]
add esp, 0xc
test eax, eax
je 0x40f2f6
xor ecx, ecx
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360ExtHost.exe
cmp ecx, eax
je 0x40f2f6
lea ecx, [ebp - 0x78]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f347
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [ebp + 0x198]
je 0x40f2e7
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0x198]
push eax
call fcn.0041a94b
pop ecx
jmp 0x40f2f8
xor eax, eax
cmp eax, ebx
je 0x40f347
xor ecx, ecx
cmp cx, word [ebp + 0x198]
je 0x40f347
push eax
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40f342
lea eax, [ebp + 0x198]
push str.safemonwin7shield.dll
push eax
mov dword [ebp - 0x74], 0x40
call fcn.0040ed93
pop ecx
pop ecx
test eax, eax
je 0x40f342
mov dword [ebp - 0x74], 0x140
mov eax, dword [ebp - 0x74]
jmp 0x40f349
xor eax, eax
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x3a4
leave
ret

Function at 0x40f5c2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esi + 2]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push 0x40
sub edi, esi
push 7
sub esi, 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f631
lea eax, [ebp - 4]
push eax
mov byte [esi], 0xe9
mov dword [esi + 1], edi
mov byte [esi + 5], 0xeb
mov byte [esi + 6], 0xf9
push dword [ebp - 4]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
add esi, 7
mov dword [ebx], esi
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f639
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
sub esi, 7
push edi
lea edi, [esi + 5]
cmp byte [edi], 0xeb
jne 0x40f6b7
cmp byte [esi + 6], 0xf9
jne 0x40f6b7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 7
push esi
call ebx
test eax, eax
je 0x40f6b6
lea eax, [ebp - 4]
push eax
mov byte [esi], 0x90
mov byte [esi + 1], 0x90
mov byte [esi + 2], 0x90
mov byte [esi + 3], 0x90
mov byte [esi + 4], 0x90
mov byte [edi], 0x8b
mov byte [esi + 6], 0xff
push dword [ebp - 4]
push 7
push esi
call ebx
push 7
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 8], 1
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x40f80f
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call fcn.0040f6be
test eax, eax
jne 0x40f820
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_Shell_GetImageLists]
push 0
push str.9B5FB5C09E8149f5BD29A82B92FBD07A
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x1e
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00419dc0
and dword [ebp - 0x1c], 0
mov eax, 0x1414
mov word [ebp - 0x18], ax
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x20], 0x4326f0
mov dword [ebp - 0x24], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
call fcn.0040f7f2
xor eax, eax
inc eax
leave
ret