joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c190
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
mov ebx, ecx
mov edx, ebp
lea ecx, [esp + 8]
push esi
push edi
mov esi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x40c1c3
mov byte [eax], cl
inc eax
dec esi
jne 0x40c1b4
jmp 0x40c1c7
test esi, esi
jne 0x40c1c8
dec eax
lea edx, [esp + 0x10]
mov byte [eax], 0
push edx
call dword [sym.imp.ntdll.dll__strupr]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x10]
mov edx, 0x811c9dc5
je 0x40c203
mov eax, ecx
movsx ecx, byte [esi]
imul edx, edx, 0x1000193
xor edx, ecx
inc esi
dec eax
jne 0x40c1f4
mov eax, edx
xor edx, edx
div dword [ebx + 8]
lea edi, [ebx + 0x14]
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 4]
mov ebx, dword [edx + esi*4]
test ebx, ebx
je 0x40c237
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebx + 4]
push ebp
push eax
call esi
test eax, eax
je 0x40c24d
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40c226
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebx + 4]
mov ecx, 0x41
mov edi, ebp
lea eax, [ebx + 0x108]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x40e2f0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [0x47c610]
sub esp, 0x208
test eax, eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x47d648], edi
jne 0x40e3e4
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10c]
push str.kernel32.dll
push edx
call esi
lea eax, [esp + 8]
push str.Newkernel32.dll
push eax
call esi
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x110]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40e377
pop edi
pop esi
add esp, 0x208
ret
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jne 0x40e3ad
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
push 0x44a748
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x47d648], eax
jne 0x40e3da
push esi
mov dword [0x47d648], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
mov eax, 1
mov dword [0x47c610], eax
pop edi
pop esi
add esp, 0x208
ret
Function at 0x40e9f0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x40ea16
mov eax, dword [esp + 4]
push 0x24
push 0x449458
push 0x44a8b8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40ea8d
jmp 0x40ea75
cmp eax, 1
jne 0x40ea35
mov ecx, dword [esp + 4]
push 0
push 0x449458
push 0x44a884
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret
cmp eax, 2
jne 0x40ea54
mov edx, dword [esp + 4]
push 0
push 0x449458
push 0x44a84c
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret
cmp eax, 3
jne 0x40ea8d
mov eax, dword [esp + 4]
push 0x24
push 0x449458
push 0x44a80c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40ea8d
push 5
push 0
push 0
push str.http:__www.360.cn
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret

Function at 0x40eba0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x314
push esi
call fcn.0040eb40
test eax, eax
jne 0x40ecaa
mov eax, dword [esp + 0x324]
test eax, eax
jne 0x40ec92
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x320]
lea edx, [esp + 0xc]
push ecx
push edx
push str.__s___s
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.00407080
mov esi, dword [esp + 0x330]
add esp, 0x14
lea ecx, [esp + 4]
lea edx, [esp + 0x214]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push connect
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ec5b
mov eax, dword [esp + 4]
test eax, eax
jbe 0x40ec5b
cmp dword [esp + 8], 1
jne 0x40ec5b
lea ecx, [esp + 0x214]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40ecaa
push edi
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x114]
push ecx
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
add esp, 0x314
ret
mov ecx, dword [esp + 0x31c]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
pop esi
add esp, 0x314
ret

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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push esi
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push connect
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ed21
cmp dword [esp + 0xc], 1
jne 0x40ed21
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ed19
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop esi
neg eax
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40ed30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov al, byte [0x47c558]
push ebx
push esi
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
xor ebx, ebx
stosw word es:[edi], ax
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_ObjectsB69F34DD_F0F9_42DC_9EDD_957187DA688D
push connect
mov dword [esp + 0x24], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40ed76
mov ebx, 1
lea edx, [esp + 0x1c]
push str.safemon_safemon.dll
push edx
call fcn.0040ecc0
mov esi, eax
mov eax, 4
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push str.SiteAccess
push str.SOFTWARE360Safe_safemon
push connect
xor edi, edi
mov dword [esp + 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40edda
test ebx, ebx
je 0x40edda
test esi, esi
mov eax, 1
jne 0x40eddc
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x114
ret

Function at 0x40edf0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push edi
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ee77
mov ecx, 0x104
lea eax, [esp + 8]
cmp byte [eax], 0
je 0x40ee26
inc eax
dec ecx
jne 0x40ee1b
jmp 0x40ee6c
test ecx, ecx
je 0x40ee6c
lea edx, [esp + 4]
test edx, edx
je 0x40ee3b
mov eax, 0x104
sub eax, ecx
jmp 0x40ee3f
mov eax, dword [esp + 4]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 8]
je 0x40ee6c
push esi
mov esi, str.360safe360safe.exe
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x40ee63
mov byte [eax], cl
inc eax
dec edx
jne 0x40ee54
jmp 0x40ee67
test edx, edx
jne 0x40ee68
dec eax
mov byte [eax], 0
pop esi
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x40eea8
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040eb00
add esp, 8
test eax, eax
jne 0x40ee95
pop edi
add esp, 0x108
ret
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jne 0x40eea8
pop edi
add esp, 0x108
ret
call fcn.0040eef0
test eax, eax
jne 0x40eebe
mov eax, 1
pop edi
add esp, 0x108
ret
call fcn.0040ed30
test eax, eax
jne 0x40eed4
mov eax, 2
pop edi
add esp, 0x108
ret
call fcn.0040f280
neg eax
sbb eax, eax
pop edi
and al, 0xfc
add eax, 3
add esp, 0x108
ret
Function at 0x40eef0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 4]
push ecx
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push connect
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40efb5
cmp dword [esp], 1
jne 0x40efb5
mov ecx, 0x104
lea eax, [esp + 8]
cmp byte [eax], 0
je 0x40ef49
inc eax
dec ecx
jne 0x40ef3e
jmp 0x40ef8f
test ecx, ecx
je 0x40ef8f
lea eax, [esp]
test eax, eax
je 0x40ef5e
mov eax, 0x104
sub eax, ecx
jmp 0x40ef62
mov eax, dword [esp]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 8]
je 0x40ef8f
push esi
mov esi, str._safemonparam.ini
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x40ef86
mov byte [eax], cl
inc eax
dec edx
jne 0x40ef77
jmp 0x40ef8a
test edx, edx
jne 0x40ef8b
dec eax
mov byte [eax], 0
pop esi
lea ecx, [esp + 8]
push ecx
push 0
push str.ProtectSelf
push str.Param
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

