joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a144
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x49a16c
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x49a17d
push 2
call edi
test ax, ax
jge 0x49a17d
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0048ec3c
cmp dword [esi + 0x30], ebx
jne 0x49a257
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0048ec3c
cmp eax, dword [esp + 0x34]
jne 0x49a257
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x49a1f3
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x49a238
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x49a257
cmp eax, 0x205
je 0x49a257
cmp eax, 0x201
je 0x49a257
cmp eax, 0x204
je 0x49a257
cmp eax, ebx
jne 0x49a21e
cmp dword [esp + 0x1c], 0x1b
je 0x49a257
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x4f44cc]
jbe 0x49a24d
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x49a1b0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4032cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4104ac
call fcn.0040fdb0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push str.PATCH_FILES
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
and dword [ebp - 0x14], 0
mov edi, eax
test ebx, ebx
je 0x40337d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x1c]
mov esi, eax
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
and dword [ebp - 4], 0
push 0x1001
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::CFile_1
mov eax, dword [ebp - 0x2c]
push edi
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [eax + 0x40]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
call fcn.0040fcb2
or dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4034d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push str.PATCH_FILES
movzx eax, word [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x403500
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
neg eax
sbb eax, eax
pop esi
neg eax
ret
xor eax, eax
pop esi
ret
Function at 0x40350b
Capabilities:
Query service status
Start service

Disassembly:
mov eax, 0x4104ec
call fcn.0040fdb0
sub esp, 0x8c
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
xor esi, esi
push 0x85
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [0x418594]
cmp ecx, esi
je 0x40358a
push dword [ebp - 0x10]
push 0x3fc
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push dword [ebp + 8]
mov ecx, dword [0x418594]
push 0x3fd
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [0x418594]
push 0x4185a0
push 0x3fe
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str.StartupServise_Start_ServiceName_s
push eax
call sub.MFC42.DLL_CString::Format
push 0x1389
push dword [ebp - 0x10]
call fcn.00403aec
add esp, 0x14
lea eax, [ebp - 0x98]
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x40364f
push edi
lea ecx, [ebp - 0x98]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
mov dword [ebp + 8], edi
je 0x403645
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40363c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
call esi
lea eax, [ebp - 0x34]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call edi
test eax, eax
je 0x40362e
cmp dword [ebp - 0x30], 2
jne 0x40362e
push ebx
call esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
jmp 0x403616
cmp dword [ebp - 0x30], 4
pop ebx
jne 0x40363c
mov dword [ebp - 0x14], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40366b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [ebp + 8]
push esi
sub eax, 0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x104
je 0x4036ce
dec eax
je 0x4036b3
dec eax
je 0x403698
sub eax, 6
je 0x4036ce
jmp 0x4036ed
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x170]
push str.SOFTWAREMedialandTCOstreamClientConfig
push eax
call esi
push str.TClientModulePath
jmp 0x4036e7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x170]
push str.SOFTWAREMedialandTCOstreamConsoleConfig
push eax
call esi
push str.TConsoleModulePath
jmp 0x4036e7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x170]
push str.SOFTWAREMedialandTCOstreamServerConfig
push eax
call esi
push str.TServerModulePath
lea eax, [ebp - 0x6c]
push eax
call esi
lea eax, [ebp + 8]
push eax
push 0x20019
lea eax, [ebp - 0x170]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40373b
lea eax, [ebp - 4]
mov esi, 0x41838c
push eax
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x6c]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40373b
mov eax, dword [ebp - 4]
and byte [eax + 0x41838c], 0
jmp 0x40373d
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40379d
Capabilities:
Copy file

Disassembly:
mov eax, 0x41051c
call fcn.0040fdb0
push ecx
push ecx
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x403805
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
push esi
and dword [ebp - 4], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.CopyFile_Error_SourceFile_s_TarageFile_s_GetLastError_d
push eax
call sub.MFC42.DLL_CString::Format
push 0x1389
push dword [ebp - 0x10]
call fcn.00403aec
or dword [ebp - 4], 0xffffffff
add esp, 0x1c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403845
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push 1
lea eax, [ebp - 0x14]
pop esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
push str.CopyFile_SourceFile_s_TargetFile_s
push eax
call sub.MFC42.DLL_CString::Format
push 0x1771
push dword [ebp - 0x14]
call fcn.00403aec
or dword [ebp - 4], 0xffffffff
add esp, 0x18
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x403852
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40390d
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
lea eax, [ebp - 0x204]
push eax
call esi
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x104]
push str..EXE
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x4038fd
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x105]
cmp byte [eax], 0x5c
je 0x4038f4
dec eax
jmp 0x4038ec
inc eax
push eax
call fcn.00404423
jmp 0x40390c
lea eax, [ebp - 0x104]
push str..DLL
push eax
call esi
pop ecx
pop ecx
push 1
pop eax
pop esi
leave
ret

Function at 0x4039e7
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x410530
call fcn.0040fdb0
push ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
and dword [ebp - 4], 0
push 0x86
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [0x418594]
test ecx, ecx
je 0x403a5f
push dword [ebp - 0x10]
push 0x3fc
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push dword [ebp + 8]
mov ecx, dword [0x418594]
push 0x3fd
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [0x418594]
push 0x4185a0
push 0x3fe
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._Message_Start_TCA__Message__LogData_Full_Path___s__LogData_
push eax
call sub.MFC42.DLL_CString::Format
push 0x1771
push dword [ebp - 0x10]
call fcn.00403aec
add esp, 0x14
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x403aec
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x41053c
call fcn.0040fdb0
sub esp, 0x12c
cmp dword [ebp + 0xc], 0x1389
je 0x403b18
cmp dword [ebp + 0xc], 0x1771
jne 0x403b30
push dword [ebp + 8]
push str.Status_:__s_n
jmp 0x403b20
push dword [ebp + 8]
push str.Error__:__s_n
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x404a9f
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4106a4
call fcn.0040fdb0
push ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.Start_FuncKillProcess_FileName_s_ProcessId_ld
push eax
call sub.MFC42.DLL_CString::Format
push 0x1771
push dword [ebp - 0x10]
call fcn.00403aec
add esp, 0x18
call fcn.00404bb1
push dword [ebp + 0xc]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404b8f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x404b7b
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 5
je 0x404b49
push eax
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.TerminateProcess_Error_FileName_s_AND_dwProcessId__ld_AND_GetLastError_d
push eax
call sub.MFC42.DLL_CString::Format
push 0x1389
push dword [ebp - 0x14]
call fcn.00403aec
add esp, 0x1c
jmp 0x404b4c
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
jmp 0x404ba4
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x404bb1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x404bd2
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x404bce
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x404e77
Capabilities:
Create directory

Disassembly:
mov eax, 0x4106f4
call fcn.0040fdb0
sub esp, 0x34c
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x114], 0
lea esi, [ebp - 0x114]
je 0x404f53
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 1
pop edi
lea eax, [ebp - 0x114]
sub edi, eax
mov al, byte [esi]
cmp al, 0x5c
je 0x404ee1
lea ecx, [edi + esi]
cmp byte [ebp + ecx - 0x114], 0
jne 0x404f47
cmp al, 0x5c
jne 0x404ee6
lea eax, [edi + esi]
jmp 0x404eea
lea eax, [edi + esi + 1]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040fbf2
push str..
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x404f3e
lea eax, [ebp - 0x218]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc esi
cmp byte [esi], 0
jne 0x404eca
pop edi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4053ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x154]
xor esi, esi
mov dword [ebp - 0x54], 0x44
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x80
mov word [ebp - 0x24], si
mov word [ebp - 0x22], si
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
cmp dword [ebp + 0x10], esi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000080
push esi
push esi
push esi
je 0x405429
lea eax, [ebp - 0x154]
push eax
push esi
jmp 0x405431
lea eax, [ebp - 0x154]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x405477
cmp dword [ebp + 0xc], esi
je 0x405467
mov esi, 0x103
mov dword [ebp + 8], esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], esi
je 0x40544a
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40547d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
and dword [ebp - 4], 0
push esi
push edi
push 0x100
lea eax, [ebp - 0x230]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov ebx, eax
call esi
push str.Process32Next
push edi
mov dword [ebp + 8], eax
call esi
push 0
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 0x130], 0x128
call ebx
mov ebx, eax
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__strlwr]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x230]
push eax
call esi
cmp dword [ebp + 8], 0
pop ecx
je 0x405560
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x405559
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [ebp - 8]
test eax, eax
jne 0x405524
jmp 0x405560
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], 0
pop ebx
je 0x4055ac
push dword [ebp - 0x128]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4055a9
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4055a9
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
pop edi
pop esi
leave
ret
Function at 0x405726
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4107a0
call fcn.0040fdb0
sub esp, 0x418
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [eax + 4]
test eax, eax
je 0x405934
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov ebx, 0x41615c
jmp 0x405763
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov ecx, dword [eax]
test edi, edi
mov dword [ebp + 8], ecx
je 0x405927
cmp dword [edi + 0x2e0], 0x7a
jne 0x405927
cmp dword [0x418598], 0
je 0x405795
cmp dword [edi + 0x2d8], 0x8c
jmp 0x40579f
cmp dword [edi + 0x2d8], 0x8b
je 0x405927
mov eax, dword [edi + 0x2dc]
sub eax, 0x64
je 0x40581e
dec eax
je 0x405802
dec eax
dec eax
je 0x4057e7
dec eax
jne 0x40582f
cmp byte [edi + 0x168], 0x2e
lea eax, [edi + 0x168]
push edi
jne 0x40581b
lea eax, [edi + 0x169]
push eax
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
push 0x416a14
push eax
call esi
add esp, 0x14
jmp 0x40582f
lea eax, [ebp - 0x320]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea eax, [ebp - 0x320]
jmp 0x40581b
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x21c]
push eax
jmp 0x405822
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push ebx
push eax
call esi
add esp, 0x10
cmp byte [edi + 0x26c], 0
lea eax, [edi + 0x26c]
je 0x405885
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x424]
push str._s__s
push eax
mov dword [ebp - 0x14], 1
call esi
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x81
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [0x418594]
test ecx, ecx
je 0x4058ea
push dword [ebp - 0x10]
push 0x3fc
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [0x418594]
lea eax, [ebp - 0x118]
push eax
push 0x3fd
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [0x418594]
push 0x4185a0
push 0x3fe
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push dword [edi + 0x2d0]
push eax
call fcn.004053ab
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push str.LaunchAppAndWait_BeforeOrgDistribution_FileName_s
push eax
call sub.MFC42.DLL_CString::Format
push 0x1771
push dword [ebp - 0x10]
call fcn.00403aec
add esp, 0x14
cmp dword [ebp + 8], 0
jne 0x405760
pop edi
pop esi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret