joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4373a0
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 [0x4ed820]
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.004701a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43741b
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.0047021a
leave
ret

Function at 0x437427
Capabilities:
Set registry value

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

Disassembly:
push ebp
lea ebp, [esp - 0x179c]
mov eax, 0x181c
call fcn.00471870
mov eax, dword [0x4ed820]
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.004701a0
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, 0x4b520c
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.00470456
pop ecx
pop ecx
test eax, eax
jge 0x43762a
push dword [ebp - 0x6c]
call fcn.00470c3e
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.00470c3e
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.004701a0
add esp, 0xc
push 0x4b51e0
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.004701a0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x40
lea eax, [ebp + 0xf98]
push eax
push 0x4cdf90
mov edi, 0x4cfe70
push edi
mov esi, str.360lib
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0xf98]
push eax
call fcn.00470c3e
pop ecx
test eax, eax
jne 0x4376a1
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.0047021a
add ebp, 0x179c
leave
ret 0x10
Function at 0x4376be
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00471870
mov eax, dword [0x4ed820]
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.004701a0
push esi
lea eax, [ebp - 0x1804]
push edi
push eax
call fcn.004701a0
push esi
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.004701a0
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.00445b90
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.0047021a
leave
ret 4

Function at 0x43794d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4ed820]
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.004701a0
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.0047021a
leave
ret
Function at 0x4379a8
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.00471870
mov eax, dword [0x4ed820]
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 0x437acb
test esi, esi
je 0x437acb
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004701a0
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 0x437aca
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437aca
push 0x80
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x437a48
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.004701a0
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 0x4b5328
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 0x437aca
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.0047021a
leave
ret 8

Function at 0x437ba8
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 [0x4ed820]
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 0x437c9b
test esi, esi
je 0x437c9b
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004701a0
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 0x437c9b
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x437c25
and ebx, 0xfffffffe
test ebx, 0x4000
je 0x437c33
and ebx, 0xffffbfff
test bl, 2
je 0x437c3b
and ebx, 0xfffffffd
test ebx, 0x400
je 0x437c49
and ebx, 0xfffffbff
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
pop ebx
je 0x437c72
cmp dword [ebp + 0x10], 0
jne 0x437c9b
lea eax, [ebp - 0x804]
push eax
call fcn.00430998
pop ecx
jmp 0x437c9b
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
call esi
test eax, eax
jne 0x437c9b
lea eax, [ebp - 0x804]
push eax
call fcn.0043114f
pop ecx
lea eax, [ebp - 0x804]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047021a
leave
ret
Function at 0x437f26
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4ed820]
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 0x437f98
lea eax, [ebp - 0x80]
push eax
push 0x25
push 0
call ebx
test eax, eax
jl 0x437f8f
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x10]
call fcn.0040285e
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 0x437fde
lea eax, [ebp - 0x80]
push eax
push 0x24
push 0
call ebx
test eax, eax
jl 0x437fd5
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x14]
call fcn.0040285e
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 0x438024
lea eax, [ebp - 0x80]
push eax
push 2
push 0
call ebx
test eax, eax
jl 0x43801b
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x18]
call fcn.0040285e
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 0x43806a
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call ebx
test eax, eax
jl 0x438061
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x1c]
call fcn.0040285e
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 0x4380b0
lea eax, [ebp - 0x80]
push eax
push 0x15
push 0
call ebx
test eax, eax
jl 0x4380a7
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x20]
call fcn.0040285e
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.0047021a
add ebp, 0x194
leave
ret
Function at 0x4381ed
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x4382ae
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4382ae
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push str.SelfProtectAPI2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x2c]
call fcn.0040285e
push ebx
lea ecx, [edi + 0x30]
call fcn.0040285e
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047021a
leave
ret 4

Function at 0x43836c
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4aa9de
call fcn.004711ef
mov ebx, dword [ebp + 0x80c]
test ebx, ebx
jne 0x4383a1
xor eax, eax
jmp 0x438445
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
xor edi, edi
push str.SOFTWAREKasperskyLabSetupFolders
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x43839a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004025d8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041558e
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00432033
lea ecx, [ebp - 0x10]
call fcn.004155f6
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00437cf7
push str.avp.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x438438
xor edi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040290e
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 + 0x800]
xor ecx, ebp
call fcn.0047021a
add ebp, 0x804
leave
ret 4
Function at 0x438dcc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
mov edi, ecx
call fcn.004701a0
add esp, 0xc
push str.safemonSelfProtectAPI2.dll
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
mov ecx, edi
call fcn.004381ed
xor esi, esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x438e41
inc esi
cmp esi, 0xa
jl 0x438e1f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047021a
leave
ret 4
Function at 0x43927d
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x4aabc2
call fcn.004711ef
mov edi, dword [ebp + 0x41c]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x208], ax
xor ebx, ebx
lea eax, [ebp + 0x20a]
push ebx
push eax
call fcn.004701a0
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.004701a0
xor esi, esi
inc esi
add esp, 0x18
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x1c], esi
call fcn.0046f612
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00430903
test eax, eax
jne 0x43941c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.RULE_360Safe
push str.SYSTEMCurrentControlSetServices360SelfProtection
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
je 0x439365
push str.error___Is360SafeUnique_____SHGetValue_______n
call fcn.00404d3e
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xd]
call fcn.0044385b
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 + 0x410]
xor ecx, ebp
call fcn.0047021a
add ebp, 0x414
leave
ret
xor eax, eax
cmp ax, word [ebp + 0x208]
jne 0x439377
push str.error___Is360SafeUnique____
jmp 0x43932e
lea eax, [ebp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43939c
lea eax, [ebp + 0x210]
push eax
push str.error___Is360SafeUnique_____RULE_360Safe
call fcn.00404d3e
pop ecx
jmp 0x439333
lea eax, [ebp]
push eax
lea eax, [ebp + 0x210]
push eax
lea ecx, [ebp - 0xd]
call fcn.00450c24
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4393d4
push str.error___Is360SafeUnique_____RuleFile.GetProtectPath______n
call fcn.00404d3e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0044385b
mov eax, ebx
jmp 0x439342
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43941c
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x43941c
mov dword [ebp - 0x14], esi
cmp edi, ebx
je 0x43941c
cmp dword [ebp + 0x420], ebx
jle 0x43941c
lea eax, [ebp]
push eax
push dword [ebp + 0x420]
push edi
call fcn.0040237f
push edi
push str.GetPathViaSelfProtect__s
call fcn.00404d3e
pop ecx
pop ecx
mov ebx, dword [ebp - 0x14]
jmp 0x4393c1
Function at 0x43946f
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x104
cmp eax, edi
je 0x439508
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push edi
push eax
push edi
mov dword [ebp - 0x74], edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x439508
cmp dword [ebp - 0x74], edi
je 0x439508
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x439508
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x80]
push edi
call esi
test eax, eax
je 0x439501
mov eax, ebx
jmp 0x43950a
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047021a
add ebp, 0x19c
leave
ret 4

Function at 0x43958f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x439605
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x439605
push edi
mov edi, dword [ebp - 4]
dec edi
js 0x439604
push esi
mov esi, edi
shl esi, 5
mov eax, dword [ebp - 8]
add eax, esi
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4395fb
cmp dword [ebp + 0x10], 0
je 0x4395f1
cmp dword [eax + 0x14], 0
jne 0x4395fb
push dword [ebp + 0x10]
add eax, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_GetTrusteeNameW]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4395fb
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
sub esi, 0x20
test edi, edi
jge 0x4395c0
pop esi
pop edi
leave
ret 0xc
Function at 0x4397bb
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
mov eax, dword [ebp + 0x1c8]
push ebx
mov ebx, dword [ebp + 0x1d4]
push edi
xor edi, edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
cmp eax, edi
jne 0x4397f7
xor eax, eax
jmp 0x4398e1
cmp ebx, edi
jne 0x439817
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4397f0
lea ebx, [ebp - 0x4c]
push esi
lea eax, [ebp - 0x58]
push eax
push edi
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 4
push dword [ebp + 0x1cc]
xor esi, esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x4398de
cmp dword [ebp + 0x1d0], 2
je 0x439856
cmp dword [ebp + 0x1d0], 1
jne 0x439864
mov ecx, dword [ebp - 0x60]
push ebx
push 3
push dword [ebp - 0x54]
call fcn.00439609
push 0x20
lea eax, [ebp - 0x80]
push edi
push eax
mov dword [ebp - 0x50], edi
call fcn.004701a0
add esp, 0xc
push 3
push dword [ebp + 0x1d0]
lea eax, [ebp - 0x80]
push dword [ebp + 0x1d8]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x80]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x4398d4
push edi
push dword [ebp - 0x50]
push edi
push edi
push 4
push dword [ebp + 0x1cc]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x50], edi
je 0x4398d4
push dword [ebp - 0x50]
call ebx
cmp dword [ebp - 0x58], edi
je 0x4398de
push dword [ebp - 0x58]
call ebx
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x1bc]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047021a
add ebp, 0x1c0
leave
ret 0x14