Function at 0x40f0c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40f114
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x54
ret
xor eax, eax
add esp, 0x54
ret
Function at 0x40f650
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov al, byte [0x47c558]
push edi
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
lea edx, [esp + 0x110]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.DataBasePath
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push connect
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
jne 0x40f6c6
lea ecx, [esp + 0x10c]
push str.Hosts
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp 0x40f6e6
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push str.DriversetcHosts
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esp + 0x218]
push esi
cmp ecx, 0x7fffffff
ja 0x40f720
mov eax, dword [esp + 0x218]
mov esi, ecx
test ecx, ecx
je 0x40f720
lea edx, [esp + 0xc]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x40f718
mov byte [eax], cl
inc eax
dec esi
jne 0x40f709
jmp 0x40f71c
test esi, esi
jne 0x40f71d
dec eax
mov byte [eax], 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop esi
je 0x40f74b
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40f74b
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
Function at 0x40f8c0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov edi, ecx
jne 0x40f8e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x14
mov ebp, dword [esp + 0x150]
cmp ebp, esi
jne 0x40f920
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40f91c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14
lea ebp, [esp + 0x3c]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push esi
push esi
push 4
push ecx
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x40f9f7
mov ebx, dword [esp + 0x14c]
cmp ebx, 2
je 0x40f95f
cmp ebx, 1
jne 0x40f96e
mov edx, dword [esp + 0x14]
push ebp
push 3
push edx
mov ecx, edi
call fcn.0040f850
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x158]
push ebx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x40f9ec
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push 0
push edx
push 0
push 0
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x40f9ec
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f9f7
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14

Function at 0x40fa50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
lea edx, [esp + 8]
push eax
push ecx
push edx
push str.antifilelib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40faa1
mov eax, dword [esp]
test eax, eax
je 0x40faa1
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x40fab0
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
mov al, byte [0x47c614]
sub esp, 0x104
test al, al
jne 0x40fb5a
push esi
push 0x104
push 0x47c614
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push 0x47c614
call esi
add esp, 8
test eax, eax
jne 0x40faf8
push 0x2f
push 0x47c614
call esi
add esp, 8
mov edx, str._antifilelib.dat
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x40fb13
mov byte [eax], cl
inc eax
dec esi
jne 0x40fb04
jmp 0x40fb17
test esi, esi
jne 0x40fb18
dec eax
mov byte [eax], 0
call fcn.0041d6f0
test eax, eax
pop esi
je 0x40fb5a
push eax
lea eax, [esp + 4]
push 0x104
push eax
push 0x47c558
push 0x44aaf8
push str.antifilelib
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
lea ecx, [esp + 8]
push 0x47c614
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov eax, 0x47c614
add esp, 0x104
ret

Function at 0x40fb70
Capabilities:
Set registry value

Disassembly:
push ecx
mov dword [esp], 0
call fcn.0040fbd0
test eax, eax
jne 0x40fb95
call fcn.0040fa50
test eax, eax
je 0x40fb95
mov dword [esp], 1
jmp 0x40fba7
push 1
call fcn.0040fcd0
add esp, 4
mov dword [esp], eax
test eax, eax
je 0x40fbc9
lea eax, [esp]
push 4
push eax
push 4
push str.antifilelib
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp]
pop ecx
ret

Function at 0x40fbd0
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
sub esp, 0x210
call fcn.0041d6f0
test eax, eax
je 0x40fcbc
push esi
mov esi, 0x104
push eax
lea eax, [esp + 0x114]
push esi
push eax
push 0x44ab24
push 0x44ab20
push str.antifilelib
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.antifilelib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x40fc62
mov edx, 0x44ab24
lea ecx, [esp + 0xc]
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x40fc5a
mov byte [eax], cl
inc eax
dec esi
jne 0x40fc4b
jmp 0x40fc5e
test esi, esi
jne 0x40fc5f
dec eax
mov byte [eax], 0
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
pop esi
jle 0x40fcbc
push edi
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x114]
push ecx
push 1
push str.antifilelib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, 1
pop edi
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
Function at 0x40fcd0
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4403bb
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
call fcn.0040fab0
mov esi, eax
test esi, esi
je 0x40fed8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40fd21
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00415220
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], esi
je 0x40fed8
push ebx
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.0040f810
mov ebx, dword [sym.imp.ntdll.dll_strchr]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [esp + 0x22c], 0
cmp byte [esi], 0
je 0x40fe99
mov edi, dword [esp + 0x234]
push esi
call fcn.0041d2a0
mov esi, eax
add esp, 4
mov al, byte [esi]
cmp al, 0x3b
jne 0x40fd90
push 0xa
push esi
call ebx
add esp, 8
mov esi, eax
jmp 0x40fe91
cmp al, 0x2d
jne 0x40fd97
inc esi
xor edi, edi
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
mov byte [esp + 0x28], 0
call fcn.00414290
add esp, 0xc
test eax, eax
jne 0x40fdbf
mov al, byte [esp + 0x1c]
test al, al
jne 0x40fe99
push 0xa
push esi
call ebx
add esp, 8
lea edx, [esp + 0x1c]
mov esi, eax
lea eax, [esp + 0x120]
push edx
push str._s360safe.._
push 0x104
push eax
call fcn.00407080
add esp, 0x10
test edi, edi
je 0x40fe3e
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x1c]
push 0
push edx
call edi
test eax, eax
je 0x40fe91
lea eax, [esp + 0x120]
push 0
push eax
call edi
test eax, eax
je 0x40fe91
push 0x1f01ff
lea ecx, [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040fa30
lea edx, [esp + 0x1c]
push 1
push edx
call ebp
jmp 0x40fe91
lea eax, [esp + 0x1c]
push 0x80
push eax
call ebp
push 0x1f01ff
lea ecx, [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040fa10
lea edx, [esp + 0x120]
push 0x80
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x120]
push eax
call edi
lea ecx, [esp + 0x1c]
push 0x80
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
call edi
test esi, esi
jne 0x40fd60
mov eax, dword [esp + 0x14]
push eax
call fcn.004152a0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0040f840
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
mov ecx, dword [esp + 0x218]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret

Function at 0x40fef0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
push 0
call fcn.0040fcd0
mov esi, eax
add esp, 4
test esi, esi
je 0x40ff3d
lea eax, [esp + 4]
push 4
push eax
push 4
push str.antifilelib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push str.antifilelib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x410110
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
lea edx, [esp + 8]
push eax
push ecx
push edx
push str.antihostlib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x410161
mov eax, dword [esp]
test eax, eax
je 0x410161
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x410170
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov dword [esp], 0
call fcn.00410220
test eax, eax
jne 0x410197
call fcn.00410110
test eax, eax
je 0x410197
mov dword [esp], 1
jmp 0x4101ed
push esi
call fcn.00410320
test eax, eax
je 0x4101e4
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00415220
mov esi, eax
add esp, 8
test esi, esi
je 0x4101e4
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x4103e0
push 1
mov dword [esp + 0x18], esi
push 0x44ab44
mov byte [edx + esi], 0
call fcn.00417970
push esi
mov dword [esp + 0x18], eax
call fcn.004152a0
add esp, 0x14
mov eax, dword [esp + 4]
pop esi
test eax, eax
je 0x41020f
lea ecx, [esp]
push 4
push ecx
push 4
push str.antihostlib
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x410220
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
sub esp, 0x210
call fcn.0041d6f0
test eax, eax
je 0x41030c
push esi
mov esi, 0x104
push eax
lea eax, [esp + 0x114]
push esi
push eax
push 0x44ab24
push 0x44ab20
push str.antihostlib
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.antihostlib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x4102b2
mov edx, 0x44ab24
lea ecx, [esp + 0xc]
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x4102aa
mov byte [eax], cl
inc eax
dec esi
jne 0x41029b
jmp 0x4102ae
test esi, esi
jne 0x4102af
dec eax
mov byte [eax], 0
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
pop esi
jle 0x41030c
push edi
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x114]
push ecx
push 1
push str.antihostlib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, 1
pop edi
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret