joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406160
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4090a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], 0x40a64c
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
call fcn.00401000
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.004018f0
test eax, eax
jne 0x406239
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.004010a0
mov dword [esp + 0x1c], 0x40a64c
mov eax, dword [esp + 0x20]
mov byte [esp + 0x38], 3
cmp eax, edi
je 0x40620a
mov edx, dword [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], 0x40a3f0
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret 4
lea ecx, [esp + 0x10]
call fcn.00402570
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, edi
jle 0x406285
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.00406300
mov edx, dword [esp + 0xc]
push edx
call ebp
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x40625d
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.004010a0
mov dword [esp + 0x1c], 0x40a64c
mov eax, dword [esp + 0x20]
mov byte [esp + 0x38], 4
cmp eax, edi
je 0x4062c0
mov ecx, dword [esp + 0x24]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], 0x40a3f0
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x30
ret 4
Function at 0x406570
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4090e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x470]
lea ecx, [esp + 0x60]
push eax
push str.regsvr32__u__s___s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
push esi
push esi
push esi
push 1
push esi
lea edx, [esp + 0x7c]
push esi
push edx
push esi
mov word [esp + 0x74], si
mov dword [esp + 0x70], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x406620
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40667c
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x460]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x464
ret 4
Function at 0x4066a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x20], 0x40a64c
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
push ecx
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
call fcn.00401000
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
push ecx
lea ecx, [esp + 0x18]
call fcn.00402250
test eax, eax
jne 0x40677b
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.004010a0
mov dword [esp + 0x20], 0x40a64c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3c], 3
cmp eax, ebp
je 0x40674c
mov edx, dword [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], 0x40a3f0
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret 4
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, ebp
jle 0x4067e8
lea ecx, [esp + 0xc]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.00406300
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
call fcn.00406570
cmp eax, ebp
je 0x4067d1
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x40678e
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.004010a0
mov dword [esp + 0x20], 0x40a64c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3c], 5
cmp eax, ebp
je 0x406823
mov ecx, dword [esp + 0x28]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], 0x40a3f0
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x34
ret 4
Function at 0x4068a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
push str._s.
push ecx
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x18]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4069f7
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40698b
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
test eax, eax
je 0x406984
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
call fcn.004068a0
jmp 0x40698b
mov ecx, dword [esp + 0xc]
push ecx
call ebp
test esi, esi
jne 0x406916
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCRT.dll__rmdir]
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.0040813c
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.0040813c
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebp
add esp, 0x34
ret 4
Function at 0x406ce0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], ecx
push 0x3e8
call edi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406d25
test esi, esi
jne 0x406d68
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SVAHOST.EXE
call fcn.00407160
push str.SVBHOST.EXE
call fcn.00407160
push str.ESMSUI.EXE
call fcn.00407160
push str.RadiusAuthentication.exe
call fcn.00407160
add esp, 0x10
push 0x2710
call edi
mov ebx, 0x14
jmp 0x406cf9
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SVAHOST.EXE
call fcn.00407160
push str.SVBHOST.EXE
call fcn.00407160
push str.ESMSUI.EXE
call fcn.00407160
push str.RadiusAuthentication.exe
call fcn.00407160
add esp, 0x10
test ebx, ebx
jle 0x406dac
mov ecx, dword [esp + 0x10]
dec ebx
push ebx
call fcn.00406ce0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x406e20
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x409218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x60]
push eax
push 0x40d050
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
push esi
push esi
push esi
push 1
push esi
lea edx, [esp + 0x7c]
push esi
push edx
push esi
mov word [esp + 0x74], si
mov dword [esp + 0x70], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x406ed0
lea ecx, [esp + 0x174]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x406f29
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x174]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x164]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x168
ret 4
Function at 0x406f50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x4c]
lea ecx, [esi + 8]
push eax
mov dword [esp + 0x44], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
call fcn.00401000
mov ebp, 0x40a64c
xor ebx, ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x44], 3
call fcn.00401f30
test eax, eax
jne 0x407040
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x28]
mov byte [esp + 0x40], 4
cmp eax, ebx
je 0x407005
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x28]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0x40a3f0
mov byte [esp + 0x40], 1
call fcn.004010a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40713c
lea ecx, [esp + 0x18]
call fcn.00402570
mov ecx, esi
call fcn.00406dc0
push 0x14
mov ecx, esi
call fcn.00406ce0
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, ebx
jle 0x4070c2
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00406300
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push str.__uninstall
push edx
push ecx
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_operator
mov ecx, esi
call fcn.00406e20
cmp eax, ebx
je 0x4070a6
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jl 0x407069
mov ebp, 0x40a64c
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.snetcfg__u_ms_jdpassthru
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00406e20
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x28]
mov byte [esp + 0x40], 6
cmp eax, ebx
je 0x407103
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x28]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0x40a3f0
mov byte [esp + 0x40], 1
call fcn.004010a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 8
Function at 0x407160
Capabilities:
Enumerate processes
Print debug messages
Terminate process
Terminate process by name

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
jne 0x407174
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40718e
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
push 0x128
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
push edi
push ebx
mov dword [edi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40729a
lea esi, [edi + 0x24]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4071db
test cl, cl
je 0x4071d7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4071db
add eax, 2
add esi, 2
test cl, cl
jne 0x4071b7
xor eax, eax
jmp 0x4071e0
sbb eax, eax
sbb eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x40723d
mov eax, dword [edi + 8]
push eax
push 1
push 0x1f0fff
call ebp
mov esi, eax
test esi, esi
je 0x40723d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40d498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
test edi, edi
je 0x4072ed
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40729a
mov eax, dword [esp + 0x14]
lea esi, [edi + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407273
test cl, cl
je 0x40726f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407273
add eax, 2
add esi, 2
test cl, cl
jne 0x40724f
xor eax, eax
jmp 0x407278
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40728f
mov eax, dword [edi + 8]
push eax
push 1
push 0x1f0fff
call ebp
mov esi, eax
test esi, esi
jne 0x4072b8
push edi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407248
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4072ae
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x40d498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
test edi, edi
je 0x4072ed
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407300
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x409288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x60]
push eax
push 0x40d050
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
push esi
push esi
push esi
push 1
push esi
lea edx, [esp + 0x7c]
push esi
push edx
push esi
mov word [esp + 0x74], si
mov dword [esp + 0x70], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x4073c5
lea ecx, [esp + 0x174]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
add esp, 0x168
ret
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x174]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x164]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x168
ret

Function at 0x407a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4093e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.00404150
lea ecx, [esp + 0xc]
mov ebx, eax
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, ebx
mov dword [esp + 0x30], 0
lea esi, [edi + 8]
call fcn.00404270
push eax
push 0x40d050
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, ebx
add edi, 4
call fcn.00404360
push eax
push 0x40d050
push edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40d610
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x407b16
mov edi, dword [edi]
push 0x40d610
push edi
call ebx
add esp, 8
test eax, eax
je 0x407b16
mov esi, dword [esi]
push 0
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
je 0x407b22
call fcn.0040813c
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040813c
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x407d20
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.ESMSUI
push ecx
call esi
mov edx, dword [esp + 8]
push str.RadiusAuthentication
push edx
mov edi, eax
call esi
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
and eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x407d80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
push str.C:Documents_and_SettingsAll_Users_
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407df0
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00407a50
mov ecx, esi
call fcn.00407b40
mov ecx, esi
call fcn.00407bd0
mov ecx, esi
call fcn.00407cb0
mov ecx, esi
call fcn.00407c40
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00407d20
mov ecx, esi
call fcn.00407d80
push ecx
mov ecx, esp
mov dword [esp + 8], esp
push str.SVAHOST__uninstall
call sub.MFC42.DLL_CString::CString_2
call fcn.00407300
mov ecx, esp
mov dword [esp + 8], esp
push str.SVBHOST__uninstall
call sub.MFC42.DLL_CString::CString_2
call fcn.00407300
mov ecx, esp
mov dword [esp + 8], esp
push str.snetcfg__u_ms_jdpassthru
call sub.MFC42.DLL_CString::CString_2
call fcn.00407300
add esp, 4
push 0
push 0x40d408
push 0x40d560
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop esi
pop ecx
ret