joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d20
Capabilities:
Delete file

Disassembly:
mov eax, 0x2024
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x2020], eax
push esi
mov esi, dword [esp + 0x202c]
xor eax, eax
test esi, esi
je 0x401db4
push 0x2000
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x14], 3
call fcn.00457170
push 0x1000
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.0045810b
add esp, 0x18
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x2024]
pop esi
xor ecx, esp
call fcn.0045715c
add esp, 0x2024
ret

Function at 0x401f40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474bfb
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov eax, dword [0x492d7c]
mov edx, dword [eax + 0xc]
mov ecx, 0x492d7c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea edi, [esp + 0x10]
mov dword [esp + 0x828], 0
call fcn.00402130
test eax, eax
jne 0x401fdf
mov dword [esp + 0x828], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40209b
push 0x800
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00457170
mov esi, dword [esp + 0x1c]
add esp, 0xc
push str.KWSMain.exe
push esi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402025
lea edi, [ebx + 0xc]
lea eax, [esp + 0x10]
call fcn.00402b20
jmp 0x40206f
lea edi, [esp + 0x10]
call fcn.00402210
test eax, eax
je 0x401fad
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40206f
push 0x400
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0045810b
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edi, [ebx + 0xc]
lea edx, [esp + 0x14]
call fcn.00402ae0
lea eax, [esi - 0x10]
mov dword [esp + 0x828], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret
Function at 0x402130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
push 0x481090
xor ebx, ebx
mov eax, edi
call fcn.00402b80
push 0x800
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00457170
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x480810
push str.SoftwareKingsoftKSWSVC
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x4021f2
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021b0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00402b80
mov ebx, edi
call fcn.00402ef0
mov eax, 0x22
call fcn.00403010
mov eax, 0x5c
call fcn.00403010
call fcn.00402f70
call fcn.00403090
mov ecx, dword [esp + 0x814]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0045715c
add esp, 0x814
ret

Function at 0x402210
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
push 0x481090
xor ebx, ebx
mov eax, edi
call fcn.00402b80
push 0x800
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00457170
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push str.ImagePath
push str.SYSTEMCurrentControlSetServicesKingsoft_Antivirus_WebShield_Service
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x4022d2
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402290
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00402b80
mov ebx, edi
call fcn.00402ef0
mov eax, 0x22
call fcn.00403010
mov eax, 0x5c
call fcn.00403010
call fcn.00402f70
call fcn.00403090
mov ecx, dword [esp + 0x814]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0045715c
add esp, 0x814
ret
Function at 0x402470
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x698
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x694], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x480f24
push esi
xor edi, edi
push 0x480f28
lea edx, [esp + 0x49c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
call fcn.00402e00
add esp, 0xc
test eax, eax
je 0x4024cf
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x694]
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x494]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4025b4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
inc edi
test byte [esp + 0x38], 0x10
je 0x402572
cmp word [esp + 0x64], 0x2e
jne 0x40251d
mov ax, word [esp + 0x66]
test ax, ax
je 0x402572
cmp ax, 0x2e
jne 0x40251d
cmp word [esp + 0x68], 0
je 0x402572
lea eax, [esp + 0x64]
push eax
push esi
lea ecx, [esp + 0x290]
push ecx
call ebx
test eax, eax
je 0x402572
push str.kwsmain.exe
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x402572
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x402572
test byte [esp + 0x14], 0x10
jne 0x402572
cmp dword [esp + 0x34], 0x1000
ja 0x402594
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4025a9
cmp edi, 0x3e8
jl 0x4024f5
jmp 0x4025a9
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push ecx
push esi
push edx
call ebx
mov dword [esp + 8], 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x69c]
mov eax, dword [esp + 8]
pop edi
pop ebx
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 4
Function at 0x4025d0
Capabilities:
Enumerate process modules
Suspend thread

Disassembly:
sub esp, 0x43c
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x434], eax
cmp dword [0x494268], 0
push esi
push edi
mov esi, ecx
jne 0x402615
push str.NtQueryInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x494268], eax
test eax, eax
je 0x4026d3
push esi
push 0
push 0x42
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x4026d3
push 0
push 4
lea eax, [esp + 0x14]
push eax
push 9
push edi
call dword [0x494268]
test eax, eax
je 0x40265e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.0045715c
add esp, 0x43c
ret
push ebx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x402640
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4026c7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
ja 0x4026af
mov edx, dword [esp + 0x28]
add edx, eax
cmp edx, ecx
jbe 0x4026af
lea eax, [esp + 0x30]
push str.kswebshield.dll
push eax
call fcn.00457f98
add esp, 8
test eax, eax
je 0x4026c0
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x402683
jmp 0x4026c7
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
xor ecx, esp
call fcn.0045715c
add esp, 0x43c
ret

Function at 0x4026f0
Capabilities:
Enumerate threads
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x402779
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 8]
test eax, eax
je 0x402779
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x402779
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x402772
lea ecx, [ecx]
mov ebx, dword [esp + 8]
cmp dword [esp + 0x18], ebx
jne 0x402763
mov ecx, dword [esp + 0x14]
call fcn.004025d0
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x402750
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x618], eax
mov eax, dword [esp + 0x620]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
mov esi, ecx
test eax, eax
je 0x402801
cmp word [eax], 0
je 0x402801
push esi
push eax
lea eax, [esp + 0x218]
push eax
call ebx
test eax, eax
je 0x402801
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402801
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x210]
push 0x480fb8
push eax
call fcn.00459261
add esp, 8
test eax, eax
je 0x402801
push eax
call fcn.00458b65
add esp, 4
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
call ebx
test eax, eax
je 0x402857
lea edx, [esp + 8]
push edx
push str._s.tmp
lea edx, [esp + 0x420]
call fcn.00402e00
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 8
push 1
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
push 4
push 0
lea edx, [esp + 0x10]
push edx
call esi
push 4
push 0
lea eax, [esp + 0x420]
push eax
call esi
mov ecx, dword [esp + 0x620]
pop esi
pop ebx
xor ecx, esp
call fcn.0045715c
add esp, 0x61c
ret 4
Function at 0x402930
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x828], eax
mov ecx, dword [0x481000]
mov edx, dword [0x481004]
mov eax, dword [str.qQ]
push ebx
push esi
mov dword [esp + 0x820], ecx
movzx ecx, word [0x48100c]
push edi
mov dword [esp + 0x828], edx
mov edx, dword [0x48085c]
mov dword [esp + 0x820], eax
mov eax, dword [0x481008]
mov word [esp + 0x830], cx
movzx ecx, word [0x480864]
push 0x800
mov dword [esp + 0x818], edx
mov dword [esp + 0x830], eax
mov eax, dword [0x480860]
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x824], eax
mov word [esp + 0x828], cx
call fcn.00457170
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 1
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x820]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
call ebx
push 1
push 0x19
lea edx, [esp + 0x18]
push edx
push 0
call esi
lea eax, [esp + 0x820]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 1
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push 0
call esi
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call ebx
push 1
push 0xb
lea edx, [esp + 0x18]
push edx
push 0
call esi
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
lea eax, [esp + 0x10]
push eax
call fcn.00401d20
add esp, 4
push 1
push 0x16
lea ecx, [esp + 0x18]
push ecx
push 0
call esi
lea edx, [esp + 0x814]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, eax
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call fcn.00401d20
mov ecx, dword [esp + 0x838]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret
Function at 0x4032b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
lea ecx, [esp + 0x914]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00457170
add esp, 0xc
push 0x800
lea edx, [esp + 0x114]
push 0
push edx
call fcn.00457170
add esp, 0xc
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00457170
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x403340
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.004031c0
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x118]
push edx
call ebx
lea eax, [esp + 0x110]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403373
mov ecx, dword [str..tmp]
mov edx, dword [0x48111c]
mov dword [eax], ecx
mov cx, word [0x481120]
mov dword [eax + 4], edx
lea edx, [esp + 0x110]
push edx
mov word [eax + 8], cx
call edi
test eax, eax
je 0x4033c6
inc esi
cmp esi, 0xa
jl 0x403340
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4033d0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
mov eax, dword [esp + 0xc]
push ecx
call fcn.00402b80
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0045715c
mov esp, ebp
pop ebp
ret

Function at 0x403410
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x20]
lea eax, [esi + 8]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 4], 0
mov dword [eax], 0xffffffff
mov dword [esi + 0x14], edi
je 0x40346c
test ecx, ecx
je 0x40346c
push eax
push 0
push edx
push ecx
push 0
push 0
call fcn.0045971e
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret 0x18
Function at 0x403aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push esi
push 0x1418
call fcn.00444130
mov esi, eax
add esp, 4
test esi, esi
je 0x403acd
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00403a50
mov ecx, eax
jmp 0x403acf
xor ecx, ecx
xor eax, eax
mov edx, 0x403b60
mov esi, vtable.CSimpleThread.0
mov dword [esp + 8], esi
mov dword [esp + 0x20], 0x403b60
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
test edx, edx
je 0x403b24
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push 0x403b60
push 0
push 0
call fcn.0045971e
add esp, 0x18
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x403b3b
test eax, eax
je 0x403b3b
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
test eax, eax
je 0x403b4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403bd0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x403c86
test eax, eax
je 0x403c2c
cmp word [eax], 0
je 0x403c2c
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x403c86
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0045715c
add esp, 0x414
ret 4
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00457170
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x403c86
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0045715c
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0045715c
add esp, 0x414
ret 4

Function at 0x4041c0
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.00404070
test eax, eax
jne 0x404201
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4041fc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404201
push esi
call fcn.004040f0
add esp, 4
test eax, eax
jne 0x404201
push 1
call fcn.00456cf0
push eax
push esi
call fcn.00456f00
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404a30
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.00404070
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x404a73
test esi, esi
je 0x404a6c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404a73
push esi
call fcn.004040f0
add esp, 4
test eax, eax
jne 0x404a73
push 1
call fcn.00456cf0
push eax
push esi
call fcn.00456f00
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ecx
ret 4
Function at 0x404a80
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x49426c], 0
jne 0x404a8e
jmp fcn.00404a30
push esi
call fcn.00404070
mov esi, dword [esp + 8]
test eax, eax
jne 0x404ab4
test esi, esi
je 0x404abf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ab4
push esi
call fcn.004040f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x407b40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x474fbb
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x13c]
push 0x481090
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.00402b80
lea eax, [esi + 0x138]
push 0x481090
mov dword [esp + 0x24], eax
call fcn.00402b80
mov eax, dword [0x492d7c]
mov edx, dword [eax + 0xc]
mov ecx, 0x492d7c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x800
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x103c], ebx
call fcn.00457170
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00408a00
test eax, eax
jne 0x407c19
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407d75
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c20
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00402b80
push 0x800
lea edx, [esp + 0x828]
push 0
push edx
call fcn.00457170
mov esi, dword [esi + 0x11c]
mov ebp, dword [esp + 0x24]
add esp, 0xc
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebp
lea eax, [esp + 0x2c]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0x407c97
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040f850
jmp 0x407d10
push str.safemon360tray.exe
push ebp
lea edx, [esp + 0x2c]
push edx
call esi
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
jne 0x407ccf
lea eax, [ebp - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x407c06
lea eax, [esp + 0x824]
mov esi, str.1.0.0.1001
mov ecx, eax
mov edx, 0x400
sub esi, ecx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x407d04
movzx ecx, word [esi + eax]
test cx, cx
je 0x407d04
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407ce4
jmp 0x407d08
test edx, edx
jne 0x407d0b
sub eax, 2
xor edx, edx
mov word [eax], dx
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.00402b20
lea eax, [esp + 0x824]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d27
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x824]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ecx
call fcn.00402b80
lea eax, [ebp - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0045715c
add esp, 0x1020
ret