joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403950
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push esi
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push esi
mov ebx, eax
call edi
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x403990
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4039a7
mov eax, 1
pop esi
ret
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
push 0x2001
push 4
mov edi, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4039e0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push esi
push 0x2001
push 0x10
mov edi, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret

Function at 0x403a10
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cdbb
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov ecx, 0x41
xor eax, eax
push esi
mov esi, dword [esp + 0x11c]
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x10]
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp esi, 0x1a
jne 0x403a85
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.0040b86c
lea eax, [esp + 0xc]
push 0x411048
push eax
lea ecx, [esp + 0x10]
push str._s_s.lnk
push ecx
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0x10
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 8]
push 0
push ecx
push 0x2001
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x403b10
Capabilities:
Delete registry key

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403b40
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, 1
pop ecx
ret

Function at 0x403b60
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403b84
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x403ba6
mov eax, dword [esp + 8]
test eax, eax
je 0x403b9a
cmp eax, 0xa
jne 0x403bbf
mov eax, 1
add esp, 0x94
ret
cmp eax, 5
jne 0x403bc9
mov eax, dword [esp + 8]
test eax, eax
jne 0x403bc9
mov eax, 2
add esp, 0x94
ret
cmp eax, 0x5a
mov eax, 3
je 0x403bce
mov eax, 4
add esp, 0x94
ret
Function at 0x403be0
Capabilities:
Create process on windows
Create process suspended
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x40cdf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x670
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x684], ebx
call fcn.0040b86c
lea eax, [esp + 0xc]
mov byte [esp + 0x684], 1
push eax
call fcn.004022a0
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esp + 0x68c]
lea eax, [esp + 0x47c]
push edx
push str.c:Ipdetect.exe
push str._s__c_s__fc:Gpppoe.txt
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x44]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x34]
push edx
mov dword [esp + 0x2c], ecx
push eax
push ebx
mov dword [esp + 0x38], ecx
push ebx
push 0x20
mov dword [esp + 0x44], ecx
push ebx
push ebx
lea ecx, [esp + 0x498]
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x24]
or edi, 0xffffffff
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::CFile
push ebx
push ebx
push str.c:Gpppoe.txt
lea ecx, [esp + 0x20]
mov byte [esp + 0x690], 2
call sub.MFC42.DLL_CFile::Open
cmp eax, 1
jne 0x403d77
lea ecx, [esp + 0x14]
mov esi, 0x400
call sub.MFC42.DLL_CFile::GetLength
cmp eax, esi
jae 0x403cfc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
lea edx, [esp + 0x78]
push esi
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CFile::Close
push str.c:Gpppoe.txt
call fcn.00403990
add esp, 4
xor eax, eax
cmp esi, ebx
jle 0x403d39
cmp byte [esp + eax + 0x78], bl
jne 0x403d34
mov byte [esp + eax + 0x78], 0x20
inc eax
cmp eax, esi
jl 0x403d29
lea eax, [esp + 0x78]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + esi + 0x7c], bl
call sub.MFC42.DLL_CString::CString_2
push ebx
push str.gnetpppoe_found.
lea ecx, [esp + 0x18]
mov byte [esp + 0x68c], 3
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
mov byte [esp + 0x684], 2
lea ecx, [esp + 0x10]
jge 0x403dc5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x684], 1
call fcn.0040b9b6
lea ecx, [esp + 0xc]
mov byte [esp + 0x684], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68c]
mov dword [esp + 0x684], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x67c
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x684], 1
call fcn.0040b9b6
lea ecx, [esp + 0xc]
mov byte [esp + 0x684], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68c]
mov dword [esp + 0x684], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x403dad
Function at 0x403fd0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0x554
push esi
mov esi, ecx
push 1
call fcn.00405b10
test eax, eax
jne 0x403fec
pop esi
add esp, 0x554
ret
push str.GetVnetBrowserUrl
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40400d
push 0
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0xec]
push ebx
push edi
push 0
push 0
push 0
push 0
push eax
push 0x404210
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [esi + 0xec]
mov dword [esi + 0xcc], eax
mov edx, dword [ecx]
call dword [edx + 0xc0]
push 0x20
push 0x411484
push 0x411464
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x160]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x60]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x411094
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unl.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x160]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x64]
lea edx, [esp + 0x364]
push ecx
push str._s_21__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
push str.CWClient_is1
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
call fcn.00403b10
push str.CWClient
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
call fcn.00403b10
add esp, 0x20
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1c]
push ecx
mov dword [esp + 0x18], eax
push edx
push 0x4112f0
push eax
push 0x20
push eax
push eax
mov dword [esp + 0x34], eax
push eax
lea eax, [esp + 0x380]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
call fcn.00406af0
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x554
ret
Function at 0x404dbb
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cf4b
push eax
mov dword fs:[0], esp
sub esp, 0x55c
push esi
mov esi, ecx
push 1
call fcn.00405b10
test eax, eax
jne 0x404ddf
pop esi
mov ecx, dword [esp + 0x55c]
mov dword fs:[0], ecx
add esp, 0x568
ret
push str.GetVnetBrowserUrl
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404e00
push 0
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push edi
push 0
push 0
push 0
push 0
push 0
push 0x404fc0
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [esi + 0xec]
mov dword [esi + 0xcc], eax
mov eax, dword [ecx]
call dword [eax + 0xc0]
push 0x80000002
push 0
lea ecx, [esp + 0x14]
push str.zString6
push ecx
call fcn.004059b0
mov esi, dword [eax]
push 0x80000002
push 0
lea edx, [esp + 0x28]
push str.zString7
push edx
mov dword [esp + 0x590], 0
call fcn.004059b0
mov eax, dword [eax]
add esp, 0x20
push 0x24
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x570], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x168]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x68]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x411094
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x68]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unl.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x168]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x36c]
push ecx
push str._s_21__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
push str.CWClient_is1
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
call fcn.00403b10
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 0x18
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], eax
push edx
push 0x4112f0
push eax
push 0x20
push eax
push eax
mov dword [esp + 0x3c], eax
push eax
lea eax, [esp + 0x388]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
call fcn.00406af0
mov ecx, dword [esp + 0x568]
pop edi
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x568
ret
Function at 0x4059b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40d075
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x4115fc
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esp + 0x344]
mov ebp, 1
cmp edi, ebx
mov dword [esp + 0x334], ebp
jne 0x4059ff
mov edi, str.SOFTWARECW_Mini_tem
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x405a60
mov esi, dword [esp + 0x33c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebp
jmp 0x405ad7
mov ecx, dword [esp + 0x340]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x34], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x405aa2
lea ecx, [esp + 0x10]
push ecx
jmp 0x405ac5
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x10]
push edx
call fcn.0040b974
push 0xa
push 0x7c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
lea eax, [esp + 0x10]
push eax
mov esi, dword [esp + 0x340]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x334], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x32c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x328
ret
Function at 0x405b10
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d090
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 0
call fcn.00405d00
mov esi, eax
add esp, 4
test esi, esi
je 0x405c46
mov al, byte [esp + 0x28]
test al, al
je 0x405bc3
push 0x80000002
push 0
lea eax, [esp + 0x10]
push str.zString2
push eax
call fcn.004059b0
mov edi, dword [eax]
push 0x80000002
push 0
lea ecx, [esp + 0x40]
push str.zString3
push ecx
mov dword [esp + 0x40], 0
call fcn.004059b0
mov eax, dword [eax]
add esp, 0x20
push 0x24
push edi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x28]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp edi, 7
jne 0x405bc3
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push 0
push 0x2710
push 0
push 0
push 0
push 0x402
push esi
call edi
push 0
push 0x2710
push 0
push 0
push 0
push 0x401
push esi
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00406010
cmp eax, 1
jne 0x405cde
mov eax, dword [esp + 0xc]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x405cde
call fcn.00406010
cmp eax, 1
jne 0x405cde
mov al, byte [esp + 0x28]
test al, al
je 0x405cd9
push 0x80000002
push 0
lea eax, [esp + 0x1c]
push str.zString2
push eax
call fcn.004059b0
mov esi, dword [eax]
push 0x80000002
push 0
lea ecx, [esp + 0x28]
push str.zString3
push ecx
mov dword [esp + 0x40], 1
call fcn.004059b0
mov eax, dword [eax]
add esp, 0x20
push 0x24
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp esi, 7
jne 0x405cd9
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
call fcn.00406870
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x405e90
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x405eaf
pop edi
pop esi
ret 8
push esi
push 0x405f90
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405eeb
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
push edi
neg esi
sbb esi, esi
and esi, 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 8
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x406010
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x40d0b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x406068
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
lea eax, [esp + 0xc]
push esi
push eax
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406146
lea ecx, [esp + 8]
call fcn.0040b86c
push str.CWClient.exe
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x34]
xor esi, esi
push ecx
lea ecx, [esp + 0xc]
call fcn.0040b974
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x40611a
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40611f
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040b974
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4060e2
mov esi, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x406148
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x138]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x4066b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
lea ecx, [esp + 8]
call fcn.0040b86c
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], esi
call fcn.0040b86c
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CStringArray::CStringArray
mov ecx, dword [esp + 0x38]
push 1
lea eax, [esp + 0x18]
push str.reg.ini
push eax
push ecx
mov byte [esp + 0x40], 2
call fcn.00406f20
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, esi
jle 0x406822
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
lea eax, [edx + esi*4]
push eax
call fcn.0040b93e
mov ecx, dword [esp + 8]
lea edx, [esp + 0x38]
mov eax, dword [ecx - 8]
lea ecx, [esp + 8]
add eax, 0xfffffffc
push eax
push edx
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call fcn.0040b93e
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.0040b93e
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 8]
push str..dll
push ecx
call edi
add esp, 8
test eax, eax
je 0x4067a4
mov edx, dword [esp + 8]
push str..ocx
push edx
call edi
add esp, 8
test eax, eax
jne 0x406815
mov eax, dword [esp + 8]
push str..dll
push eax
call edi
add esp, 8
test eax, eax
jne 0x4067f6
mov ecx, dword [esp + 0x18]
push 0x4117d4
lea ecx, [ecx + esi*4]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x4067f6
mov edx, dword [esp + 0x18]
push 0x4117d0
lea ecx, [edx + esi*4]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x406815
mov eax, dword [esp + 0x18]
push str.msvc
lea ecx, [eax + esi*4]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x406815
push esi
lea ecx, [esp + 0x18]
call fcn.00406860
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.004062c0
add esp, 4
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x406720
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.0040b956
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret