joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a40
Capabilities:
Copy file
Delete file
Read .ini file

Disassembly:
sub esp, 0x4b8
push ebx
mov ebx, dword [esp + 0x4c0]
push ebp
push esi
push edi
push ebx
push 0
push str.MaxFileNo
mov dword [esp + 0x20], ecx
push str.FILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], ecx
jle 0x405beb
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [eax + 1]
lea eax, [esp + 0x20]
push esi
push str.File_d
push eax
mov dword [esp + 0x24], esi
call ebp
add esp, 0xc
lea ecx, [esp + 0x3c8]
lea edx, [esp + 0x20]
push ebx
push 0xff
push ecx
push 0x4131b0
push edx
push str.FILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405bdd
lea eax, [esp + 0x40]
push 0x412354
lea ecx, [esp + 0x3cc]
push eax
push ecx
call fcn.004043f0
lea edx, [esp + 0x4c]
push 0
push edx
call fcn.00404980
lea eax, [esp + 0x54]
push str.UPGRADE_
lea ecx, [esp + 0xd8]
push eax
push ecx
call fcn.00404520
lea edx, [esp + 0xe0]
push edx
call fcn.00404950
add esp, 0x24
test eax, eax
je 0x405bdd
lea eax, [esp + 0x40]
push 0x412344
lea ecx, [esp + 0x1c8]
push eax
push ecx
call fcn.00404520
add esp, 8
lea eax, [esp + 0x1c8]
mov edx, esp
mov dword [esp + 0x20], esp
push eax
push edx
call fcn.00404660
add esp, 8
call fcn.00404550
add esp, 4
lea ecx, [esp + 0x1c4]
lea edx, [esp + 0xc0]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0
lea ecx, [esp + 0x28]
push str.MaxCmdNo
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
xor eax, eax
test edi, edi
jle 0x405bdd
lea esi, [eax + 1]
lea edx, [esp + 0x30]
push esi
push str.CMD_d
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x2c8]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push ebx
push 0xff
push eax
push 0x4131b0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c8]
push eax
call fcn.00408780
mov eax, esi
cmp eax, edi
jl 0x405b8c
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, esi
cmp eax, ecx
jl 0x405a7e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b8
ret 4
Function at 0x407040
Capabilities:
Create http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e118
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x41238c
mov esi, ecx
push 0x4127f8
push 1
push esi
call fcn.00405580
push 0x41238c
push 0x4127d4
push 2
push esi
call fcn.00405580
add esp, 0x20
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
mov eax, dword [esi + 0xf8]
test eax, eax
jne 0x4070ab
push 0
push 0
push 0
push 0
push 0x41238c
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
jmp 0x407105
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x100]
mov ecx, dword [esi + 0xfc]
push eax
push ecx
lea edx, [esp + 0xc]
push str.http:___s:_d
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0x10
push 0
push 0
push eax
push 3
push 0x41238c
call dword [sym.imp.WININET.dll_InternetOpenA]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
push 4
push ecx
push 2
push esi
mov dword [esp + 0x18], 0x1388
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x407130
Capabilities:
Check http status code

Disassembly:
sub esp, 0x18
mov eax, dword [str.Accept:___r_n_r_n]
mov ecx, dword [0x412830]
mov edx, dword [0x412834]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x412838]
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [esp + 0x30]
mov ebx, dword [eax + 4]
push 0
lea ecx, [esp + 0x18]
push 0x4000000
push ecx
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4071a7
mov dword [edi], eax
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0xc
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebp
mov dword [esp + 0x14], 4
xor ebp, ebp
push 0
push 0
push 0
push 0
push esi
inc ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push edx
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x10], 0x197
jne 0x40722b
mov edx, dword [ebx + 0x10c]
lea ecx, [ebx + 0x10c]
mov eax, dword [edx - 8]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x2b
push esi
call edi
mov eax, dword [ebx + 0x110]
lea ecx, [ebx + 0x110]
mov eax, dword [eax - 8]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x2c
push esi
call edi
cmp ebp, 2
je 0x4071b8
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 0xc8
je 0x407253
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor eax, eax
mov dword [ecx], 0
pop ebx
add esp, 0x18
ret 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4080b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
lea eax, [esp + 0x224]
push edi
push eax
mov edi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x228]
push str.upgradeupdatefiles.ini
push ecx
lea edx, [esp + 0x2c]
push str._s_s
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push 0
push str.MaxCmdNo
push str.BEFOREREPLACECMD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
mov ecx, 1
jle 0x408175
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc esi
lea ecx, [esp + 0x14]
push esi
push str.CMD_d
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x24]
lea eax, [esp + 0x128]
lea ecx, [esp + 0x14]
push edx
push 0xff
push eax
push 0x4131b0
push ecx
push str.BEFOREREPLACECMD
call ebp
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call fcn.00408780
test eax, eax
je 0x408177
cmp esi, dword [esp + 0x10]
jl 0x40811d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4085a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
lea eax, [esp + 0x224]
push edi
push eax
mov edi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x228]
push str.upgradeupdatefiles.ini
push ecx
lea edx, [esp + 0x2c]
push str._s_s
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push 0
push str.MaxCmdNo
push str.AFTERREPLACECMD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
mov ecx, 1
jle 0x408677
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc esi
lea ecx, [esp + 0x14]
push esi
push str.CMD_d
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x24]
lea eax, [esp + 0x128]
lea ecx, [esp + 0x14]
push edx
push 0xff
push eax
push 0x4131b0
push ecx
push str.AFTERREPLACECMD
call ebp
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call fcn.00408780
test eax, eax
je 0x40866a
cmp esi, dword [esp + 0x10]
jl 0x40860d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x31c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x31c
ret

Function at 0x408690
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
lea eax, [esp + 0x224]
push edi
push eax
mov edi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x228]
push str.upgradeupdatefiles.ini
push ecx
lea edx, [esp + 0x2c]
push str._s_s
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x24]
mov ebp, 1
push eax
push 0
push str.MaxCmdNo
push str.FAILUREREPLACECMD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x408767
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc esi
lea ecx, [esp + 0x14]
push esi
push str.CMD_d
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x24]
lea eax, [esp + 0x128]
lea ecx, [esp + 0x14]
push edx
push 0xff
push eax
push 0x4131b0
push ecx
push str.FAILUREREPLACECMD
call ebp
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call fcn.00408780
test eax, eax
je 0x40875a
cmp esi, dword [esp + 0x10]
jl 0x4086fd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x31c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x408ad0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40e1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x24]
push 0x412a60
push eax
push ecx
call fcn.00404470
add esp, 0xc
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edx, [esp + 0x24]
push 0
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x408bad
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x408ba7
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x40]
test eax, eax
jne 0x408b75
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x7c]
jmp 0x408ba2
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push 1
mov ecx, eax
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, esi
call fcn.00408d00
mov byte [esp + 0x74], 0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x408b33
pop edi
pop ebp
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 8]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040d66c
mov ecx, dword [esp + 0x64]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret 4

Function at 0x408be0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40e1e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x1c]
push 0x412a60
push eax
push ecx
call fcn.00404470
add esp, 0xc
lea ecx, [esp]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 8]
mov dword [esp + 0x6c], 0
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x408c87
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x408c81
mov eax, dword [esp + 8]
push 0x10
lea ecx, [esp + 0xc]
call dword [eax + 0x40]
test eax, eax
jne 0x408c81
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x408c3c
pop edi
pop esi
lea ecx, [esp]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp]
mov dword [esp + 0x64], 0xffffffff
call fcn.0040d66c
mov ecx, dword [esp + 0x5c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x408d00
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40e216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebx
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ebp, dword [esp + 0x360]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea eax, [esp + 0xfc]
push str._s.
push eax
mov dword [esp + 0x364], 0
call ebx
add esp, 0xc
lea ecx, [esp + 0xf8]
push 0
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x408e4b
push esi
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x408e3d
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x364], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x360], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x40]
test eax, eax
lea eax, [esp + 0x38]
push eax
push ebp
push str._s_s
je 0x408e22
lea ecx, [esp + 0x1d4]
push ecx
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x1c8]
push edx
call fcn.00408d00
jmp 0x408e3d
lea ecx, [esp + 0x29c]
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x408d72
pop edi
pop esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
test eax, eax
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x408e8e
call fcn.0040d66c
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.0040d66c
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4

Function at 0x408eb0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x80
lea eax, [esp + 0x40]
push esi
push edi
mov edi, dword [esp + 0x8c]
push 0x412a60
push eax
push edi
call fcn.00404470
lea ecx, [esp + 0x54]
lea edx, [esp + 0x14]
push ecx
push str._s.bak
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
je 0x408f2a
push edi
push str.Backup
push 0x412a84
call fcn.004047c0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x80
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Backup
push 0x412a6c
call fcn.004047c0
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x80
ret 4
Function at 0x408f60
Capabilities:
Copy file

