joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436260
Capabilities:
Check if file exists
Create directory

Disassembly:
push 8
mov eax, 0x4afa19
call fcn.00476610
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp + 8]
call fcn.004322f9
push 0x4d3cc0
lea ecx, [ebp + 8]
call fcn.00403b3b
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x4362fd
test ecx, ecx
jge 0x4362a3
push 0x80070057
call fcn.0040288a
movzx edx, word [eax]
cmp dx, 0x61
jb 0x4362b2
cmp dx, 0x7a
jbe 0x4362bb
add edx, 0xffffffbf
cmp dx, 0x19
ja 0x4362fd
cmp ecx, 1
jl 0x436299
movzx edx, word [eax + 2]
cmp dx, 0x3a
je 0x4362d9
lea ecx, [eax - 0x10]
call fcn.00402870
xor eax, eax
jmp 0x436376
cmp ecx, 2
jl 0x436299
movzx edx, word [eax + 4]
movzx esi, dx
cmp si, 0x5c
je 0x4362fd
cmp ecx, 2
jl 0x436299
movzx edx, dx
mov esi, 0x2f2f
cmp dx, si
jne 0x4362ca
xor edi, edi
test ecx, ecx
jle 0x43636b
push edi
lea ecx, [ebp + 8]
call fcn.00422ffa
cmp ax, 0x5c
jne 0x436362
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0040d61d
mov esi, dword [ebp - 0x10]
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x436356
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x43634a
cmp eax, 0x50
je 0x43634a
cmp eax, 0xb7
jne 0x43637e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00435f96
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402870
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x436303
lea ecx, [eax - 0x10]
call fcn.00402870
xor eax, eax
inc eax
call fcn.004766e8
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea ecx, [esi - 0x10]
call fcn.00402870
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
jmp 0x4362cd
Function at 0x436525
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, 0x4afaa3
call fcn.00476610
mov ebx, dword [ebp + 0x114]
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
call fcn.0043319f
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.00403c96
lea ecx, [ebp - 0x38]
call fcn.00436260
cmp eax, edi
jne 0x436651
push dword [ebp + 0x110]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4365f7
test al, 1
je 0x4365b1
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 0x4365cb
lea ecx, [ebp + 0x110]
call fcn.00414d79
push eax
call fcn.0043143f
pop ecx
jmp 0x4365f7
push dword [ebp + 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
cmp eax, edi
jne 0x4365f7
lea ecx, [ebp + 0x110]
call fcn.00414d79
push eax
call fcn.0043143f
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.00403c96
lea ecx, [ebp - 0x38]
call fcn.00436260
cmp eax, edi
jne 0x436651
lea ecx, [ebp - 0x38]
call fcn.0043620a
mov ecx, dword [ebp + 0x110]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
add ebp, 0x108
leave
ret
xor eax, eax
push pe_nt_image_headers32
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00475570
mov esi, 0x80
lea eax, [ebp]
push esi
push eax
call fcn.00401000
add esp, 0x14
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
lea eax, [ebp]
push eax
push dword [ebp + 0x110]
lea eax, [ebp - 0x10]
push 0x4bad34
push eax
mov byte [ebp - 4], 2
call fcn.00403b60
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 0x436710
lea eax, [ebp]
push eax
call fcn.0047600e
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 0x4366f6
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jne 0x4366fe
mov dword [ebp - 0x18], 1
jmp 0x4366fe
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 0x436718
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
mov edi, dword [ebp - 0x18]
jmp 0x436616
Function at 0x436747
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x10
mov eax, 0x4afaeb
call fcn.00476610
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x4368b3
mov esi, 0x4f9e18
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.0040284b
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.00460e88
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.00436525
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push esi
lea ecx, [ebp + 8]
call fcn.0040284b
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str.writefileerr_d
push eax
mov byte [ebp - 4], 1
call fcn.00403b60
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 0x436840
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0040284b
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push str.regfileerr_d
push eax
mov byte [ebp - 4], 2
call fcn.00403b60
mov esi, dword [ebp - 0x18]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp + 8]
push esi
call fcn.00403bfe
push str.QIBegin
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x436885
push str.MACHINESOFTWARE360Safe
call fcn.00430351
pop ecx
test eax, eax
jne 0x436891
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp + 0xc]
mov edi, eax
call fcn.0040284b
push edi
lea eax, [ebp + 0xc]
push str.regfileerr_d
push eax
mov byte [ebp - 4], 3
call fcn.00403b60
mov esi, dword [ebp + 0xc]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp + 8]
push esi
call fcn.00403bfe
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402870
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
call fcn.00401c8e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
call fcn.004766e8
ret 0xc
Function at 0x436e5e
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, 0x4afbb4
call fcn.00476610
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 0x436fba
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 0x436fad
inc dword [ebp - 0x14]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402530
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041038c
push 0x4d3cc0
lea eax, [ebp + 0x214]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403a6b
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.00403a6b
add esp, 0x18
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00402870
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.004322b8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0043321e
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.00430fe0
test al, al
jne 0x436f63
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00414df7
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push esi
push ecx
mov dword [ebp - 0x38], esp
mov ecx, esp
push eax
call fcn.00403c96
mov ecx, dword [ebp - 0x2c]
call fcn.00436e5e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x10], 0x104
call fcn.00402870
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00402870
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 0x436ed8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x214]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
add ebp, 0x20c
leave
ret 0xc
Function at 0x436ff6
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, 0x4afc0c
call fcn.00476610
mov edi, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
lea ecx, [ebp - 0x1c]
call fcn.00402530
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00443e93
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 1
call fcn.0045f3e8
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 0x43712b
jmp 0x437119
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402530
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00414d32
push 0x4b98e8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004102fa
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.00402870
test bl, bl
je 0x4370fe
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041f3af
sub esi, eax
dec esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00414d32
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 4
je 0x4370ef
lea ecx, [ebp - 0x14]
call fcn.0041038c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.0043643c
mov dword [eax], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00402870
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.00402870
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 4]
test eax, eax
jne 0x43705f
lea ecx, [ebp - 0x38]
call fcn.00414d93
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.00403c96
mov ecx, edi
call fcn.00436e5e
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x437188
push esi
lea ecx, [ebp - 0x38]
call fcn.00414dd2
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 0x437164
lea ecx, [ebp - 0x38]
call fcn.004150ed
push dword [ebp - 0x38]
call fcn.00472c4d
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004368bb
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
add ebp, 0x2ac
leave
ret
Function at 0x4374e0
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.00475570
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43755b
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.004755ea
leave
ret

Function at 0x437567
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0047600e
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.0047600e
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.0047600e
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.0047600e
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.0047600e
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.0047600e
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.0047600e
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.0047600e
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.0047600e
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 0x43768c
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x179c]
mov eax, 0x181c
call fcn.00476c90
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.00475570
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, 0x4bb2bc
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.00475826
pop ecx
pop ecx
test eax, eax
jge 0x43776a
push dword [ebp - 0x6c]
call fcn.0047600e
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.0047600e
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.00475570
add esp, 0xc
push 0x4bb290
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.00475570
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x40
lea eax, [ebp + 0xf98]
push eax
push 0x4d3fa0
mov edi, 0x4d5e78
push edi
mov esi, str.360lib
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0xf98]
push eax
call fcn.0047600e
pop ecx
test eax, eax
jne 0x4377e1
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.004755ea
add ebp, 0x179c
leave
ret 0x10
Function at 0x4377fe
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00476c90
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.00475570
push esi
lea eax, [ebp - 0x1804]
push edi
push eax
call fcn.00475570
push esi
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.00475570
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.004488af
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.004755ea
leave
ret 4

Function at 0x437a8d
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.00475570
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.004755ea
leave
ret
Function at 0x437ae8
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.00476c90
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 0x437c0b
test esi, esi
je 0x437c0b
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475570
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 0x437c0a
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437c0a
push 0x80
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x437b88
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.00475570
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 0x4bb3d8
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 0x437c0a
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.004755ea
leave
ret 8

Function at 0x437c7a
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 0x437d6d
test esi, esi
je 0x437d6d
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475570
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 0x437d6d
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x437cf7
and ebx, 0xfffffffe
test ebx, 0x4000
je 0x437d05
and ebx, 0xffffbfff
test bl, 2
je 0x437d0d
and ebx, 0xfffffffd
test ebx, 0x400
je 0x437d1b
and ebx, 0xfffffbff
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
pop ebx
je 0x437d44
cmp dword [ebp + 0x10], 0
jne 0x437d6d
lea eax, [ebp - 0x804]
push eax
call fcn.00430d71
pop ecx
jmp 0x437d6d
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
call esi
test eax, eax
jne 0x437d6d
lea eax, [ebp - 0x804]
push eax
call fcn.0043143f
pop ecx
lea eax, [ebp - 0x804]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004755ea
leave
ret