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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00476b30
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.00475410
push esi
lea eax, [ebp - 0x1804]
push edi
push eax
call fcn.00475410
push esi
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.00475410
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.00447f44
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.0047548a
leave
ret 4

Function at 0x437cf3
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.00475410
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.0047548a
leave
ret
Function at 0x437d4e
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.00476b30
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 0x437e71
test esi, esi
je 0x437e71
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475410
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 0x437e70
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437e70
push 0x80
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x437dee
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.00475410
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 0x4ba410
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 0x437e70
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.0047548a
leave
ret 8

Function at 0x437ee0
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 0x437fd3
test esi, esi
je 0x437fd3
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475410
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 0x437fd3
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x437f5d
and ebx, 0xfffffffe
test ebx, 0x4000
je 0x437f6b
and ebx, 0xffffbfff
test bl, 2
je 0x437f73
and ebx, 0xfffffffd
test ebx, 0x400
je 0x437f81
and ebx, 0xfffffbff
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
pop ebx
je 0x437faa
cmp dword [ebp + 0x10], 0
jne 0x437fd3
lea eax, [ebp - 0x804]
push eax
call fcn.00430ecb
pop ecx
jmp 0x437fd3
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
call esi
test eax, eax
jne 0x437fd3
lea eax, [ebp - 0x804]
push eax
call fcn.00431588
pop ecx
lea eax, [ebp - 0x804]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047548a
leave
ret
Function at 0x4381db
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 0x43824d
lea eax, [ebp - 0x80]
push eax
push 0x25
push 0
call ebx
test eax, eax
jl 0x438244
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x10]
call fcn.00402894
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 0x438293
lea eax, [ebp - 0x80]
push eax
push 0x24
push 0
call ebx
test eax, eax
jl 0x43828a
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x14]
call fcn.00402894
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 0x4382d9
lea eax, [ebp - 0x80]
push eax
push 2
push 0
call ebx
test eax, eax
jl 0x4382d0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x18]
call fcn.00402894
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 0x43831f
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call ebx
test eax, eax
jl 0x438316
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x1c]
call fcn.00402894
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 0x438365
lea eax, [ebp - 0x80]
push eax
push 0x15
push 0
call ebx
test eax, eax
jl 0x43835c
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x20]
call fcn.00402894
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.0047548a
add ebp, 0x194
leave
ret
Function at 0x4384a2
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x438563
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438563
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.00475410
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.00475410
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.00402894
push ebx
lea ecx, [edi + 0x30]
call fcn.00402894
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047548a
leave
ret 4

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

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4b3a59
call fcn.004764b0
mov ebx, dword [ebp + 0x80c]
test ebx, ebx
jne 0x438656
xor eax, eax
jmp 0x4386fa
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.00475410
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 0x43864f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040260e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041590d
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0043241a
lea ecx, [ebp - 0x10]
call fcn.00415975
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0043802f
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 0x4386ed
xor edi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402963
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.0047548a
add ebp, 0x804
leave
ret 4
Function at 0x439152
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
mov esi, dword [ebp + 8]
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
mov edi, ecx
call fcn.00475410
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.004384a2
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 0x4391c7
inc esi
cmp esi, 0xa
jl 0x4391a5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047548a
leave
ret 4
Function at 0x4395fb
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x4afe91
call fcn.004764b0
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.00475410
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00475410
xor esi, esi
inc esi
add esp, 0x18
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x1c], esi
call fcn.00474880
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00430e36
test eax, eax
jne 0x43979a
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 0x4396e3
push str.error___Is360SafeUnique_____SHGetValue_______n
call fcn.00404d2e
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xd]
call fcn.0045aa30
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.0047548a
add ebp, 0x414
leave
ret
xor eax, eax
cmp ax, word [ebp + 0x208]
jne 0x4396f5
push str.error___Is360SafeUnique____
jmp 0x4396ac
lea eax, [ebp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43971a
lea eax, [ebp + 0x210]
push eax
push str.error___Is360SafeUnique_____RULE_360Safe
call fcn.00404d2e
pop ecx
jmp 0x4396b1
lea eax, [ebp]
push eax
lea eax, [ebp + 0x210]
push eax
lea ecx, [ebp - 0xd]
call fcn.0045332f
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x439752
push str.error___Is360SafeUnique_____RuleFile.GetProtectPath______n
call fcn.00404d2e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0045aa30
mov eax, ebx
jmp 0x4396c0
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43979a
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x43979a
mov dword [ebp - 0x14], esi
cmp edi, ebx
je 0x43979a
cmp dword [ebp + 0x420], ebx
jle 0x43979a
lea eax, [ebp]
push eax
push dword [ebp + 0x420]
push edi
call fcn.004023d4
push edi
push str.GetPathViaSelfProtect__s
call fcn.00404d2e
pop ecx
pop ecx
mov ebx, dword [ebp - 0x14]
jmp 0x43973f
Function at 0x4397ed
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f3bd0]
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 0x439886
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 0x439886
cmp dword [ebp - 0x74], edi
je 0x439886
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x439886
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 0x43987f
mov eax, ebx
jmp 0x439888
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.0047548a
add ebp, 0x19c
leave
ret 4

Function at 0x43990d
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x439983
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 0x439983
push edi
mov edi, dword [ebp - 4]
dec edi
js 0x439982
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 0x439979
cmp dword [ebp + 0x10], 0
je 0x43996f
cmp dword [eax + 0x14], 0
jne 0x439979
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 0x439979
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
sub esi, 0x20
test edi, edi
jge 0x43993e
pop esi
pop edi
leave
ret 0xc
Function at 0x439b39
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x4f3bd0]
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 0x439b75
xor eax, eax
jmp 0x439c5f
cmp ebx, edi
jne 0x439b95
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 0x439b6e
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 0x439c5c
cmp dword [ebp + 0x1d0], 2
je 0x439bd4
cmp dword [ebp + 0x1d0], 1
jne 0x439be2
mov ecx, dword [ebp - 0x60]
push ebx
push 3
push dword [ebp - 0x54]
call fcn.00439987
push 0x20
lea eax, [ebp - 0x80]
push edi
push eax
mov dword [ebp - 0x50], edi
call fcn.00475410
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 0x439c52
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 0x439c52
push dword [ebp - 0x50]
call ebx
cmp dword [ebp - 0x58], edi
je 0x439c5c
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.0047548a
add ebp, 0x1c0
leave
ret 0x14
Function at 0x439e16
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3e4], eax
push ebx
mov ebx, dword [ebp + 0x3f0]
push esi
mov esi, dword [ebp + 0x3f4]
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1dc], ax
lea eax, [ebp + 0x1de]
push eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], esi
call fcn.00475410
mov ecx, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp + 0x400], 0
push dword [ebp + 0x3f8]
push esi
push ebx
je 0x439e7f
call fcn.00439c90
jmp 0x439e84
call fcn.00439d51
push ebx
mov esi, 0x104
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.0040539b
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4bada4
lea eax, [ebp + 0x1dc]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x439fd3
test byte [ebp - 0x74], 0x10
je 0x439f60
cmp dword [ebp + 0x3fc], 0
je 0x439fb5
push 0x4d5318
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x439fb5
push 0x4d33c4
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x439fb5
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00475410
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.0040539b
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1dc]
push eax
call edi
push dword [ebp + 0x400]
mov ecx, dword [ebp - 0x78]
push dword [ebp + 0x3fc]
lea eax, [ebp + 0x1dc]
push dword [ebp + 0x3f8]
push dword [ebp - 0x7c]
push eax
call fcn.00439e16
jmp 0x439fb5
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00475410
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.0040539b
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1dc]
push eax
call edi
cmp dword [ebp + 0x400], 0
push dword [ebp + 0x3f8]
mov ecx, dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1dc]
push eax
je 0x439fb0
call fcn.00439c90
jmp 0x439fb5
call fcn.00439d51
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x439ec8
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x3e4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0047548a
add ebp, 0x3e8
leave
ret 0x14
Function at 0x43a0cf
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
push ebx
push esi
mov esi, dword [ebp + 0x3b4]
push edi
mov ecx, 0x4f7c20
call fcn.0043a057
test eax, eax
jne 0x43a26f
push 0x208
push eax
lea eax, [ebp + 0x1a0]
push eax
call fcn.00475410
add esp, 0xc
push str.safemon
push esi
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
je 0x43a26f
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0x1a0]
push eax
call fcn.00475eae
pop ecx
mov esi, 0x104
lea ecx, [ebp + eax*2 + 0x1a0]
sub esi, eax
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x80], str.HomePageLib.dat
mov dword [ebp - 0x7c], str.HPLib.dat
mov dword [ebp - 0x78], str.bfhlib.dat
mov dword [ebp - 0x74], str.cfhlib.dat
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp + eax*4 - 0x80]
push edi
call fcn.00475eae
pop ecx
cmp eax, esi
jae 0x43a1aa
push edi
call fcn.00475eae
pop ecx
jmp 0x43a1ac
mov eax, esi
push eax
push edi
push esi
push dword [ebp - 0x70]
call fcn.00476727
add esp, 0x10
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
je 0x43a262
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x43a255
push 0x80
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43a201
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x43a255
push 0x208
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00475410
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00477a35
lea eax, [ebp - 0x68]
push 0x4bae48
push eax
call fcn.00477a07
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x1c
push 3
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
je 0x43a255
push 4
push 0
lea eax, [ebp - 0x68]
push eax
call edi
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
jne 0x43a28b
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 4
jl 0x43a18f
xor eax, eax
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047548a
add ebp, 0x3ac
leave
ret 4
push 0xb
pop eax
jmp 0x43a271

Function at 0x43a7b2
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x43a803
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x43a814
push 0xd
pop eax
jmp 0x43a841
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x43a817
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8