joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437f75
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 0x437fe7
lea eax, [ebp - 0x80]
push eax
push 0x25
push 0
call ebx
test eax, eax
jl 0x437fde
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x10]
call fcn.004027b6
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 0x43802d
lea eax, [ebp - 0x80]
push eax
push 0x24
push 0
call ebx
test eax, eax
jl 0x438024
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x14]
call fcn.004027b6
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 0x438073
lea eax, [ebp - 0x80]
push eax
push 2
push 0
call ebx
test eax, eax
jl 0x43806a
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x18]
call fcn.004027b6
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 0x4380b9
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call ebx
test eax, eax
jl 0x4380b0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x1c]
call fcn.004027b6
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 0x4380ff
lea eax, [ebp - 0x80]
push eax
push 0x15
push 0
call ebx
test eax, eax
jl 0x4380f6
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x20]
call fcn.004027b6
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.004755ea
add ebp, 0x194
leave
ret
Function at 0x43823c
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 0x4382fd
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4382fd
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.00475570
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.00475570
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.004027b6
push ebx
lea ecx, [edi + 0x30]
call fcn.004027b6
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004755ea
leave
ret 4

Function at 0x4383bb
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, 0x4afdc7
call fcn.00476610
mov ebx, dword [ebp + 0x80c]
test ebx, ebx
jne 0x4383f0
xor eax, eax
jmp 0x438494
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.00475570
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 0x4383e9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402530
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041583c
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004322f9
lea ecx, [ebp - 0x10]
call fcn.004158a4
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00437dc9
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 0x438487
xor edi, edi
mov ecx, dword [ebp - 0x10]
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 + 0x800]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x804
leave
ret 4
Function at 0x438eec
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.00475570
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.0043823c
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 0x438f61
inc esi
cmp esi, 0xa
jl 0x438f3f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004755ea
leave
ret 4
Function at 0x439395
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, 0x4affab
call fcn.00476610
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.00475570
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00475570
xor esi, esi
inc esi
add esp, 0x18
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x1c], esi
call fcn.00453d57
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00430cdc
test eax, eax
jne 0x439534
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 0x43947d
push str.error___Is360SafeUnique_____SHGetValue_______n
call fcn.00404d91
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xd]
call fcn.00453d5a
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.004755ea
add ebp, 0x414
leave
ret
xor eax, eax
cmp ax, word [ebp + 0x208]
jne 0x43948f
push str.error___Is360SafeUnique____
jmp 0x439446
lea eax, [ebp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4394b4
lea eax, [ebp + 0x210]
push eax
push str.error___Is360SafeUnique_____RULE_360Safe
call fcn.00404d91
pop ecx
jmp 0x43944b
lea eax, [ebp]
push eax
lea eax, [ebp + 0x210]
push eax
lea ecx, [ebp - 0xd]
call fcn.00453d95
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4394ec
push str.error___Is360SafeUnique_____RuleFile.GetProtectPath______n
call fcn.00404d91
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00453d5a
mov eax, ebx
jmp 0x43945a
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439534
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x439534
mov dword [ebp - 0x14], esi
cmp edi, ebx
je 0x439534
cmp dword [ebp + 0x420], ebx
jle 0x439534
lea eax, [ebp]
push eax
push dword [ebp + 0x420]
push edi
call fcn.004022d7
push edi
push str.GetPathViaSelfProtect__s
call fcn.00404d91
pop ecx
pop ecx
mov ebx, dword [ebp - 0x14]
jmp 0x4394d9
Function at 0x439587
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 0x439620
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 0x439620
cmp dword [ebp - 0x74], edi
je 0x439620
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x439620
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 0x439619
mov eax, ebx
jmp 0x439622
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.004755ea
add ebp, 0x19c
leave
ret 4

Function at 0x4396a7
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x43971d
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 0x43971d
push edi
mov edi, dword [ebp - 4]
dec edi
js 0x43971c
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 0x439713
cmp dword [ebp + 0x10], 0
je 0x439709
cmp dword [eax + 0x14], 0
jne 0x439713
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 0x439713
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
sub esi, 0x20
test edi, edi
jge 0x4396d8
pop esi
pop edi
leave
ret 0xc
Function at 0x4398d3
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 0x43990f
xor eax, eax
jmp 0x4399f9
cmp ebx, edi
jne 0x43992f
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 0x439908
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 0x4399f6
cmp dword [ebp + 0x1d0], 2
je 0x43996e
cmp dword [ebp + 0x1d0], 1
jne 0x43997c
mov ecx, dword [ebp - 0x60]
push ebx
push 3
push dword [ebp - 0x54]
call fcn.00439721
push 0x20
lea eax, [ebp - 0x80]
push edi
push eax
mov dword [ebp - 0x50], edi
call fcn.00475570
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 0x4399ec
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 0x4399ec
push dword [ebp - 0x50]
call ebx
cmp dword [ebp - 0x58], edi
je 0x4399f6
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.004755ea
add ebp, 0x1c0
leave
ret 0x14
Function at 0x439bb0
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.00475570
mov ecx, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp + 0x400], 0
push dword [ebp + 0x3f8]
push esi
push ebx
je 0x439c19
call fcn.00439a2a
jmp 0x439c1e
call fcn.00439aeb
push ebx
mov esi, 0x104
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.004053fe
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4bbd6c
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 0x439d6d
test byte [ebp - 0x74], 0x10
je 0x439cfa
cmp dword [ebp + 0x3fc], 0
je 0x439d4f
push 0x4d6060
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x439d4f
push 0x4d4134
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x439d4f
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00475570
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.004053fe
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.00439bb0
jmp 0x439d4f
push esi
lea eax, [ebp + 0x1dc]
push 0
push eax
call fcn.00475570
add esp, 0xc
push ebx
push esi
lea eax, [ebp + 0x1dc]
push eax
call fcn.004053fe
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 0x439d4a
call fcn.00439a2a
jmp 0x439d4f
call fcn.00439aeb
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x439c62
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.004755ea
add ebp, 0x3e8
leave
ret 0x14
Function at 0x439e49
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
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]
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.00475570
and dword [ebp - 0x400c], 0
add esp, 0xc
test esi, esi
je 0x439f2a
test edi, edi
je 0x439f2a
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x439f2a
cmp eax, 0x3fff
ja 0x439f2a
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x439f2a
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x4d3cc0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x439f2a
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00475570
mov eax, dword [ebp - 0x4008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
dec esi
push esi
push edi
call fcn.00477cb0
xor eax, eax
add esp, 0x28
inc eax
jmp 0x439f2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004755ea
leave
ret
Function at 0x439f5a
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, 0x4f7c38
call fcn.00439df1
test eax, eax
jne 0x43a0fa
push 0x208
push eax
lea eax, [ebp + 0x1a0]
push eax
call fcn.00475570
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 0x43a0fa
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0x1a0]
push eax
call fcn.0047600e
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.0047600e
pop ecx
cmp eax, esi
jae 0x43a035
push edi
call fcn.0047600e
pop ecx
jmp 0x43a037
mov eax, esi
push eax
push edi
push esi
push dword [ebp - 0x70]
call fcn.00476887
add esp, 0x10
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
je 0x43a0ed
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x43a0e0
push 0x80
lea eax, [ebp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43a08c
lea eax, [ebp + 0x1a0]
push eax
call edi
test eax, eax
jne 0x43a0e0
push 0x208
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00475570
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00477b95
lea eax, [ebp - 0x68]
push 0x4bbe10
push eax
call fcn.00477b67
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 0x43a0e0
push 4
push 0
lea eax, [ebp - 0x68]
push eax
call edi
lea eax, [ebp + 0x1a0]
push eax
call ebx
test eax, eax
jne 0x43a116
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 4
jl 0x43a01a
xor eax, eax
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0x3ac
leave
ret 4
push 0xb
pop eax
jmp 0x43a0fc

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x43a69b
push 0xd
pop eax
jmp 0x43a6c8
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 0x43a69e
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 0x43ac26
Capabilities:
Delete registry key
Query or enumerate registry key

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
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.00410f2f
mov ebx, eax
cmp ebx, edi
je 0x43ac96
lea ecx, [ebp - 0x70]
call fcn.00410f70
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x43acae
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0043ac26
cmp eax, edi
jne 0x43ace1
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 0x43ac9e
lea ecx, [ebp - 0x70]
call fcn.00410f70
push dword [ebp - 0x78]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00410f70
mov eax, esi
jmp 0x43ac7c
Function at 0x43c623
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0xa7c
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xa7c], eax
push 8
mov eax, 0x4b0196
call fcn.00476610
mov edi, dword [ebp + 0xa88]
mov esi, str.C:Windows
push esi
call fcn.0047600e
push eax
push esi
push edi
call fcn.00477e6d
add esp, 0x10
test eax, eax
jne 0x43c66f
push 0xc
pop eax
jmp 0x43c76f
mov esi, 0x208
push esi
xor ebx, ebx
lea eax, [ebp + 0x464]
push ebx
push eax
call fcn.00475570
push esi
lea eax, [ebp + 0x66c]
push ebx
push eax
call fcn.00475570
add esp, 0x18
push 0x104
lea eax, [ebp + 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea eax, [ebp + 0x874]
push ebx
push eax
call fcn.00475570
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push str..dll
push edi
lea eax, [ebp + 0x874]
push eax
call esi
push 0x5c
pop eax
mov word [ebp + 0x458], ax
mov dword [ebp + 0x45c], ebx
mov dword [ebp + 0x460], ebx
lea eax, [ebp + 0x874]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0043a29f
jmp 0x43c757
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.0043c57a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0043c45e
push dword [eax]
lea eax, [ebp + 0x66c]
push eax
lea eax, [ebp + 0x464]
push eax
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
test eax, eax
jne 0x43c75d
mov byte [ebp - 4], bl
call fcn.00402870
lea ecx, [ebp]
call fcn.0043a196
test eax, eax
jne 0x43c6f7
jmp 0x43c765
call fcn.00402870
push 0xc
pop ebx
lea ecx, [ebp]
call fcn.0043a1bd
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa7c]
xor ecx, ebp
call fcn.004755ea
add ebp, 0xa80
leave
ret 4

Function at 0x43c9c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
add ecx, 4
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x43c9ee
cmp dword [ebp - 4], esi
je 0x43ca1c
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push str.SetupKilled
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43ca13
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret