joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4378d5
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.004760e0
mov eax, dword [0x4f2be0]
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 0x4379f8
test esi, esi
je 0x4379f8
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00474a10
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 0x4379f7
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4379f7
push 0x80
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x437975
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.00474a10
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 0x4b9e60
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 0x4379f7
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.00474a8a
leave
ret 8

Function at 0x437ad5
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 [0x4f2be0]
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 0x437bc8
test esi, esi
je 0x437bc8
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00474a10
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 0x437bc8
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x437b52
and ebx, 0xfffffffe
test ebx, 0x4000
je 0x437b60
and ebx, 0xffffbfff
test bl, 2
je 0x437b68
and ebx, 0xfffffffd
test ebx, 0x400
je 0x437b76
and ebx, 0xfffffbff
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
pop ebx
je 0x437b9f
cmp dword [ebp + 0x10], 0
jne 0x437bc8
lea eax, [ebp - 0x804]
push eax
call fcn.00430bbb
pop ecx
jmp 0x437bc8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
call esi
test eax, eax
jne 0x437bc8
lea eax, [ebp - 0x804]
push eax
call fcn.00431288
pop ecx
lea eax, [ebp - 0x804]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00474a8a
leave
ret
Function at 0x437e53
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f2be0]
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 0x437ec5
lea eax, [ebp - 0x80]
push eax
push 0x25
push 0
call ebx
test eax, eax
jl 0x437ebc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x10]
call fcn.004028fb
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 0x437f0b
lea eax, [ebp - 0x80]
push eax
push 0x24
push 0
call ebx
test eax, eax
jl 0x437f02
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x14]
call fcn.004028fb
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 0x437f51
lea eax, [ebp - 0x80]
push eax
push 2
push 0
call ebx
test eax, eax
jl 0x437f48
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x18]
call fcn.004028fb
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 0x437f97
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call ebx
test eax, eax
jl 0x437f8e
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x1c]
call fcn.004028fb
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 0x437fdd
lea eax, [ebp - 0x80]
push eax
push 0x15
push 0
call ebx
test eax, eax
jl 0x437fd4
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x20]
call fcn.004028fb
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.00474a8a
add ebp, 0x194
leave
ret
Function at 0x43811a
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x4381db
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4381db
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.00474a10
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.00474a10
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.004028fb
push ebx
lea ecx, [edi + 0x30]
call fcn.004028fb
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00474a8a
leave
ret 4

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

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4b3086
call fcn.00475a5f
mov ebx, dword [ebp + 0x80c]
test ebx, ebx
jne 0x4382ce
xor eax, eax
jmp 0x438372
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.00474a10
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 0x4382c7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402675
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041597a
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00432152
lea ecx, [ebp - 0x10]
call fcn.004159e2
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00437c24
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 0x438365
xor edi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
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.00474a8a
add ebp, 0x804
leave
ret 4
Function at 0x438dca
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4f2be0]
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.00474a10
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.0043811a
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 0x438e3f
inc esi
cmp esi, 0xa
jl 0x438e1d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00474a8a
leave
ret 4

Function at 0x43927b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0x144
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0xc0], eax
mov eax, dword [0x4e9a08]
test eax, eax
jl 0x4392ad
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x439336
and dword [0x4e9a08], 0
push esi
push 0x24
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00474a10
mov esi, 0x11c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00474a10
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x4392fa
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x114
call esi
test eax, eax
je 0x439333
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x439333
lea ecx, [ebp - 0x80]
push ecx
call eax
cmp word [ebp - 0x80], 9
je 0x439329
cmp word [ebp - 0x80], 6
jne 0x439333
xor eax, eax
inc eax
mov dword [0x4e9a08], eax
jmp 0x439335
xor eax, eax
pop esi
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0xc4
leave
ret
Function at 0x43934b
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x4af481
call fcn.00475a5f
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.00474a10
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00474a10
xor esi, esi
inc esi
add esp, 0x18
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x1c], esi
call fcn.00473eb9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0043927b
test eax, eax
jne 0x4394ea
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 0x439433
push str.error___Is360SafeUnique_____SHGetValue_______n
call fcn.00404dac
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xd]
call fcn.004698d8
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.00474a8a
add ebp, 0x414
leave
ret
xor eax, eax
cmp ax, word [ebp + 0x208]
jne 0x439445
push str.error___Is360SafeUnique____
jmp 0x4393fc
lea eax, [ebp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43946a
lea eax, [ebp + 0x210]
push eax
push str.error___Is360SafeUnique_____RULE_360Safe
call fcn.00404dac
pop ecx
jmp 0x439401
lea eax, [ebp]
push eax
lea eax, [ebp + 0x210]
push eax
lea ecx, [ebp - 0xd]
call fcn.00453749
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4394a2
push str.error___Is360SafeUnique_____RuleFile.GetProtectPath______n
call fcn.00404dac
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.004698d8
mov eax, ebx
jmp 0x439410
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4394ea
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4394ea
mov dword [ebp - 0x14], esi
cmp edi, ebx
je 0x4394ea
cmp dword [ebp + 0x420], ebx
jle 0x4394ea
lea eax, [ebp]
push eax
push dword [ebp + 0x420]
push edi
call fcn.0040243b
push edi
push str.GetPathViaSelfProtect__s
call fcn.00404dac
pop ecx
pop ecx
mov ebx, dword [ebp - 0x14]
jmp 0x43948f
Function at 0x43953d
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f2be0]
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 0x4395d6
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 0x4395d6
cmp dword [ebp - 0x74], edi
je 0x4395d6
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x4395d6
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 0x4395cf
mov eax, ebx
jmp 0x4395d8
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.00474a8a
add ebp, 0x19c
leave
ret 4

Function at 0x43965d
Capabilities:
Compare security identifiers

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

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x4f2be0]
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 0x4398c5
xor eax, eax
jmp 0x4399af
cmp ebx, edi
jne 0x4398e5
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 0x4398be
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 0x4399ac
cmp dword [ebp + 0x1d0], 2
je 0x439924
cmp dword [ebp + 0x1d0], 1
jne 0x439932
mov ecx, dword [ebp - 0x60]
push ebx
push 3
push dword [ebp - 0x54]
call fcn.004396d7
push 0x20
lea eax, [ebp - 0x80]
push edi
push eax
mov dword [ebp - 0x50], edi
call fcn.00474a10
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 0x4399a2
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 0x4399a2
push dword [ebp - 0x50]
call ebx
cmp dword [ebp - 0x58], edi
je 0x4399ac
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.00474a8a
add ebp, 0x1c0
leave
ret 0x14
Function at 0x439b66
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [0x4f2be0]
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.00474a10
mov ecx, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp + 0x400], 0
push dword [ebp + 0x3f8]
push esi
push ebx
je 0x439bcf
call fcn.004399e0
jmp 0x439bd4
call fcn.00439aa1
push ebx
mov esi, 0x104
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.00405419
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4ba96c
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 0x439d23
test byte [ebp - 0x74], 0x10
je 0x439cb0
cmp dword [ebp + 0x3fc], 0
je 0x439d05
push 0x4d4f88
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x439d05
push 0x4d3054
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x439d05
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.00405419
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.00439b66
jmp 0x439d05
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.00405419
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 0x439d00
call fcn.004399e0
jmp 0x439d05
call fcn.00439aa1
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x439c18
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.00474a8a
add ebp, 0x3e8
leave
ret 0x14
Function at 0x439e1f
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 [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
push ebx
push esi
mov esi, dword [ebp + 0x3b4]
push edi
mov ecx, 0x4f6b00
call fcn.00439da7
test eax, eax
jne 0x439fbf
push 0x208
push eax
lea eax, [ebp + 0x1a0]
push eax
call fcn.00474a10
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 0x439fbf
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0x1a0]
push eax
call fcn.004754ae
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.004754ae
pop ecx
cmp eax, esi
jae 0x439efa
push edi
call fcn.004754ae
pop ecx
jmp 0x439efc
mov eax, esi
push eax
push edi
push esi
push dword [ebp - 0x70]
call fcn.00475cd6
add esp, 0x10
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
je 0x439fb2
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x439fa5
push 0x80
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x439f51
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x439fa5
push 0x208
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00474a10
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00477016
lea eax, [ebp - 0x68]
push 0x4baa10
push eax
call fcn.00476fe8
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 0x439fa5
push 4
push 0
lea eax, [ebp - 0x68]
push eax
call edi
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
jne 0x439fdb
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 4
jl 0x439edf
xor eax, eax
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a8a
add ebp, 0x3ac
leave
ret 4
push 0xb
pop eax
jmp 0x439fc1

Function at 0x43a4fe
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 0x43a54f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x43a560
push 0xd
pop eax
jmp 0x43a58d
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 0x43a563
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
Function at 0x43aaca
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor edi, edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.0041105f
mov ebx, eax
cmp ebx, edi
je 0x43ab3a
lea ecx, [ebp - 0x70]
call fcn.004110a0
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a8a
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x43ab52
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0043aaca
cmp eax, edi
jne 0x43ab85
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call ebx
test eax, eax
je 0x43ab42
lea ecx, [ebp - 0x70]
call fcn.004110a0
push dword [ebp - 0x78]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004110a0
mov eax, esi
jmp 0x43ab20