joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a60
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
mov eax, dword [0x473100]
sub esp, 0x800
test eax, eax
jne 0x405b8e
mov eax, dword [0x473104]
push esi
test eax, eax
jne 0x405b26
push edi
lea eax, [esp + 8]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 8]
push ecx
call edi
mov eax, dword [0x473108]
xor esi, esi
test eax, eax
jle 0x405abd
lea edx, [esp + 8]
push edx
call edi
mov eax, dword [0x473108]
inc esi
cmp esi, eax
jl 0x405aac
lea eax, [esp + 8]
push str.360Common.dll
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 8]
pop edi
test edx, edx
je 0x405b0e
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405b12
lea ecx, [esp + 4]
push ecx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x405b12
call fcn.00456be0
lea edx, [esp + 4]
push eax
push edx
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x405b1d
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x473104], eax
je 0x405b84
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov ecx, dword [0x473104]
push str.Get360ProductHistoryManager
push ecx
mov dword [0x473100], eax
call esi
mov edx, dword [0x473104]
push str.Create360FireWareStateFunction
push edx
mov dword [0x4730fc], eax
call esi
mov dword [0x4730f8], eax
mov eax, dword [0x473104]
push str.GetFireWallState
push eax
call esi
mov ecx, dword [0x473104]
push str.Create360FireWareStateFunction2
push ecx
mov dword [0x4730f4], eax
call esi
mov dword [0x4730f0], eax
mov eax, dword [0x473100]
pop esi
test eax, eax
je 0x405b9e
call eax
test eax, eax
je 0x405b9e
mov edx, dword [eax]
push eax
call dword [edx + 8]
test eax, eax
jne 0x405ba7
xor eax, eax
add esp, 0x800
ret
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
add esp, 0x800
ret
Function at 0x405bc0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
mov eax, dword [0x473100]
sub esp, 0x800
test eax, eax
jne 0x405cee
mov eax, dword [0x473104]
push esi
test eax, eax
jne 0x405c86
push edi
lea eax, [esp + 8]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 8]
push ecx
call edi
mov eax, dword [0x473108]
xor esi, esi
test eax, eax
jle 0x405c1d
lea edx, [esp + 8]
push edx
call edi
mov eax, dword [0x473108]
inc esi
cmp esi, eax
jl 0x405c0c
lea eax, [esp + 8]
push str.360Common.dll
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 8]
pop edi
test edx, edx
je 0x405c6e
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405c72
lea ecx, [esp + 4]
push ecx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x405c72
call fcn.00456be0
lea edx, [esp + 4]
push eax
push edx
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x405c7d
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x473104], eax
je 0x405ce4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov ecx, dword [0x473104]
push str.Get360ProductHistoryManager
push ecx
mov dword [0x473100], eax
call esi
mov edx, dword [0x473104]
push str.Create360FireWareStateFunction
push edx
mov dword [0x4730fc], eax
call esi
mov dword [0x4730f8], eax
mov eax, dword [0x473104]
push str.GetFireWallState
push eax
call esi
mov ecx, dword [0x473104]
push str.Create360FireWareStateFunction2
push ecx
mov dword [0x4730f4], eax
call esi
mov dword [0x4730f0], eax
mov eax, dword [0x473100]
pop esi
test eax, eax
je 0x405cfe
call eax
test eax, eax
je 0x405cfe
mov edx, dword [eax]
push eax
call dword [edx + 8]
test eax, eax
jne 0x405d07
xor eax, eax
add esp, 0x800
ret
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
add esp, 0x800
ret

Function at 0x405d20
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push edi
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
pop edi
cmp eax, 5
jne 0x405d65
mov eax, dword [esp + 8]
test eax, eax
jne 0x405d65
mov eax, 1
add esp, 0x114
ret
xor eax, eax
add esp, 0x114
ret

Function at 0x405d70
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push edi
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [esp + 8]
pop edi
cmp edx, 6
sbb eax, eax
inc eax
add esp, 0x114
ret
Function at 0x406030
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x4730e0]
sub esp, 0x800
test eax, eax
je 0x40604d
mov ecx, dword [0x4730e4]
test ecx, ecx
jne 0x406130
push esi
push edi
lea eax, [esp + 8]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 8]
push ecx
call edi
mov eax, dword [0x4730e8]
xor esi, esi
test eax, eax
jle 0x40608a
lea edx, [esp + 8]
push edx
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x406079
lea eax, [esp + 8]
push str.MiniUI.dll
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 8]
pop edi
test edx, edx
pop esi
je 0x4060dc
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4060e0
lea ecx, [esp]
push ecx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x4060e0
call fcn.00456be0
lea edx, [esp]
push eax
push edx
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x4060eb
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x4730e4], eax
jne 0x4060fb
add esp, 0x800
ret
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4730e0], eax
jne 0x406130
mov ecx, dword [0x4730e4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], 0
xor eax, eax
add esp, 0x800
ret
call eax
add esp, 0x800
ret
Function at 0x4079e0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1800
call fcn.00456620
push esi
mov esi, dword [esp + 0x180c]
test esi, esi
push edi
jne 0x407a02
pop edi
xor eax, eax
pop esi
add esp, 0x1800
ret
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
test eax, eax
je 0x4079f7
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x808]
push esi
rep stosd dword es:[edi], eax
mov word [esp + 0xc], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x407a8d
mov edx, dword [esp + 0x180c]
lea ecx, [esp + 0x808]
push 0x800
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x808]
push esi
lea edx, [esp + 0x80c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x808]
push 0x400
lea ecx, [esp + 0xc]
push eax
push ecx
jmp 0x407a98
push 0x400
lea edx, [esp + 0xc]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
add esp, 0x1800
ret
Function at 0x4092f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x473260]
sub esp, 0x800
test eax, eax
je 0x40930d
mov ecx, dword [0x4730e4]
test ecx, ecx
jne 0x4093d7
push esi
push edi
lea eax, [esp + 8]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 8]
push ecx
call edi
mov eax, dword [0x4730e8]
xor esi, esi
test eax, eax
jle 0x40934a
lea edx, [esp + 8]
push edx
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x409339
lea eax, [esp + 8]
push str.MiniUI.dll
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 8]
pop edi
test edx, edx
pop esi
je 0x40939c
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4093a0
lea ecx, [esp]
push ecx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x4093a0
call fcn.00456be0
lea edx, [esp]
push eax
push edx
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x4093ab
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x4730e4], eax
jne 0x4093bb
add esp, 0x800
ret
push str.GetMiniUI2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x473260], eax
jne 0x4093d7
add esp, 0x800
ret
call eax
add esp, 0x800
ret
Function at 0x40b2c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x459dec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x814], 1
je 0x40b2fe
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp + 0x10], ebx
cmp dword [ebp + 0x14], ebx
je 0x40b3ff
mov eax, dword [0x4730e0]
cmp eax, ebx
je 0x40b31c
cmp dword [0x4730e4], ebx
jne 0x40b3ec
push esi
push edi
lea ecx, [esp + 0x14]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x14]
push edx
call edi
mov eax, dword [0x4730e8]
xor esi, esi
cmp eax, ebx
jle 0x40b358
lea eax, [esp + 0x14]
push eax
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40b347
lea ecx, [esp + 0x14]
push str.MiniUI.dll
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
pop edi
test eax, eax
pop esi
je 0x40b3aa
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b3ae
lea edx, [esp + 0xc]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x40b3ae
call fcn.00456be0
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x40b3b9
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4730e4], eax
je 0x40b3fc
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x4730e0], eax
jne 0x40b3ec
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], ebx
jmp 0x40b3fc
call eax
cmp eax, ebx
je 0x40b3fc
mov edx, dword [eax]
lea ecx, [ebp + 0x14]
push ecx
push eax
call dword [edx + 0x58]
mov dword [ebp + 0x14], ebx
lea ecx, [ebp + 8]
mov byte [esp + 0x814], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 4]
mov dword [esp + 0x814], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x80c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x40c050
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x459f5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push ebx
mov ebx, ecx
push ebp
mov dword [esp + 8], ebx
mov ecx, dword [ebx + 0x28]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x814], ebp
je 0x40c08a
mov eax, dword [ecx]
call dword [eax]
mov dword [ebx + 0x28], ebp
cmp dword [ebx + 0x2c], ebp
je 0x40c18b
mov eax, dword [0x4730e0]
cmp eax, ebp
je 0x40c0a8
cmp dword [0x4730e4], ebp
jne 0x40c178
push esi
push edi
lea ecx, [esp + 0x14]
push 0x400
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x14]
push edx
call edi
mov eax, dword [0x4730e8]
xor esi, esi
cmp eax, ebp
jle 0x40c0e4
lea eax, [esp + 0x14]
push eax
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40c0d3
lea ecx, [esp + 0x14]
push str.MiniUI.dll
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
pop edi
test eax, eax
pop esi
je 0x40c136
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c13a
lea edx, [esp + 0xc]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x40c13a
call fcn.00456be0
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x40c145
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
mov dword [0x4730e4], eax
je 0x40c188
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [0x4730e0], eax
jne 0x40c178
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], ebp
jmp 0x40c188
call eax
cmp eax, ebp
je 0x40c188
mov edx, dword [eax]
lea ecx, [ebx + 0x2c]
push ecx
push eax
call dword [edx + 0x58]
mov dword [ebx + 0x2c], ebp
lea ecx, [ebx + 0x18]
mov dword [esp + 0x814], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x80c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x40f2f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45a1fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x814], 1
je 0x40f32e
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 0x1c], ebx
je 0x40f42f
mov eax, dword [0x4730e0]
cmp eax, ebx
je 0x40f34c
cmp dword [0x4730e4], ebx
jne 0x40f41c
push esi
push edi
lea ecx, [esp + 0x14]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x14]
push edx
call edi
mov eax, dword [0x4730e8]
xor esi, esi
cmp eax, ebx
jle 0x40f388
lea eax, [esp + 0x14]
push eax
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40f377
lea ecx, [esp + 0x14]
push str.MiniUI.dll
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
pop edi
test eax, eax
pop esi
je 0x40f3da
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f3de
lea edx, [esp + 0xc]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x40f3de
call fcn.00456be0
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x40f3e9
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4730e4], eax
je 0x40f42c
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x4730e0], eax
jne 0x40f41c
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], ebx
jmp 0x40f42c
call eax
cmp eax, ebx
je 0x40f42c
mov edx, dword [eax]
lea ecx, [ebp + 0x1c]
push ecx
push eax
call dword [edx + 0x58]
mov dword [ebp + 0x1c], ebx
lea ecx, [ebp + 0xc]
mov byte [esp + 0x814], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [esp + 0x814], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x80c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x412c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461988
push 0x456650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x206c
call fcn.00456620
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x830]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x830]
test eax, eax
je 0x412d59
xor ebx, ebx
mov word [ebp - 0x830], bx
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x412d5b
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x207c]
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x412d41
push 0x800
lea ecx, [ebp - 0x207c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x207c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea ecx, [ebp - 0x207c]
push ecx
lea edx, [ebp - 0x207c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x400
lea eax, [ebp - 0x207c]
push eax
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
jmp 0x412d5b
push 0x400
push esi
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
jmp 0x412d5b
xor ebx, ebx
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x1074]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1078], 0x44
lea ecx, [ebp - 0x1078]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x104c], 1
mov dx, word [ebp + 0x14]
mov word [ebp - 0x1048], dx
push 0x400
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x1030]
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
push 0x400
push 0x46dedc
lea edx, [ebp - 0x1030]
push edx
mov esi, dword [sym.imp.MSVCRT.dll_wcsncat]
call esi
push 0x400
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1030]
push ecx
call esi
add esp, 0x24
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x1078]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1030]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, ebx
je 0x412e46
cmp dword [ebp + 0x18], ebx
je 0x412e27
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0x24]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov edx, dword [ebp - 0x28]
push edx
call edi
jmp 0x412e46
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412fa0
Capabilities:
Check if file exists
Copy file
Create thread
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45a636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x4c]
lea edi, [esi + 0x4c]
push eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00414870
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], 0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412ff0
mov ecx, esi
call fcn.00413660
mov ecx, esi
call fcn.00413200
test eax, eax
mov dword [esi + 0x64], eax
jne 0x41300a
mov ecx, esi
call fcn.00413660
jmp 0x413153
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [esi + 0x50]
mov byte [esp + 0x34], 1
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413040
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
jmp 0x4130c4
mov eax, dword [edi]
lea edx, [esp + 0xc]
push eax
push 0
push edx
call fcn.00414870
mov eax, dword [esi + 0x50]
mov byte [esp + 0x40], 2
push eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00414870
add esp, 0x18
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 3
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
mov ecx, esi
call fcn.004143b0
test eax, eax
jne 0x4130b6
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call sub.MFC42u.DLL_CString::CString
push 0x10
call sub.MFC42u.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov byte [esp + 0x34], 4
je 0x4130f4
lea ecx, [edi + 8]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [edi + 0xc]
mov byte [esp + 0x34], 5
call sub.MFC42u.DLL_CString::CString_4
jmp 0x4130f6
xor edi, edi
lea eax, [esp + 8]
lea ecx, [edi + 8]
push eax
mov byte [esp + 0x38], 1
mov dword [edi + 4], esi
call sub.MFC42u.DLL_CString::operator
lea ecx, [esi + 0x54]
push ecx
lea ecx, [edi + 0xc]
call sub.MFC42u.DLL_CString::operator
mov edx, dword [esi + 0x8c]
lea eax, [esi + 0x88]
push eax
push 0
push edi
push 0x412e60
push 0
push 0
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, esi
mov dword [esi + 0x84], eax
call fcn.00414560
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4132a0
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
mov edi, ecx
lea eax, [esp + 4]
mov dword [esp + 4], 0
mov ecx, dword [edi + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4132fa
push esi
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], 0
pop esi
mov eax, 1
pop edi
pop ecx
ret
mov dword [edi + 0x40], 0
mov eax, 1
pop edi
pop ecx
ret
Function at 0x414740
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
mov eax, dword [0x473104]
sub esp, 0x800
test eax, eax
push esi
jne 0x414801
push edi
lea eax, [esp + 8]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 8]
push ecx
call edi
mov eax, dword [0x473108]
xor esi, esi
test eax, eax
jle 0x414790
lea edx, [esp + 8]
push edx
call edi
mov eax, dword [0x473108]
inc esi
cmp esi, eax
jl 0x41477f
lea eax, [esp + 8]
push str.360Common.dll
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 8]
pop edi
test edx, edx
je 0x4147e1
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4147e5
lea ecx, [esp + 4]
push ecx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x4147e5
call fcn.00456be0
lea edx, [esp + 4]
push eax
push edx
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x4147f0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x473104], eax
jne 0x414801
pop esi
add esp, 0x800
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov ecx, dword [0x473104]
push str.Get360ProductHistoryManager
push ecx
mov dword [0x473100], eax
call esi
mov edx, dword [0x473104]
push str.Create360FireWareStateFunction
push edx
mov dword [0x4730fc], eax
call esi
mov dword [0x4730f8], eax
mov eax, dword [0x473104]
push str.GetFireWallState
push eax
call esi
mov ecx, dword [0x473104]
push str.Create360FireWareStateFunction2
push ecx
mov dword [0x4730f4], eax
call esi
mov dword [0x4730f0], eax
mov eax, 1
pop esi
add esp, 0x800
ret
Function at 0x4194e0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push str.singleline
push str.Software360Safe
mov esi, ecx
push SysReAllocString
mov dword [esp + 0x28], edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x419554
mov ecx, dword [esi + 0xb4]
push ecx
mov ecx, esi
call fcn.00418bb0
push ecx
test edi, edi
mov ecx, esp
je 0x41953f
mov dword [esp + 0xc], esp
push str.onetab
call sub.MFC42u.DLL_CString::CString_1
mov ecx, esi
call fcn.004191b0
pop edi
pop esi
pop ecx
ret 4
mov dword [esp + 0xc], esp
push str.twotab
call sub.MFC42u.DLL_CString::CString_1
mov ecx, esi
call fcn.004191b0
pop edi
pop esi
pop ecx
ret 4