Disassembly:
sub esp, 0x80
lea eax, [esp]
push esi
mov esi, dword [esp + 0x88]
push 0x412a60
push eax
push esi
call fcn.00404470
lea ecx, [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
push str._s.bak
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x5c]
push eax
call fcn.00404950
add esp, 0x1c
test eax, eax
je 0x408fd8
lea ecx, [esp + 4]
push 0
lea edx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push str.Restore
push 0x412aac
call fcn.004047c0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x80
ret 4
push esi
push str.Restore
push 0x412a90
call fcn.004047c0
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x80
ret 4

Function at 0x409680
Capabilities:
Terminate process

Disassembly:
sub esp, 0x40
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x4c]
push 0x412a60
push eax
mov esi, ecx
push edi
call fcn.00404470
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00409780
test eax, eax
jbe 0x4096c9
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4096c9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push str.TerminateProcess
push 0x412a84
call fcn.004047c0
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x40
ret 4

Function at 0x4096f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0xd4
push esi
mov esi, dword [esp + 0xdc]
push edi
lea eax, [esp + 0x5c]
push 0x412a60
push eax
push esi
call fcn.00404470
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x28], 0x44
push eax
push 0
mov word [esp + 0x60], 5
mov dword [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
push str.CreateProcess
push 0x412a84
call fcn.004047c0
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0xd4
ret 4
Function at 0x409780
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
push eax
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409882
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x409882
lea edx, [esp + 0x3c]
push 1
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00404700
mov esi, dword [esp + 0x150]
mov edx, dword [eax]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll__strnicmp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call ebp
add esp, 0x18
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x409823
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409882
lea ecx, [esp + 0x3c]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00404700
mov edx, dword [eax]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call ebp
add esp, 0x18
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40989c
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x409836
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 4

Function at 0x43cf70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x43ccda
and ebx, ebx
inc edx
call fcn.0043cf9d
add edx, 0x620cdb5b
xor dword [esi], eax
inc esi
sub edx, ebx
mov ebx, ebx
cmp esi, edi
jne fcn.0043cf70
or edx, ebx
ret
Function at 0x4165ef
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x416636
cmp ebx, 0x20
je 0x416636
cmp ebx, 0xffffffe0
je 0x416636
jne 0x41663f
add eax, 1
cmp esi, eax
je 0x41664c
jne 0x41661b
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x416650
jne 0x416617
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x416664
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x4166a9
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x4166af
add eax, 4
pop esi
dec esi
push esi
jne 0x416691
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x4469a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e78f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.004dbc96
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.0044b790
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x4469f4
jmp dword [ecx*4 + 0x446b5c]
mov al, byte [esi]
test al, al
je 0x446a22
cmp al, 0x20
je 0x446a0e
cmp al, 0xa1
jne 0x446a22
cmp byte [esi + 1], al
jne 0x446a22
test al, 0x80
je 0x446a1a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x446a22
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x446a01
test ecx, ecx
je case.default.0x4469f4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x4469f4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x446a68
cmp dl, 0xa1
jne 0x446a5c
cmp byte [eax + 1], 0xa1
jne 0x446a5c
test ecx, ecx
jne 0x446a54
mov edi, eax
mov ecx, 1
inc eax
jmp 0x446a7c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x446a96
jmp 0x446a7c
cmp dl, 0x20
jne 0x446a7a
test ecx, ecx
jne 0x446a73
mov edi, eax
mov ecx, 1
jmp 0x446a7c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x446a3c
cmp ecx, 1
jne case.default.0x4469f4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4469f4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4469f4
mov al, byte [esi]
test al, al
je 0x446aee
test al, 0x80
mov byte [esp + 0x3c], al
je 0x446ad4
mov cl, byte [esi + 1]
test cl, cl
je 0x446aee
cmp al, 0xa1
jne 0x446ac4
cmp cl, al
je 0x446ad1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.0044ba60
inc esi
jmp 0x446ae6
cmp al, 0x20
je 0x446ae6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0044baa0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x446aad
push 0
lea ecx, [esp + 0x14]
call fcn.0044baa0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00455230
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x446b21
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x6eb530
call fcn.0044b990
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dbc28
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret