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

Disassembly:
cmp dword [esp + 0x18], 0
push esi
push edi
jne 0x40662d
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x406596
add ecx, 0xffffffd4
push ecx
call fcn.004068b0
mov ecx, dword [esp + 0x1c]
neg eax
sbb eax, eax
neg eax
dec eax
pop edi
mov dword [ecx], eax
mov eax, 1
pop esi
ret 0x18
cmp eax, 2
jne 0x4065c2
call fcn.004460e0
push eax
call fcn.00446200
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], 0
mov eax, 1
pop esi
ret 0x18
cmp eax, 0x113
jne 0x40660c
cmp dword [esp + 0x14], 1
lea edi, [ecx - 0x2c]
jne 0x4065f8
mov eax, dword [edi + 0x30]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.004460e0
mov esi, eax
call fcn.00446150
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push edi
call fcn.00406c90
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ecx], 0
mov eax, 1
pop esi
ret 0x18
cmp eax, 0x4a
jne 0x40662d
mov esi, dword [esp + 0x18]
lea edi, [ecx - 0x2c]
call fcn.00406bd0
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], eax
mov eax, 1
pop esi
ret 0x18
pop edi
xor eax, eax
pop esi
ret 0x18

Function at 0x4066e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b10eb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, esi
call fcn.00407400
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], eax
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
lea ecx, [esi + 0x58]
mov dword [esi], vtable.CMainWindow.0
mov dword [esi + 0x2c], vtable.CMainWindow.1.0
mov dword [esi + 0x50], vtable.CMainWindow.2.0
push ecx
mov dword [esi + 0x54], vtable.CAtlAdviser.0
call fcn.00443a00
mov dword [esi + 0x70], 1
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x407b20
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0047c012
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push edx
mov ecx, str._silent_scan
call fcn.00405a20
lea eax, [esp + 0x1c]
push eax
call fcn.0047c8cd
test eax, eax
jne 0x407be7
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, str._baimingdan
call fcn.00405a20
lea edx, [esp + 0x1c]
push edx
call fcn.0047c8cd
test eax, eax
jne 0x407be7
push str.Q360SoftMgr_PurifySoftMutex
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x407be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407be7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0047d5a0
test eax, eax
jne 0x407c11
push str.non_admin
call fcn.00408b50
mov edx, str.PurifyScan
mov ecx, eax
call fcn.00408ca0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004083b0
call fcn.00407460
call fcn.0047d08f
call fcn.0040bf70
lea eax, [esp + 0x10]
push str.CommonBase.dll
push eax
call fcn.0047b34a
mov ecx, dword [eax]
push ecx
call fcn.0047e4a3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, str.360SoftMgr_core.config
lea edx, [esp + 0x10]
call fcn.0046ae70
mov ecx, dword [eax]
push ecx
call fcn.0047e532
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0047e78c
call fcn.00407710
mov esi, eax
call fcn.0046b290
mov eax, dword [0x4e8a44]
test eax, eax
je 0x407cc4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4e8a44], 0
call fcn.00408310
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x407ced
mov ebx, dword [esp + 0x20]
call fcn.00406fe0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00490c9e
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408ca0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5071
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x202c
call fcn.004a65a0
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x2028], eax
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x2040]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0
mov edi, edx
jne 0x408cf9
cmp dword [ebx + 4], 0
je 0x408e91
lea esi, [ebx + 0x14]
push esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x28], 1
mov dword [esp + 0x2048], 0
mov eax, dword [ebx + 0x10]
cmp dword [eax - 0xc], 0
jle 0x408d45
test edi, edi
je 0x408d3f
cmp dword [eax - 0xc], 0
jl 0x408d3f
push edi
push eax
call fcn.004915bc
add esp, 8
test eax, eax
je 0x408d3f
sub eax, dword [ebx + 0x10]
sar eax, 1
jns 0x408d45
push esi
jmp 0x408e8b
xor ecx, ecx
push 0x2000
push ecx
lea edx, [esp + 0x36]
push edx
mov word [esp + 0x38], cx
call fcn.00494b20
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x34]
push 0xfff
push edx
call fcn.004916f1
add esp, 0x10
test eax, eax
jl 0x408d92
cmp eax, 0xfff
ja 0x408d92
jne 0x408d9c
xor eax, eax
mov word [esp + 0x202a], ax
jmp 0x408d9c
xor ecx, ecx
mov word [esp + 0x202a], cx
push 0
call fcn.00490e5b
mov dword [esp + 0x24], edx
add esp, 4
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.00408c20
mov byte [esp + 0x2048], 1
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x204c], 2
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push str._s___s___s_r_n
lea edi, [esp + 0x24]
call fcn.00404aa0
mov esi, dword [esp + 0x24]
add esp, 0x10
cmp dword [ebx + 8], 0
je 0x408e0f
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebx + 4], 0
je 0x408e3a
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
je 0x408e3a
push 0
mov dword [esp + 0x18], 0
mov eax, dword [esi - 0xc]
lea edx, [esp + 0x18]
push edx
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi - 0x10]
mov byte [esp + 0x2048], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2048], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2028]
xor ecx, esp
call fcn.0049021b
mov esp, ebp
pop ebp
ret
Function at 0x40a470
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40a480
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40a490
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40a9b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40aa2a
xor eax, eax
cmp ecx, ebp
je 0x40aa12
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40aa38
cmp ecx, ebp
je 0x40aacb
push ecx
jmp 0x40aac5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40aa9a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040a9b0
mov ebx, eax
cmp ebx, ebp
jne 0x40aae8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x40aa60
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40aaad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040ab60
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40aacb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049021b
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40aaf7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40aacd
Function at 0x40b5e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4b0560
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40b65f
call fcn.00409d60
mov esi, eax
jmp 0x40b741
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40b67b
call fcn.00409d60
jmp 0x40b738
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40b694
call fcn.00409d60
jmp 0x40b738
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40b6c8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40b6b6
lea eax, [ebp]
call fcn.0040a4c0
lea esi, [ebp - 0x1c]
call fcn.0040bbb0
mov eax, 0x8007000e
jmp 0x40b753
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00409d20
mov dword [ebp - 4], 1
jmp 0x40b6f1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40b6ff
mov esi, 0x8007000e
jmp 0x40b73a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40b71d
call fcn.00409d60
jmp 0x40b738
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040b490
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40b751
lea eax, [ebp]
call fcn.0040a4c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0049021b
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cff0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4b5d58
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
test edi, edi
jne 0x40d02b
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d018
lea eax, [esp + 0xc]
push str.360Base.dll
push eax
call fcn.0047b079
mov dword [esp + 0x20], 0
mov eax, dword [eax]
push eax
call fcn.0040d1a0
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40d0a4
push edi
push 0x4e4548
xor esi, esi
call fcn.0047ebaa
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov eax, edi
call fcn.00487ec0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x40d0c0
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, eax
test edi, edi
je 0x40d0f7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d0f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0047ea6b
add esp, 4
test eax, eax
jne 0x40d0ee
call fcn.0040cff0
test eax, eax
je 0x40d0f7
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x40f5f0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov esi, eax
cmp word [0x4e91f8], bx
jne 0x40f62a
push 0x104
push 0x4e91f8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4e91f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp word [0x4e91f8], bx
je 0x40f641
mov eax, dword [esi]
push 0x4e91f8
push eax
call edi
test eax, eax
je 0x40f641
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov edx, dword [esi]
mov ecx, edx
call fcn.0040f5c0
test eax, eax
je 0x40f638
cmp eax, 1
jne 0x40f6e5
cmp dword [edx - 0xc], ebx
jl 0x40f677
push str.program_files__x86__
push edx
call fcn.004915bc
add esp, 8
test eax, eax
je 0x40f677
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40f638
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jl 0x40f699
push str.program_files_
push eax
call fcn.004915bc
add esp, 8
test eax, eax
je 0x40f699
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40f638
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jl 0x40f6bf
push str.windows_
push eax
call fcn.004915bc
add esp, 8
test eax, eax
je 0x40f6bf
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40f638
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jl 0x40f6e5
push str.programdata_
push eax
call fcn.004915bc
add esp, 8
test eax, eax
je 0x40f6e5
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40f638
cmp word [0x4e9400], bx
jne 0x40f720
push 0x4e9400
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.AppData_
push 0x4e9400
call edi
test eax, eax
je 0x40f717
xor ecx, ecx
mov word [eax + 0x12], cx
cmp word [0x4e9400], bx
je 0x40f733
mov esi, dword [esi]
push esi
push 0x4e9400
call edi
test eax, eax
mov eax, 1
jne 0x40f735
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40f740
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 4], eax
test eax, eax
jne 0x40f761
pop esi
add esp, 8
ret
lea eax, [esi + 8]
push eax
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x40f7d0
push 0
push 0
mov dword [esp + 0x20], esi
call fcn.00491eac
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x40f795
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 4], eax
pop esi
setne al
add esp, 8
ret
Function at 0x40fbc0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push 0x4c6c9c
push eax
call fcn.0047b079
add esp, 8
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x10]
mov edi, eax
test eax, eax
je 0x40fd98
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fd94
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0047ea6b
add esp, 4
test eax, eax
jne 0x40fc45
call fcn.0040cff0
test eax, eax
je 0x40fd94
mov edx, dword [0x4e7464]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e7464
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 1
mov ecx, dword [esp + 0x10]
push ecx
push str.__s___TASKTYPEInstallByV3__ADVTOOLIDSPopWndTracker___ADVTOOLURLhttps:__update.360safe.com_v3_AdvPopWndTracker.cab___ADVTOOLNOTIFY
lea edi, [esp + 0x1c]
call fcn.00404aa0
push 0x44
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00494b20
mov esi, dword [esp + 0x28]
add esp, 0x14
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
push esi
push eax
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x80], 1
mov word [esp + 0x84], ax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40fd59
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x18]
push str.safemonPopWndTracker.exe
push eax
call fcn.0047b079
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x80], 2
call fcn.0040d2b0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push 0
push str._query
push 0x4c6e4c
call fcn.0040fe10
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40fd70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], 0
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fe10
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b6cb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x14]
push eax
call fcn.00405a20
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x40fe5f
push 0x80070057
call fcn.004058d0
movzx edx, word [ecx]
or ebp, 0xffffffff
cmp dx, 0x22
jne 0x40fed6
cmp eax, 1
jle 0x40fed6
add ecx, 2
push 0x22
push ecx
call fcn.00490c36
add esp, 8
test eax, eax
je 0x40fed2
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40fed6
lea ecx, [esp + 0x14]
push ecx
dec eax
lea ecx, [ebp + 2]
lea edx, [esp + 0x1c]
call fcn.0040c8f0
lea edi, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.0040d2b0
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fed2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov edi, ecx
test ecx, ecx
je 0x40ff5b
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ff57
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0047ea6b
add esp, 4
test eax, eax
jne 0x40ff03
call fcn.0040cff0
test eax, eax
je 0x40ff57
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push 0
push edx
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40ff40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
mov dword [esp + 0x24], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40ff78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc