joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c342
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
call fcn.0041c51e
mov eax, dword [esp + 4]
call fcn.0041c57d
test eax, eax
jne 0x41c36f
call fcn.0040c7a0
push 0
push 0
add eax, 0x228
push 0x407
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0041c264
call fcn.0041c5cd
jmp 0x41c86e
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
mov eax, dword [ebp + 0x5ac]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x190], ax
xor ebx, ebx
lea eax, [ebp + 0x192]
push ebx
push eax
call fcn.00492200
add esp, 0xc
mov dword [ebp - 0x7c], 0x4f6f90
mov edi, 0x103
lea eax, [ebp + 0x190]
push eax
mov eax, dword [ebp - 0x7c]
push ebx
push ebx
push dword [eax - 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41c975
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x41c975
push esi
push ebx
cmp dword [eax - 4], ebx
je 0x41c935
xor eax, eax
mov word [ebp + 0x398], ax
lea eax, [ebp + 0x39a]
push eax
call fcn.00492200
push dword [ebp - 0x7c]
lea eax, [ebp + 0x190]
push eax
push 0x4d8598
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0048e74d
add esp, 0x20
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41c975
xor eax, eax
mov word [ebp + 0x398], ax
lea eax, [ebp + 0x39a]
push eax
call fcn.00492200
push dword [ebp - 0x7c]
lea eax, [ebp + 0x190]
push eax
push 0x4d8598
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0048e74d
lea eax, [ebp + 0x398]
push eax
call fcn.00479ece
add esp, 0x24
add dword [ebp - 0x7c], 0x210
cmp dword [ebp - 0x7c], 0x4f9cf0
jl 0x41c8c2
lea eax, [ebp + 0x190]
push eax
push ebx
push ebx
push 2
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
push esi
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.00492200
lea eax, [ebp + 0x190]
push eax
push str._s360
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0048e74d
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x80]
call fcn.0041c9f1
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0x5a4
leave
ret 4

Function at 0x41c37e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041c670
call fcn.0041c7e9
call fcn.0041cca1
call fcn.0041ccdd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360safebox.bak
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c40a
lea eax, [ebp - 0x20c]
push eax
call fcn.00479ece
pop ecx
call fcn.0048035b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c64c
leave
ret 4
Function at 0x41c48a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x78]
push 0
inc edi
push eax
mov dword [ebp - 0x7c], edi
call fcn.00492200
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safebox.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41c508
cmp word [ebp - 0x78], ax
je 0x41c508
push 0x104
lea eax, [ebp - 0x78]
push eax
lea eax, [ebx + 4]
push eax
call fcn.0048d090
add esp, 0xc
mov dword [ebx], edi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop edi
call fcn.0048c64c
add ebp, 0x194
leave
ret

Function at 0x41c5cd
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00492200
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.00492200
lea eax, [ebp - 0x20c]
push eax
push str._sMicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar360
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.0048e74d
add esp, 0x1c
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push str.taskbarunpin
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048c64c
leave
ret
Function at 0x41c670
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov eax, dword [ebp + 0x3a4]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], str.Update_safeboxup.exe
mov edi, 0x206
mov ebx, 0x4d8598
mov esi, 0x103
xor eax, eax
cmp dword [ebp - 0x7c], eax
je 0x41c7ab
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x208], eax
push edi
push eax
lea eax, [ebp + 0x192]
push eax
je 0x41c776
xor ecx, ecx
mov word [ebp + 0x190], cx
call fcn.00492200
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
add eax, 4
push eax
push ebx
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.0048e74d
add esp, 0x20
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41c7ab
push edi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00492200
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
add eax, 4
push eax
push str._s_s.bak
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0048e74d
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c751
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41c7ab
push 4
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41c7ab
xor ecx, ecx
mov word [ebp + 0x190], cx
call fcn.00492200
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
add eax, 4
push eax
push ebx
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.0048e74d
lea eax, [ebp + 0x190]
push eax
call fcn.00479ece
add esp, 0x24
add dword [ebp - 0x7c], 0x20c
cmp dword [ebp - 0x7c], 0x509ed0
jl 0x41c6ad
mov eax, dword [ebp - 0x80]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x398]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0048c64c
add ebp, 0x39c
leave
ret 4

Function at 0x41c7e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f51d0]
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.00492200
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41c860
push 0x103
lea eax, [ebp - 0x20c]
push 0x4d9a68
push eax
call fcn.0048fd69
mov eax, 0x4d84dc
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0047a21d
add esp, 0x1c
jmp 0x41c862
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048c64c
leave
ret
Function at 0x41c86e
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
call fcn.0041c51e
mov eax, dword [esp + 4]
call fcn.0041c57d
test eax, eax
jne 0x41c36f
call fcn.0040c7a0
push 0
push 0
add eax, 0x228
push 0x407
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0041c264
call fcn.0041c5cd
jmp 0x41c86e
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
mov eax, dword [ebp + 0x5ac]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x190], ax
xor ebx, ebx
lea eax, [ebp + 0x192]
push ebx
push eax
call fcn.00492200
add esp, 0xc
mov dword [ebp - 0x7c], 0x4f6f90
mov edi, 0x103
lea eax, [ebp + 0x190]
push eax
mov eax, dword [ebp - 0x7c]
push ebx
push ebx
push dword [eax - 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41c975
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x41c975
push esi
push ebx
cmp dword [eax - 4], ebx
je 0x41c935
xor eax, eax
mov word [ebp + 0x398], ax
lea eax, [ebp + 0x39a]
push eax
call fcn.00492200
push dword [ebp - 0x7c]
lea eax, [ebp + 0x190]
push eax
push 0x4d8598
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0048e74d
add esp, 0x20
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41c975
xor eax, eax
mov word [ebp + 0x398], ax
lea eax, [ebp + 0x39a]
push eax
call fcn.00492200
push dword [ebp - 0x7c]
lea eax, [ebp + 0x190]
push eax
push 0x4d8598
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0048e74d
lea eax, [ebp + 0x398]
push eax
call fcn.00479ece
add esp, 0x24
add dword [ebp - 0x7c], 0x210
cmp dword [ebp - 0x7c], 0x4f9cf0
jl 0x41c8c2
lea eax, [ebp + 0x190]
push eax
push ebx
push ebx
push 2
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
push esi
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.00492200
lea eax, [ebp + 0x190]
push eax
push str._s360
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0048e74d
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x80]
call fcn.0041c9f1
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0x5a4
leave
ret 4
Function at 0x41ccdd
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4f2a
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x4f51d0]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov eax, dword [0x4f51d0]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
and dword [esp + 0x20], 0
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.00492200
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [esp + 0x28]
push eax
push dword [0x50f344]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str...SafeBoxTray.exe
lea eax, [esp + 0x28]
push eax
call esi
xor eax, eax
push edi
push eax
mov word [esp + 0x234], ax
lea eax, [esp + 0x236]
push eax
call fcn.00492200
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x208
lea eax, [esp + 0x234]
push eax
call fcn.0041be83
push str...launcher.exe
lea eax, [esp + 0x230]
push eax
call esi
call fcn.0045db63
cmp eax, 3
jge 0x41ce9c
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ecx, 0x50f384
lea esi, [esp + 0x10]
mov dword [esp + 0x650], eax
call fcn.004080cd
lea eax, [esp + 0x24]
push eax
mov eax, esi
push str.__s___r
push eax
mov byte [esp + 0x65c], 1
call fcn.0040d022
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0xf003f
lea ecx, [esp + 0x1c]
call fcn.0040eb0e
test eax, eax
jne 0x41ce80
push edi
push eax
mov word [esp + 0x43c], ax
lea eax, [esp + 0x43e]
push eax
call fcn.00492200
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov ebx, str.360Safebox
push ebx
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x24]
lea edi, [esp + 0x43c]
call fcn.0041d82b
test eax, eax
jne 0x41ce80
mov eax, edi
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41ce66
mov dword [esp + 0x20], 1
jmp 0x41ce75
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0040e5d0
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea esi, [esp + 0x14]
call fcn.0040ec6e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00408396
call fcn.0040ec6e
jmp 0x41ced1
mov dword [esp + 0x1c], vtable.CTaskSchdMgr.0
lea eax, [esp + 0x22c]
push eax
mov esi, str.Safebox_Startup
push esi
mov dword [esp + 0x658], 2
call fcn.00465df8
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x20]
push eax
call fcn.004663cf
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.0048c64c
mov esp, ebp
pop ebp
ret
Function at 0x41d82b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d88f
cmp dword [ebp + 0xc], 1
je 0x41d867
cmp dword [ebp + 0xc], 2
je 0x41d867
push 0xd
pop eax
jmp 0x41d88f
mov eax, dword [ebp - 4]
test edi, edi
je 0x41d889
test eax, eax
je 0x41d884
test al, 1
jne 0x41d862
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41d889
jmp 0x41d862
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x41f68a
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push edi
test esi, esi
je 0x41f6e5
cmp word [esi], 0
je 0x41f6e5
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41f6e1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f6c0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
jne 0x41f6e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41f6e1
xor eax, eax
inc eax
pop edi
ret
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x41f7e8
Capabilities:
Get storage device properties

Disassembly:
push ebp
sub esp, 0x80c
lea ebp, [esp - 4]
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x80c], eax
push 0xc
mov eax, 0x4c3e3a
call fcn.00492deb
mov esi, ecx
push 0x4da3e4
xor ecx, ecx
call fcn.00404aaa
cmp eax, 1
je 0x41f855
push 0x4da3ec
xor ecx, ecx
call fcn.00404aaa
cmp eax, 1
je 0x41f855
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80c]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0x810
leave
ret
push 2
pop ecx
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00404b49
lea eax, [ebp - 0x14]
push 0x4da3f4
xor edi, edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00422f51
mov esi, 0x800
push esi
lea eax, [ebp + 0xc]
push edi
push eax
mov dword [ebp - 0x18], edi
call fcn.00492200
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push 0x20000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41f8c9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
jmp 0x41f830
push edi
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push ebx
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41f916
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
mov eax, edi
jmp 0x41f832
cmp dword [ebp + 0x28], 4
je 0x41f922
cmp dword [ebp + 0x28], 7
jne 0x41f8f2
xor edi, edi
inc edi
jmp 0x41f8f2
Function at 0x41f927
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41f9cd
push edi
push esi
call fcn.00490697
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x41f95e
xor eax, eax
jmp 0x41f9cf
push 6
push esi
call fcn.00490697
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x41f95a
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00492200
add esp, 0xc
push str.SM_testdir.dat
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push 0x82
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x41f9c0
xor edi, edi
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0048c64c
leave
ret

Function at 0x41fec9
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 8
mov eax, 0x4c4e7d
call fcn.00492deb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14d0], 0
je 0x41feee
cmp dword [eax + 0x14fc], 0
je 0x41fff0
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_safebox
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, 0x50f384
lea esi, [ebp - 0x10]
call fcn.004080cd
and dword [ebp - 4], 0
push 0x4d8a80
mov eax, esi
push 0x4d8558
push eax
call fcn.0040d022
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0xc
add eax, eax
push eax
push ecx
push 1
push str.DisplayName
push ebx
push edi
call esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayIcon
push ebx
push edi
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push 0x4d8dcc
add ecx, 0x50
push eax
call fcn.00422ef9
lea ecx, [ebp - 0x14]
push 0x4da4d0
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00422ef9
mov eax, dword [ebp + 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.UninstallString
push ebx
push edi
call esi
push 0x14
push str.6.0.0.1052
push 1
push str.DisplayVersion
push ebx
push edi
call esi
push 0xe
push 0x4da540
push 1
push str.Publisher
push ebx
push edi
call esi
push 0x34
push str.http:__www.360.cn_safebox_
push 1
push str.HelpLink
push ebx
push edi
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
call fcn.00492ec3
ret 4
Function at 0x41fff8
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
cmp dword [ecx + 0x14d0], 0
je 0x42000a
cmp dword [ecx + 0x14fc], 0
je 0x42000f
jmp 0x420010
ret
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0xc
mov eax, 0x4c7e46
call fcn.00492deb
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov ebx, ecx
call fcn.00492200
xor eax, eax
push esi
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.00492200
mov eax, dword [ebx + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
add esp, 0x18
mov edi, 0x104
push edi
lea ecx, [ebp]
push ecx
push eax
call esi
mov ebx, dword [ebx + 0x4c]
push edi
lea eax, [ebp + 0x208]
push eax
push ebx
call esi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408620
and dword [ebp - 4], 0
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408620
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add ecx, ecx
push ecx
push eax
push 1
push 0x4d84dc
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_safebox.exe
push esi
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.Path
push esi
push ebx
call edi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00404adb
cmp eax, 0xffffffff
je 0x420127
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
push ecx
xor ecx, ecx
call fcn.00422e78
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.PathSub
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_safebox.exe
push ebx
call edi
lea eax, [esi - 0x10]
call fcn.00408396
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0x414
leave
ret
Function at 0x420010
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
cmp dword [ecx + 0x14d0], 0
je 0x42000a
cmp dword [ecx + 0x14fc], 0
je 0x42000f
jmp 0x420010
ret
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0xc
mov eax, 0x4c7e46
call fcn.00492deb
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov ebx, ecx
call fcn.00492200
xor eax, eax
push esi
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.00492200
mov eax, dword [ebx + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
add esp, 0x18
mov edi, 0x104
push edi
lea ecx, [ebp]
push ecx
push eax
call esi
mov ebx, dword [ebx + 0x4c]
push edi
lea eax, [ebp + 0x208]
push eax
push ebx
call esi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408620
and dword [ebp - 4], 0
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408620
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add ecx, ecx
push ecx
push eax
push 1
push 0x4d84dc
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_safebox.exe
push esi
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.Path
push esi
push ebx
call edi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00404adb
cmp eax, 0xffffffff
je 0x420127
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
push ecx
xor ecx, ecx
call fcn.00422e78
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.PathSub
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_safebox.exe
push ebx
call edi
lea eax, [esi - 0x10]
call fcn.00408396
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0x414
leave
ret