joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a380
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jg 0x40a397
xor eax, eax
pop ebp
pop ecx
ret
push esi
push 0x1140
call fcn.00418868
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a3af
pop esi
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x14]
push ebx
push edi
push eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esi + 0x140]
push 0x428160
push edi
lea ebx, [edi + 0x104]
call ebp
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40a434
lea ebp, [esi + 0x2c]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
push 0x428160
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi]
shr eax, 4
add esp, 0x10
and al, 1
cmp byte [ebp], 0x2e
je 0x40a413
test al, al
jne 0x40a413
call fcn.0040a290
mov edx, dword [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a3e8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
test byte [esp + 0x20], 1
je 0x40a4b7
mov ecx, dword [esp + 0x18]
push ecx
push str._s.
push edi
call ebp
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40a4b7
lea edi, [esi + 0x2c]
nop
mov edx, dword [esp + 0x18]
push edi
push edx
push 0x428160
push ebx
call ebp
add esp, 0x10
test byte [esi], 0x10
je 0x40a49c
cmp byte [edi], 0x2e
je 0x40a49c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebx
call fcn.0040a380
add esp, 0xc
test byte [esp + 0x20], 2
je 0x40a49c
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a460
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x20], 2
pop edi
pop ebx
je 0x40a4cb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call fcn.00418597
add esp, 4
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x40a4e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x124]
mov dword [esp + 0x10], esi
cmp dword [0x4395a8], esi
jne 0x40a542
cmp dword [0x4395ac], esi
jne 0x40a542
push str.RegDeleteKeyExA
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4395ac], eax
mov dword [0x4395a8], 1
mov ebp, dword [esp + 0x12c]
lea eax, [esp + 0x10]
push eax
push ebp
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a5c8
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
jne 0x40a5c3
mov edx, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.0040a4e0
add esp, 0xc
test eax, eax
je 0x40a5c3
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x40a585
mov esi, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a605
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4395ac]
mov dword [esp + 0x10], 0
test eax, eax
je 0x40a5f6
push 0
push ebp
push ebx
push edi
call eax
neg eax
sbb eax, eax
inc eax
jmp 0x40a607
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
jmp 0x40a607
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416a72
add esp, 0x110
ret
Function at 0x40a620
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x954
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x950], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a664
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x4291f0
push ecx
lea edx, [esp + 0x160]
push 0x428160
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40a76c
cmp byte [esp + 0x44], 0x2e
je 0x40a742
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x160]
push 0x428160
push ecx
call edi
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x570]
push 0x428160
push ecx
call edi
add esp, 0x20
test byte [esp + 0x18], 0x10
je 0x40a708
push ebx
lea edx, [esp + 0x55c]
push edx
lea eax, [esp + 0x160]
push eax
call fcn.0040a620
add esp, 0xc
jmp 0x40a73c
test ebx, ebx
je 0x40a724
push ebx
push 0
lea ecx, [esp + 0x4c]
push ecx
push str.Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
je 0x40a742
push 0
lea edx, [esp + 0x55c]
push edx
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
je 0x40a761
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a6a6
test esi, esi
je 0x40a761
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x95c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00416a72
mov esp, ebp
pop ebp
ret
Function at 0x40b920
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x28
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b955
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea ecx, [esp + 0x1c]
push ecx
push str.SeBackupPrivilege
push 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ebp, 1
lea ebx, [ebp + 1]
test eax, eax
je 0x40b997
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebx
call esi
lea ecx, [esp + 0x1c]
push ecx
push str.SeRestorePrivilege
push 0
call edi
test eax, eax
je 0x40b9c5
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebx
call esi
lea ecx, [esp + 0x1c]
push ecx
push str.SeDebugPrivilege
push 0
call edi
test eax, eax
je 0x40b9f3
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebx
call esi
lea ecx, [esp + 0x1c]
push ecx
push 0x429ed4
push 0
call edi
test eax, eax
je 0x40ba21
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ba30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba40
Capabilities:
Read pipe
Write pipe

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push esi
push 0
push 0
push 3
push 0
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
push 0xc0000000
lea ecx, [esp + 0x38]
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0xffffffff
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bac5
mov ebp, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40bac0
push 0xffffffffffffffff
push edi
call ebp
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x40ba93
jmp 0x40bac5
cmp esi, 0xffffffff
je 0x40bb24
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x40bb18
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x38]
push eax
push 0x14
lea ecx, [esp + 0x28]
push ecx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x40bb18
cmp dword [esp + 0xc], 4
je 0x40bb18
mov dword [esp + 0x2c], 0xffffffff
cmp esi, 0xffffffff
je 0x40bb24
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x40bb30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov edi, 1
test esi, esi
je 0x40bbe7
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40bbe7
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40bbe0
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x40bb94
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40bbd1
mov edx, dword [esp + 0x20]
push edx
push eax
push 0x1fffff
call ebx
mov esi, eax
test esi, esi
jne 0x40bbbb
xor edi, edi
jmp 0x40bbd1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40bbca
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bb90
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416a72
add esp, 0x13c
ret
Function at 0x40be30
Capabilities:
Delete registry key

Disassembly:
push esi
push edi
push str.Restoring_registry...._n
call fcn.0040b8e0
add esp, 4
push str.SOFTWAREK7_Computing
push 0x80000002
xor edi, edi
call fcn.00414a40
mov esi, eax
test esi, esi
je 0x40be88
push edi
push esi
push str.SOFTWAREK7_Computing_Backup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyA]
test eax, eax
jne 0x40be81
push str.SOFTWAREK7_Computing_Backup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40c420
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push esi
push edi
push str.Copying_OldFiles__AVDefs...._n
call fcn.0040b8e0
push 0x2000
call fcn.00418868
mov edi, eax
add esp, 8
test edi, edi
je 0x40c5c0
push str.SoftwareK7_ComputingK7TotalSecurity
push 0x80000002
mov byte [edi], 0
call fcn.00414a10
mov esi, eax
test esi, esi
je 0x40c474
push 0x104
push edi
push str.DirProductBase
push esi
call fcn.00414a70
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
je 0x40c5c0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.Adsrlist.dat
push edi
push 0x428160
push 0x436af0
call esi
push str.Adsrlist.dat
push 0x4386f0
push 0x428160
push 0x4365e8
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x20
push 0
push 0x436af0
push 0x4365e8
call ebx
push str.K7APGnrl.dat
push edi
push 0x428160
push 0x436af0
call esi
push str.K7APGnrl.dat
push 0x4386f0
push 0x428160
push 0x4365e8
call esi
add esp, 0x20
push 0
push 0x436af0
push 0x4365e8
call ebx
push str.K7AVFiles.ini
push str.AVDefs
push edi
push str._s_s_s
push 0x4365e8
call esi
push str.K7AVFiles.bak
push str.AVDefs
push edi
push str._s_s_s
push 0x436af0
call esi
add esp, 0x28
push 0
push 0x436af0
push 0x4365e8
call ebx
push str.AVDefs
push 0x4386f0
push 0x428160
push 0x4365e8
call esi
push str.AVDefs
push edi
push 0x428160
push 0x436af0
call esi
push 0
push 0x436af0
push 0x4365e8
call fcn.0040a620
push str.K7AVFiles.bak
push str.AVDefs
push edi
push str._s_s_s
push 0x4365e8
call esi
add esp, 0x40
push str.K7AVFiles.ini
push str.AVDefs
push edi
push str._s_s_s
push 0x436af0
call esi
add esp, 0x14
push 0
push 0x436af0
push 0x4365e8
call ebx
push 0x4365e8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40c5d0
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
push str.Saving_Existing_Files...._n
call fcn.0040b8e0
push 0x2000
call fcn.00418868
mov edi, eax
add esp, 8
test edi, edi
je 0x40c72a
push str.SoftwareK7_ComputingK7TotalSecurity
push 0x80000002
lea ebx, [edi + 0x400]
mov byte [edi], 0
call fcn.00414a10
mov esi, eax
test esi, esi
je 0x40c62b
push 0x104
push edi
push str.DirProductBase
push esi
call fcn.00414a70
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
je 0x40c721
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.AdsrList.dat
push edi
push 0x428160
push 0x4365e8
call esi
push str.AdsrList.dat
push 0x4386f0
push 0x428160
push 0x436af0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x20
push 0
push 0x436af0
push 0x4365e8
call ebp
push str.K7APGnrl.dat
push edi
push 0x428160
push 0x4365e8
call esi
push str.K7APGnrl.dat
push 0x4386f0
push 0x428160
push 0x436af0
call esi
add esp, 0x20
push 0
push 0x436af0
push 0x4365e8
call ebp
push str.K7AVFiles.ini
push str.AVDefs
push edi
push str._s_s_s
push ebx
call esi
push str.AVDefs
push edi
push 0x428160
push 0x4365e8
call esi
push str.AVDefs
push 0x4386f0
push 0x428160
push 0x436af0
call esi
push ebx
push 0x436af0
push 0x4365e8
call fcn.0040a620
add esp, 0x40
push str.K7AVFiles.ini
push str.AVDefs
push 0x4386f0
push str._s_s_s
push ebx
call esi
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.00418597
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40c780
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x404
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
lea eax, [esp + 0x208]
push eax
push 0x1ff
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.004176b0
add esp, 8
test eax, eax
je 0x40c7cd
mov byte [eax], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 8]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x208]
push ecx
mov esi, eax
call edi
mov ecx, dword [esp + 0x408]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00416a72
add esp, 0x404
ret
Function at 0x40d110
Capabilities:
Modify service

Disassembly:
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40d16b
mov eax, dword [esp + 0xc]
push ebp
push esi
push 0xf003f
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40d166
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x40d163
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x40d170
Capabilities:
Modify service

Disassembly:
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40d217
push esi
push 0xf003f
push 0x4290f0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40d20f
push str.SystemRoot_system32driversK7Sentry.sys
push 0x4365e8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.K7AntiVirus_MiniFilter_Driver
push ebp
push ebp
push str.FltMgr
push ebp
push str.FSFilter_Infrastructure
push 0x4365e8
push 1
push ebp
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x40d1df
mov ebp, 1
push ebx
push str.SYSTEMCurrentControlSetServicesK7Sentry
push 0x80000002
call fcn.00414a40
mov ebx, eax
test ebx, ebx
je 0x40d207
push 0x42a808
push ebx
call fcn.00414c60
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, ebp
pop ebp
ret

Function at 0x40d220
Capabilities:
Modify service

Disassembly:
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40d29c
push ebx
push esi
push 0xf003f
push str.K7RTScan
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40d297
push 0x4365e8
call fcn.004098a0
add esp, 4
push str.K7RTScan.exe
push 0x4365e8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x4365e8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x40d294
mov ebp, 1
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
call fcn.0040d170
push str.K7RTScan
call fcn.0040d110
push str.K7Emlpxy
call fcn.0040d110
push str.K7FWSrvc
call fcn.0040d110
push str.K7PSSrvc
call fcn.0040d110
add esp, 0x10
pop edi
mov eax, ebp
pop ebp
ret
Function at 0x40d490
Capabilities:
Create directory
Get common file path

Disassembly:
push ecx
push 0x104
push 0x437ef0
push 0
mov byte [0x437ef0], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [0x437ef0], 0
jne 0x40d4b7
xor eax, eax
pop ecx
ret
push 0x5c
push 0x437ef0
call fcn.004176b0
add esp, 8
test eax, eax
je 0x40d4b3
push 0x4386f0
push 0x3e8
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.K7TS12Upgr
push 0x4386f0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x4386f0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.K7TSUpgrade.Log
push 0x437ef0
push 0x428160
push 0x437af0
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x42a9c8
push 0x437af0
call fcn.004197c3
add esp, 0x18
mov dword [0x4390b4], eax
test eax, eax
je 0x40d4b3
push ebx
push str.12.0.0.8
push str.Started_with_version:_s_n
call fcn.0040b8e0
add esp, 8
push str.K7FWSrvc
call fcn.00414470
mov ebx, 1
test eax, eax
je 0x40d55b
mov byte [0x438f5a], bl
push str.K7PSSrvc
call fcn.00414470
test eax, eax
je 0x40d56f
mov byte [0x438f5b], bl
push str.K7SpmSrc
call fcn.00414470
test eax, eax
je 0x40d583
mov byte [0x4391bc], bl
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityProductsAntiVirusCarnivore
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d5b4
mov ecx, dword [esp + 4]
push ecx
mov byte [0x438f59], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40d5c0
Capabilities:
Check if file exists
Delete directory
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
push edi
push 0
push 0x19
push 0x4365e8
push 0
mov byte [0x4365e8], 0
call ebp
cmp byte [0x4365e8], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x40d622
push 0x428550
push 0x4365e8
call esi
mov eax, dword [0x435e50]
push eax
push 0x4365e8
call esi
push 0x4365e8
call edi
cmp eax, 0xffffffff
je 0x40d622
mov ebx, 0x4365e8
call fcn.0040a290
push 0
push 0x10
push 0x4365e8
push 0
mov byte [0x4365e8], 0
call ebp
cmp byte [0x4365e8], 0
je 0x40d66f
push 0x428550
push 0x4365e8
call esi
mov ecx, dword [0x435e50]
push ecx
push 0x4365e8
call esi
push 0x4365e8
call edi
cmp eax, 0xffffffff
je 0x40d66f
mov ebx, 0x4365e8
call fcn.0040a290
cmp byte [0x4386f0], 0
je 0x40d697
push 7
push 0x428170
push 0x4386f0
call fcn.0040a380
add esp, 0xc
push 0x4386f0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0x10
push 0x4365e8
push 0
mov byte [0x4365e8], 0
call ebp
cmp byte [0x4365e8], 0
je 0x40d6e2
push 0x428550
push 0x4365e8
call esi
push str.IconCache.db
push 0x4365e8
call esi
push 0x4365e8
call edi
cmp eax, 0xffffffff
je 0x40d6e2
mov ebx, 0x4365e8
call fcn.0040a290
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x40d6f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
push esi
push edi
push 0x2000
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40d7f4
push ebp
push str.CLSID44EC053A_400F_11D0_9DCD_00A0C90391D3InprocServer32
push 0x80000000
lea esi, [edi + 0x400]
call fcn.00414a10
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x40d7a9
push 0x104
push edi
push 0x428166
push eax
mov byte [edi], 0
call fcn.00414a70
cmp byte [edi], 0
je 0x40d7a9
push 0x400
push esi
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esi], 0
jne 0x40d767
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push str.shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x40d795
push str.PathFindOnPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d78e
push 0
push esi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call ebp
pop ebx
cmp eax, 0xffffffff
je 0x40d7a9
test al, 0x10
jne 0x40d7a9
mov esi, 1
jmp 0x40d7e3
push 0x400
push esi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Atl.dll
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x40d7d0
xor esi, esi
jmp 0x40d7e3
test al, 0x10
jne 0x40d7cc
mov eax, esi
call fcn.0040c810
mov esi, eax
dec esi
neg esi
sbb esi, esi
inc esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
mov eax, esi
pop esi
ret