joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419703
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
and dword [ebp - 4], ebx
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
je 0x419875
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREK7_ComputingK7TotalSecurity
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419865
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + 0x400]
push eax
mov byte [eax], bl
lea eax, [ebp - 0x10]
push eax
push ebx
push str.DirProductBase
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419865
push dword [ebp - 4]
call edi
and dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREK7_ComputingCommonInfoAntiVirus
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419865
lea eax, [ebp - 8]
mov byte [esi], bl
push eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x400
push eax
push ebx
push str.VDefPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419865
push dword [ebp - 4]
call edi
and dword [ebp - 4], ebx
lea eax, [esi + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419865
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419865
and dword [ebp - 0xc], ebx
lea eax, [ebp - 0xc]
push eax
lea edx, [esi + 0x400]
mov ecx, esi
call fcn.00419540
pop ecx
test eax, eax
je 0x419865
cmp dword [ebp - 0xc], ebx
je 0x419865
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419865
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push ebx
push str.VersionAVScript
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x419865
push dword [ebp - 4]
call edi
and dword [ebp - 4], ebx
inc ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x419880
push dword [ebp - 4]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41b2b6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], edx
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41b331
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [edi + 0xc], eax
jb 0x41b32a
mov ecx, dword [edi + 8]
lea edx, [ebp - 4]
push esi
push edx
push eax
push ecx
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b32a
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add dword [edi + 8], edx
sub dword [edi + 0xc], edx
push edi
push dword [ebp - 8]
call fcn.0041ae36
mov eax, dword [ebp - 4]
sub dword [edi + 8], eax
add dword [edi + 0xc], eax
inc esi
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41be31
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
push edi
push edi
push ebx
push edi
call esi
push edi
push edi
push ebx
push edi
mov dword [0x52af5c], eax
call esi
mov ecx, dword [0x52af5c]
mov dword [0x52af60], eax
call fcn.0041da6c
mov dword [0x51aeb8], ebx
call fcn.00404e4c
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0x41bc74
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52af64], eax
test eax, eax
je 0x41bea5
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [0x52af64]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, ebx
jmp 0x41bec3
mov esi, 0x52af5c
cmp dword [esi], edi
je 0x41beb8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
add esi, 4
cmp esi, 0x52af64
jl 0x41beaa
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41bf3b
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
push dword [ebp + 0xc]
mov edi, edx
xor esi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x41bf6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41c01b
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 4]
call fcn.004c8d06
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41bf9a
push 8
pop esi
jmp 0x41c01a
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41bfbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41c013
mov eax, 0x104
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x41bfb1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
push 2
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
cmp byte [edi], 0
jne 0x41c013
push dword [ebp - 0x1c]
push 0x50811c
push edi
call fcn.00402a6e
add esp, 0xc
push ebx
call fcn.004c8ceb
pop ecx
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x41c6d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push esi
mov dword [ebp - 4], ecx
lea edi, [esi + 0x400]
mov byte [esi], bl
call fcn.0049bff0
pop ecx
cmp byte [esi], bl
je 0x41c86a
push str.K7ExecInfo.dat
push str.K7AntiVirus
push str.K7TSecurity
push str.K7_Computing
push esi
push str._s_s_s_s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
cmp byte [0x52a24a], bl
jne 0x41c731
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x52a24a], 1
mov eax, dword [ebp - 4]
push edi
push 0x50c450
add eax, 0x8c
push eax
push str.ExecApps
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, dword [ebp - 4]
add edi, 0x8c
push edi
push esi
call fcn.004c99d0
push esi
call fcn.004d7fec
push str.windows_assessment_toolkit_
push esi
call fcn.0049f330
add esp, 0x14
test eax, eax
jne 0x41c7a6
push str.wbam_
push esi
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
jne 0x41c7a6
push str._axe.exe
push esi
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
jne 0x41c7a6
push str._fas.exe
push esi
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
je 0x41c7b0
mov dword [0x51e818], 1
push 0x5c
push edi
mov dword [ebp + 0xc], ebx
call fcn.0049f6d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41c80a
lea esi, [edi + 1]
push str.firefox.exe
push esi
call fcn.004c8c14
pop ecx
pop ecx
test eax, eax
jne 0x41c80d
lea ecx, [ebp + 0xc]
call fcn.00406914
test eax, eax
je 0x41c7e9
cmp dword [ebp + 0xc], 1
jne 0x41c867
call fcn.00401987
cmp eax, 1
jne 0x41c867
push 4
pop eax
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
push ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
mov edx, 0x10016
jmp 0x41c853
xor esi, esi
inc esi
test edi, edi
je 0x41c867
push str.chrome.exe
push esi
call fcn.004c8c14
pop ecx
pop ecx
test eax, eax
jne 0x41c867
lea ecx, [ebp + 0xc]
call fcn.00406988
test eax, eax
je 0x41c834
cmp dword [ebp + 0xc], 1
jne 0x41c867
call fcn.00402439
cmp eax, 1
jne 0x41c867
push 4
pop eax
lea ecx, [ebp - 8]
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
mov edx, 0x10017
push ecx
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
or ecx, 0xffffffff
call fcn.0048dfc0
add esp, 0x10
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41c871
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x3740
xor ebx, ebx
push ebx
push 0x52af70
call fcn.0049ef70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
mov dword [ebp - 0xc], 0x1a
mov esi, ebx
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov edi, 0x52af74
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
test edx, eax
je 0x41c93b
lea eax, [ebx + 0x41]
push 0x3a
mov word [edi], ax
pop eax
mov word [edi + 2], ax
xor eax, eax
push edi
mov word [edi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi - 4], eax
cmp eax, 3
jne 0x41c938
push 0x104
lea esi, [edi + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
call fcn.004cf874
push esi
call fcn.004c96f6
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edi + 0x218], eax
add eax, esi
pop ecx
pop ecx
cmp word [eax*2 + 0x52af84], 0x5d
je 0x41c93b
push 0x5c
pop ecx
mov word [eax*2 + 0x52af84], cx
inc dword [edi + 0x218]
mov eax, dword [edi + 0x218]
add eax, esi
xor ecx, ecx
mov word [eax*2 + 0x52af84], cx
jmp 0x41c93b
mov edx, dword [ebp - 4]
add esi, 0x110
inc ebx
add edi, 0x220
mov dword [ebp - 8], esi
sub dword [ebp - 0xc], 1
jne 0x41c8ab
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x41c95d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
xor edi, edi
call fcn.004c96f6
pop ecx
cmp eax, 4
jl 0x41ca04
add eax, 0xfffffffc
push str..EXE
lea eax, [esi + eax*2]
push eax
call fcn.004cb941
pop ecx
pop ecx
test eax, eax
jne 0x41ca04
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ca04
push 0x8b8
lea eax, [ebp - 0x8c4]
push edi
push eax
call fcn.0049ef70
push 0x7d0
lea eax, [ebp - 0x838]
mov dword [ebp - 0x8c0], 0x1001
push esi
push eax
mov dword [ebp - 0x8bc], 0xdeaddead
mov dword [ebp - 0x8c4], 0x8b8
call fcn.004cb853
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x8000
push ebx
push edi
push 0x64
pop edx
lea ecx, [ebp - 0x8c4]
call fcn.0041c02a
add esp, 0x28
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ca0b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x41cb97
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x400000
cmp eax, ecx
jbe 0x41ca52
lea edx, [eax - 0x400000]
jmp 0x41ca56
mov edx, ebx
mov ecx, eax
push ebx
push ebx
push edx
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cb90
mov eax, dword [ebp - 8]
cmp eax, 0x400
jb 0x41cb90
add eax, 0xffffffc0
add eax, edi
mov dword [ebp - 0x10], eax
cmp edi, eax
jae 0x41cb8d
cmp dword [edi], 0x44005c
mov dword [ebp - 0x18], edi
jne 0x41cb81
cmp dword [edi + 4], 0x560045
jne 0x41cb81
push 0x12
lea eax, [edi + 8]
push str.ICEHARDDISKVOLUME
push eax
call fcn.004cf949
add esp, 0xc
test eax, eax
jne 0x41cb7e
push edi
mov dword [ebp - 0xc], edi
call fcn.004c96f6
pop ecx
mov dword [ebp - 4], ebx
mov esi, 0x52af84
mov ecx, ebx
mov dword [ebp - 0x14], ebx
lea edi, [edi + eax*2]
add edi, 2
mov edx, dword [ebp - 0xc]
mov ax, word [esi]
cmp ax, word [edx]
mov edx, dword [ebp - 4]
jne 0x41cb17
push dword [esi + 0x208]
push esi
push dword [ebp - 0xc]
call fcn.004cf949
add esp, 0xc
test eax, eax
je 0x41cb31
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, 0x220
inc edx
add ecx, eax
mov dword [ebp - 4], edx
add esi, eax
mov dword [ebp - 0x14], ecx
cmp ecx, 0x3740
jb 0x41caed
jmp 0x41cb79
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
imul edx, ecx, 0x220
add ecx, 0x41
push 0x3a
mov eax, dword [edx + 0x52b18c]
mov word [esi + eax*2 - 6], cx
mov eax, dword [edx + 0x52b18c]
pop ecx
mov word [esi + eax*2 - 4], cx
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x52b18c]
add ecx, 0xfffffffa
lea esi, [ecx + eax*2]
push esi
call fcn.004cf874
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.0041c95d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41cb82
mov eax, dword [ebp - 0x10]
inc edi
cmp edi, eax
jb 0x41ca99
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41cb9e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
xor esi, esi
cmp dword [0x51e9d4], 3
push edi
jne 0x41cd13
cmp byte [0x52a24b], 0
jne 0x41cd13
mov byte [0x52a24b], 1
call fcn.0041c871
cmp eax, 1
jne 0x41cd13
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x408000
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41cd13
push 0x400
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [esp + 0x260]
push str.PREFETCH
push eax
call fcn.004cf983
push str..pf
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x478]
push 0x507afc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x41cd07
mov ebx, eax
lea esi, [edi + 0x400000]
push 0x2e
pop eax
cmp ax, word [esp + 0x3c]
je 0x41ccc2
test byte [esp + 0x10], 0x10
jne 0x41ccc2
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x470]
push 0x507afc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, edi
push esi
push ecx
lea ecx, [esp + 0x474]
call fcn.0041ca0b
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41cc7b
mov eax, str.WndClassK7TSMngr1
push eax
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41ccf9
push 0
push 0
push 0x7eb
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0xc]
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x674]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
Function at 0x41d045
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x51c12c], 0xffffffff
push esi
mov esi, ecx
je 0x41d069
xor eax, eax
inc eax
jmp 0x41d0c9
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea eax, [ebp - 0x108]
push 0x506d08
jb 0x41d085
push str..Global_s
jmp 0x41d08a
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41d0bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
jmp 0x41d0c9
mov dword [0x51c12c], eax
call fcn.0041d0f7
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret

Function at 0x41e3ea
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
push str.K7SentryDispatcher
push ebx
push ebx
push ebx
mov byte [0x52e6b5], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x52e6c4], eax
test eax, eax
jne 0x41e259
pop ebx
ret
cmp byte [0x52a280], bl
mov ecx, 0x41e19c
push esi
mov esi, 0x41e061
cmovne esi, ecx
mov ecx, eax
call fcn.0041d45c
cmp eax, 1
jne 0x41e297
push 0x52e6c0
push ebx
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52e6bc], eax
test eax, eax
je 0x41e297
xor eax, eax
inc eax
jmp 0x41e2a5
push dword [0x52e6c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
ret
push esi
mov esi, ecx
call fcn.0041e1de
mov dword [0x52e6cc], esi
pop esi
jmp 0x41e237
Function at 0x41e527
Capabilities:
Link many functions at runtime

Disassembly:
xor ecx, ecx
mov edx, 0x52f64c
push ebx
xor ebx, ebx
inc ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
cmp eax, 1
jne 0x41e557
mov ebx, edx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
xor eax, eax
inc ecx
lock cmpxchg dword [ebx], ecx
cmp eax, 1
je 0x41e53f
xor ebx, ebx
cmp dword [0x52e6d4], 0
je 0x41e568
xor ebx, ebx
inc ebx
jmp 0x41e646
push edi
push 0x1000
call fcn.0049da2e
mov edi, eax
pop ecx
test edi, edi
je 0x41e632
mov ecx, edi
mov byte [edi], 0
call fcn.00404436
push str.K7ClnReg.dll
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x52e6d4], eax
test eax, eax
je 0x41e632
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.K7ClnReg_Init
push eax
call esi
push str.K7ClnReg_Startup
push dword [0x52e6d4]
mov dword [0x52e6d8], eax
call esi
push str.K7ClnReg_StartupCB
push dword [0x52e6d4]
mov dword [0x52e6dc], eax
call esi
push str.K7ClnReg_Restrictions
push dword [0x52e6d4]
mov dword [0x52e6e0], eax
call esi
push str.K7ClnReg_Cleanup
push dword [0x52e6d4]
mov dword [0x52e6e4], eax
call esi
mov ecx, dword [0x52e6d8]
mov dword [0x52e6e8], eax
pop esi
test ecx, ecx
je 0x41e632
cmp dword [0x52e6dc], 0
je 0x41e632
cmp dword [0x52e6e4], 0
je 0x41e632
test eax, eax
je 0x41e632
push 0
call ecx
test eax, eax
je 0x41e632
xor ebx, ebx
inc ebx
jmp 0x41e637
call fcn.0041e4eb
test edi, edi
je 0x41e645
push 1
push edi
call fcn.0049da37
pop ecx
pop ecx
pop edi
xor eax, eax
xor ecx, ecx
inc eax
mov edx, 0x52f64c
lock cmpxchg dword [edx], ecx
mov eax, dword [0x52e6ec]
test eax, eax
jne 0x41e673
mov eax, str.wndClassK7SentryMngr
push eax
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x52e6ec], eax
test eax, eax
je 0x41e686
push 0
push 0x1d4c0
push 0x1242
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, ebx
pop ebx
ret

Function at 0x41e9d1
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x414]
push ebx
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.0049ef70
push ebx
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0049ef70
add esp, 0x18
lea eax, [ebp - 0x414]
mov ebx, 0x104
push ebx
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.0040cabe
cmp word [ebp - 0x20c], 0
je 0x41ea51
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004cb981
pop ecx
pop ecx
jmp 0x41ea5c
push ebx
push esi
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0049d307
leave
ret
Function at 0x41eace
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x52c]
push 0x124
mov ebx, ecx
mov dword [ebp - 0x534], edi
push edi
push eax
mov dword [ebp - 0x538], ebx
call fcn.0049ef70
push 0x5c
push ebx
call fcn.004cdb0e
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x41ec38
push edi
push 2
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x41ec38
lea eax, [ebp - 0x530]
mov dword [ebp - 0x530], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x41ec31
lea eax, [ebp - 0x50c]
push eax
push ebx
call fcn.004cf9b4
pop ecx
pop ecx
test eax, eax
jne 0x41ec0b
push dword [ebp - 0x528]
push eax
push 0x100418
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41ec0b
lea edx, [ebp - 0x408]
mov byte [ebp - 0x408], 0
mov ecx, edi
call fcn.0041ea6e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x408], 0
je 0x41ec0b
push dword [ebp - 0x538]
lea eax, [ebp - 0x408]
push eax
call fcn.004cf9b4
pop ecx
pop ecx
test eax, eax
jne 0x41ec0b
push dword [ebp - 0x528]
push eax
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41ec0b
mov ecx, edi
call fcn.0040a7b4
test eax, eax
jne 0x41ec04
push 0x4b374b4c
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41ec04
push 0x7530
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 0x534], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x530]
mov dword [ebp - 0x530], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x41eb4f
mov edi, dword [ebp - 0x534]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x41ec49
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41ecc6
push 0x2e
push esi
call fcn.004a1e67
test byte [ebp + 8], 1
pop ecx
pop ecx
je 0x41eca3
push str..EXE
push eax
call fcn.004d8324
pop ecx
pop ecx
test eax, eax
jne 0x41eca3
mov ecx, dword [edi + 0xc]
call fcn.0041eace
test edi, edi
je 0x41ecaf
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
jmp 0x41ecb1
xor eax, eax
push eax
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.0040b553
pop ecx
pop ecx
mov esi, eax
jmp 0x41ecc9
xor esi, esi
inc esi
mov eax, esi
sub eax, 1
je 0x41ed0b
sub eax, 1
je 0x41ed07
sub eax, 0xe
je 0x41ed03
sub eax, 1
je 0x41ecff
dec eax
sub eax, 1
je 0x41ecfb
sub eax, 1
je 0x41ecf7
sub eax, 1
je 0x41ecf3
mov bl, 0x66
jmp 0x41ed0d
mov bl, 0x70
jmp 0x41ed0d
mov bl, 0x72
jmp 0x41ed0d
mov bl, 0x71
jmp 0x41ed0d
mov bl, 0x6f
jmp 0x41ed0d
mov bl, 0x6e
jmp 0x41ed0d
mov bl, 0x65
jmp 0x41ed0d
mov bl, 0x64
test byte [ebp + 8], 4
jne 0x41eda9
call fcn.0041e527
cmp dword [0x52e6dc], 0
je 0x41eda9
cmp esi, 1
je 0x41ed33
cmp esi, 2
jne 0x41eda9
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x8b]
push 0x81
push 0
push eax
call fcn.0049ef70
mov eax, dword [edi + 0x38]
lea esi, [edi + 0x40]
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x98], 0x8e
mov dword [ebp - 0x90], eax
push esi
mov byte [ebp - 0x8c], 0x53
call fcn.004c8d20
pop ecx
mov byte [ebp - 0x8b], al
lea eax, [ebp - 0x8a]
push esi
push eax
call fcn.004c99d0
pop ecx
pop ecx
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [edi + 0xc]
call dword [0x52e6dc]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret