joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4367dc
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x4afa22
call fcn.004764c0
mov ebx, dword [ebp + 0x114]
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
call fcn.0043337c
push ebx
push ecx
lea eax, [ebp + 0x110]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 1
call fcn.00403cb9
lea ecx, [ebp - 0x38]
call fcn.00436517
cmp eax, edi
jne 0x436908
push dword [ebp + 0x110]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4368ae
test al, 1
je 0x436868
and eax, 0xfffffffe
push eax
push dword [ebp + 0x110]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x10], 0x10
je 0x436882
lea ecx, [ebp + 0x110]
call fcn.00414e5c
push eax
call fcn.0043158d
pop ecx
jmp 0x4368ae
push dword [ebp + 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
cmp eax, edi
jne 0x4368ae
lea ecx, [ebp + 0x110]
call fcn.00414e5c
push eax
call fcn.0043158d
pop ecx
push dword [ebp + 0x110]
call esi
push ebx
push ecx
lea eax, [ebp + 0x110]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00403cb9
lea ecx, [ebp - 0x38]
call fcn.00436517
cmp eax, edi
jne 0x436908
lea ecx, [ebp - 0x38]
call fcn.004364c1
mov ecx, dword [ebp + 0x110]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x108
leave
ret
xor eax, eax
push 0x100
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00475420
mov esi, 0x80
lea eax, [ebp]
push esi
push eax
call fcn.00401000
add esp, 0x14
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.004027fb
lea eax, [ebp]
push eax
push dword [ebp + 0x110]
lea eax, [ebp - 0x10]
push 0x4b9d98
push eax
mov byte [ebp - 4], 2
call fcn.00403b2e
add esp, 0x10
push edi
push esi
push 2
push edi
push 2
push 0x120116
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4369c7
lea eax, [ebp]
push eax
call fcn.00475ebe
pop ecx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp]
push eax
push esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4369ad
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jne 0x4369b5
mov dword [ebp - 0x18], 1
jmp 0x4369b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4369cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
mov edi, dword [ebp - 0x18]
jmp 0x4368cd
Function at 0x4369fe
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x10
mov eax, 0x4afa6a
call fcn.004764c0
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x436b6a
mov esi, 0x4f9e00
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.004027fb
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.00460be6
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.004367dc
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push esi
lea ecx, [ebp + 8]
call fcn.004027fb
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str.writefileerr_d
push eax
mov byte [ebp - 4], 1
call fcn.00403b2e
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 4
mov dword [eax], ebx
lea eax, [ebp - 0x1c]
push eax
push 4
push str.QIBegin
mov ebx, str.SOFTWARE360Safe
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x436af7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.004027fb
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push str.regfileerr_d
push eax
mov byte [ebp - 4], 2
call fcn.00403b2e
mov esi, dword [ebp - 0x18]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp + 8]
push esi
call fcn.00403c21
push str.QIBegin
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x436b3c
push str.MACHINESOFTWARE360Safe
call fcn.00430451
pop ecx
test eax, eax
jne 0x436b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp + 0xc]
mov edi, eax
call fcn.004027fb
push edi
lea eax, [ebp + 0xc]
push str.regfileerr_d
push eax
mov byte [ebp - 4], 3
call fcn.00403b2e
mov esi, dword [ebp + 0xc]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp + 8]
push esi
call fcn.00403c21
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402820
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
call fcn.00401c3e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402820
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402820
call fcn.00476598
ret 0xc
Function at 0x43712e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x34
mov eax, 0x4afb33
call fcn.004764c0
mov eax, dword [ebp + 0x21c]
mov esi, dword [ebp + 0x218]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x214]
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43728a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x104
push ebx
jmp 0x43727d
inc dword [ebp - 0x14]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004024e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004103e5
push 0x4d2f80
lea eax, [ebp + 0x214]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403a39
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.00403a39
add esp, 0x18
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00402820
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.004323ca
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.004333fb
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.0043110e
test al, al
jne 0x437233
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00414eda
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push esi
push ecx
mov dword [ebp - 0x38], esp
mov ecx, esp
push eax
call fcn.00403cb9
mov ecx, dword [ebp - 0x2c]
call fcn.0043712e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x10], 0x104
call fcn.00402820
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00402820
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4371a8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x214]
add ecx, 0xfffffff0
call fcn.00402820
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x20c
leave
ret 0xc
Function at 0x4372c6
Capabilities:
Delete registry key

Disassembly:
push ebp
sub esp, 0x2a8
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x2a8], eax
push 0x4c
mov eax, 0x4afb8b
call fcn.004764c0
mov edi, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
lea ecx, [ebp - 0x1c]
call fcn.004024e0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00436da9
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 1
call fcn.0045f27d
and dword [ebp - 0x18], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4373fb
jmp 0x4373e9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004024e0
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00414e15
push 0x4b88e8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00410353
mov ecx, dword [ebp - 0x20]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 2
call fcn.00402820
test bl, bl
je 0x4373ce
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041f4e2
sub esi, eax
dec esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00414e15
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 4
je 0x4373bf
lea ecx, [ebp - 0x14]
call fcn.004103e5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.004366f3
mov dword [eax], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00402820
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00402820
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 4]
test eax, eax
jne 0x43732f
lea ecx, [ebp - 0x38]
call fcn.00414e76
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 5
call fcn.00403cb9
mov ecx, edi
call fcn.0043712e
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x437458
push esi
lea ecx, [ebp - 0x38]
call fcn.00414eb5
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x437434
lea ecx, [ebp - 0x38]
call fcn.004151c7
push dword [ebp - 0x38]
call fcn.00472b5b
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00436b72
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402820
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2a8]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x2ac
leave
ret
Function at 0x4377ba
Capabilities:
Delete file
Delete registry value
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.360safeuninst
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x437835
push str.remove360.bat
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret

Function at 0x437841
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.00475ebe
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ecx
add eax, eax
push eax
push dword [esp + 0x18]
xor ebp, ebp
inc ebp
push ebp
push str.adcount
mov ebx, str.Software360SafeLiveUp
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
push dword [esp + 0x18]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x1c]
push ebp
push str.plugcount
push ebx
push edi
call esi
push dword [esp + 0x1c]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x20]
push ebp
push str.stylecount
push ebx
push edi
call esi
push dword [esp + 0x20]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x24]
push ebp
push str.new0
push ebx
push edi
call esi
push dword [esp + 0x24]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x28]
push ebp
push str.new1
push ebx
push edi
call esi
push dword [esp + 0x28]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x2c]
push ebp
push str.new2
push ebx
push edi
call esi
push dword [esp + 0x2c]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x30]
push ebp
push str.ctext
push ebx
push edi
call esi
push dword [esp + 0x30]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x34]
push ebp
push str.curl
push ebx
push edi
call esi
push dword [esp + 0x34]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [esp + 0x38]
push ebp
push str.urlver
push ebx
push edi
call esi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0x24
Function at 0x437966
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x179c]
mov eax, 0x181c
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1798], eax
mov eax, dword [ebp + 0x17a4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x17a8]
push ebx
push esi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x17ac]
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x17b0]
mov esi, 0x800
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x798]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x798]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.libver
mov ebx, 0x4ba31c
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push dword [ebp - 0x6c]
lea eax, [ebp + 0x798]
push eax
call fcn.004756d6
pop ecx
pop ecx
test eax, eax
jge 0x437a44
push dword [ebp - 0x6c]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [ebp - 0x6c]
push 1
push str.libver
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x70]
call fcn.00475ebe
pop ecx
add eax, eax
push eax
push dword [ebp - 0x70]
push 1
push str.libdate
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00475420
add esp, 0xc
push 0x4ba2f0
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
lea eax, [ebp + 0xf98]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x40
lea eax, [ebp + 0xf98]
push eax
push 0x4d3260
mov edi, 0x4d5138
push edi
mov esi, str.360lib
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0xf98]
push eax
call fcn.00475ebe
pop ecx
test eax, eax
jne 0x437abb
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x80]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp + 0x1798]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0047549a
add ebp, 0x179c
leave
ret 0x10
Function at 0x437ad8
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.00475420
push esi
lea eax, [ebp - 0x1804]
push edi
push eax
call fcn.00475420
push esi
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.00475420
add esp, 0x24
push 0x208
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.360SoftMgr.cpl
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1804]
push eax
call esi
push str.SoftMgr360SoftMgr.cpl
push ebx
lea eax, [ebp - 0x1004]
push eax
call esi
push edi
push edi
push edi
lea eax, [ebp - 0x1804]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00448508
mov esi, eax
add esp, 0x14
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret 4

Function at 0x437d67
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
mov esi, ecx
call fcn.00475420
add esp, 0xc
push str.360setupscan.exe
push dword [esi + 8]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret
Function at 0x437dc2
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x437ee5
test esi, esi
je 0x437ee5
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475420
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
call ebx
test eax, eax
jne 0x437ee4
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437ee4
push 0x80
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x437e62
lea eax, [ebp - 0x804]
push eax
call ebx
mov ecx, 0x200
lea esi, [ebp - 0x804]
lea edi, [ebp - 0x1804]
rep movsd dword es:[edi], dword [esi]
push 0x800
xor esi, esi
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1004]
push eax
push esi
push 0x4ba438
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x437ee4
push 4
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret 8

Function at 0x437f55
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x438048
test esi, esi
je 0x438048
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475420
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438048
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x437fd2
and ebx, 0xfffffffe
test ebx, 0x4000
je 0x437fe0
and ebx, 0xffffbfff
test bl, 2
je 0x437fe8
and ebx, 0xfffffffd
test ebx, 0x400
je 0x437ff6
and ebx, 0xfffffbff
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
pop ebx
je 0x43801f
cmp dword [ebp + 0x10], 0
jne 0x438048
lea eax, [ebp - 0x804]
push eax
call fcn.00430e2d
pop ecx
jmp 0x438048
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
call esi
test eax, eax
jne 0x438048
lea eax, [ebp - 0x804]
push eax
call fcn.0043158d
pop ecx
lea eax, [ebp - 0x804]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret
Function at 0x438250
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x7c]
push eax
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jl 0x4382c2
lea eax, [ebp - 0x80]
push eax
push 0x25
push 0
call ebx
test eax, eax
jl 0x4382b9
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x10]
call fcn.00402766
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x438308
lea eax, [ebp - 0x80]
push eax
push 0x24
push 0
call ebx
test eax, eax
jl 0x4382ff
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x14]
call fcn.00402766
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x43834e
lea eax, [ebp - 0x80]
push eax
push 2
push 0
call ebx
test eax, eax
jl 0x438345
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x18]
call fcn.00402766
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x438394
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call ebx
test eax, eax
jl 0x43838b
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x1c]
call fcn.00402766
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4383da
lea eax, [ebp - 0x80]
push eax
push 0x15
push 0
call ebx
test eax, eax
jl 0x4383d1
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x20]
call fcn.00402766
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x194
leave
ret