joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100365f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x100369a
xor eax, eax
jmp 0x1003791
push edi
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x200
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x218]
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
cmp ebx, esi
je 0x1003769
cmp dword [ebp - 0x10], esi
jne 0x10036f7
cmp dword [ebp - 0xc], esi
jne 0x1003722
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push 0x1001510
push dword [ebp - 8]
push eax
call fcn.01003796
cmp eax, 0xb
mov dword [ebp - 4], eax
jne 0x10036f7
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], esi
jne 0x1003722
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push 0x1001550
push dword [ebp - 8]
push eax
call fcn.01003796
cmp eax, 0x23
mov dword [ebp - 4], eax
jne 0x1003722
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x14], esi
jne 0x100374d
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push 0x1001520
push dword [ebp - 8]
push eax
call fcn.01003796
cmp eax, 0x2a
mov dword [ebp - 4], eax
jne 0x100374d
mov dword [ebp - 0x14], 1
cmp ebx, esi
je 0x1003769
cmp dword [ebp - 0x10], esi
je 0x1003760
cmp dword [ebp - 0x14], esi
je 0x1003760
cmp dword [ebp - 0xc], esi
jne 0x1003769
cmp dword [ebp - 8], edi
je 0x10036a7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], esi
je 0x100378c
cmp dword [ebp - 0xc], esi
jne 0x100378c
lea eax, [ebp - 0x218]
push edi
push eax
push dword [ebp + 8]
call fcn.0100385b
mov eax, dword [ebp - 0x14]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x100385b
Capabilities:
Delete file
Get common file path
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
lea eax, [ebp - 0x114]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call dword [sym.imp.MSVCRT40.dll_strrchr]
pop ecx
mov esi, eax
pop ecx
lea eax, [ebp - 0x114]
push 0x5c
push eax
call dword [sym.imp.MSVCRT40.dll_strchr]
xor ebx, ebx
pop ecx
cmp esi, ebx
pop ecx
je 0x10038b2
cmp eax, esi
jne 0x10038ae
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov byte [esi], bl
jmp 0x10038c4
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x114]
push 0x10016c0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10039d8
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push pe_nt_image_headers32
push 3
push ebx
push ebx
lea eax, [ebp - 0x218]
push 0x40000000
push eax
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10039aa
push ebx
push 0x8000000
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x10039a1
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push ebx
push eax
push 0x34
push 0x1001578
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
je 0x100399a
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x100399a
cmp dword [ebp - 4], ebx
je 0x100398e
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x10], ebx
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call esi
cmp eax, ebx
je 0x100398b
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 4]
je 0x100398e
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x100399a
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
je 0x1003951
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x10039ca
push dword [ebp + 8]
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [ebp - 8], ebx
jne 0x10039d8
lea eax, [ebp - 0x218]
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x1004579
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x10073f4
call sub.MSVCRT40.dll__EH_prolog
sub esp, 0x15c
push esi
push edi
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.01006c4e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.01006c42
push 0x1001b54
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jg 0x1004665
push 0x1001bec
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jg 0x1004665
push 0x1001be4
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jg 0x1004665
push 0x1001bdc
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jg 0x1004665
push 0x1001bd8
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jg 0x1004665
push 0x1001bd4
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jg 0x1004665
push 0x1001bd0
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jg 0x1004665
push 0x1001bcc
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::Find_1
test eax, eax
jle 0x10046f5
mov ecx, dword [ebp - 0x1c]
push 0x3f9
call sub.MFC40.DLL_CWnd::GetDlgItem
mov esi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, dword [eax - 8]
sub eax, 3
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC40.DLL_CString::Left
mov edi, eax
lea eax, [ebp - 0x10]
push 0x1001bc8
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call sub.MFC40.DLL_operator
push edi
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
call sub.MFC40.DLL_operator_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.01006c4e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.01006c42
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.01006c42
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.01006c42
push dword [ebp - 0x10]
push 0
push 0x180
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.01006c4e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01006c42
test esi, esi
jne 0x10045d9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01006c42
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01006c42
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4
Function at 0x1004784
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1007418
call sub.MSVCRT40.dll__EH_prolog
push ecx
sub esp, 0x258
push ebx
push esi
push edi
lea eax, [ebp - 0x168]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x14], ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x1001c34
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x168]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c]
call sub.MFC40.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
xor ebx, ebx
lea eax, [ebp - 0x168]
push 0x3021
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC40.DLL_CFile::CFile
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC40.DLL_CFile::SetLength
mov edx, 0x1001c14
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CFile::Write
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call sub.MFC40.DLL_CFile::Write
mov edx, 0x1001bf0
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CFile::Close
mov esi, dword [ebp - 0x14]
push 0x40b
mov ecx, esi
call sub.MFC40.DLL_CWnd::GetDlgItem
cmp dword [esi + 0xa0], ebx
jne 0x1004894
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x168]
push ebx
push ecx
mov ecx, eax
call fcn.01006a97
jmp 0x100489b
mov ecx, eax
call fcn.01006ac3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01006cde
or dword [ebp - 4], 0xffffffff
call sub.MFC40.DLL_AfxTryCleanup
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x1004937
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100743c
call sub.MSVCRT40.dll__EH_prolog
push ecx
sub esp, 0x258
push ebx
push esi
push edi
lea eax, [ebp - 0x168]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x14], ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x1001c34
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x168]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c]
call sub.MFC40.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
xor ebx, ebx
lea eax, [ebp - 0x168]
push 0x3021
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC40.DLL_CFile::CFile
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC40.DLL_CFile::SetLength
mov edx, 0x1001c40
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CFile::Close
mov esi, dword [ebp - 0x14]
push 0x40b
mov ecx, esi
call sub.MFC40.DLL_CWnd::GetDlgItem
cmp dword [esi + 0xa0], ebx
jne 0x1004a13
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x168]
push ebx
push ecx
mov ecx, eax
call fcn.01006a97
jmp 0x1004a1a
mov ecx, eax
call fcn.01006ac3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01006cde
or dword [ebp - 4], 0xffffffff
call sub.MFC40.DLL_AfxTryCleanup
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1005a90
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 8]
call fcn.01005e7f
test eax, eax
je 0x1005b10
push edi
push esi
push ebx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 3
push ecx
push 1
call dword [sym.imp.MSVCRT40.dll_calloc]
mov edi, dword [ebp + 8]
pop ecx
pop ecx
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
pop eax
and ecx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x10], 0x54
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push ebx
call dword [sym.imp.MSVCRT40.dll_free]
pop ecx
pop ebx
pop esi
pop edi
leave
ret 4

Function at 0x1005c0e
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov esi, ecx
push 2
push dword [esi + 0x4f4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi + 0x4e4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edi, [esi + 0x4e0]
mov dword [ebp - 4], 1
push dword [edi]
call ebx
test eax, eax
je 0x1005c93
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push dword [edi]
call ebx
test eax, eax
je 0x1005c93
push 0
lea eax, [ebp - 0x108]
push 5
push eax
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1005c97
lea eax, [ebp - 0x108]
push eax
push dword [edi]
call ebx
test eax, eax
jne 0x1005c97
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1005cb2
mov ecx, edi
call sub.MFC40.DLL_CString::LockBuffer
push eax
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
mov ecx, edi
call sub.MFC40.DLL_CString::UnlockBuffer
cmp dword [ebp + 8], 0
jne 0x1005cc4
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01005b84
jmp 0x1005cd2
push 2
push dword [esi + 0x4f0]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi + 0x4f4]
push 0x1002878
push 0x1002868
push 0x1002858
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, esi
call fcn.01005cfb
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4
Function at 0x1005e96
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, ecx
push 1
xor ebx, ebx
mov eax, dword [edi + 0x4f0]
pop esi
push pe_nt_image_headers32
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x540
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 0x1002884
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1005f36
mov dword [edi + 0x518], esi
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jne 0x1005f2b
push esi
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1005ef0
cmp dword [ebp - 0x18], 0xf
jne 0x1005f07
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x1005f07
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005f3d
mov ecx, edi
call fcn.01005f56
push 2
mov dword [edi + 0x518], ebx
push dword [edi + 0x4f0]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005f56
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10076e0
call sub.MSVCRT40.dll__EH_prolog
sub esp, 0x74
push ebx
push esi
push edi
push 1
mov edi, ecx
pop ebx
lea ecx, [ebp - 0x10]
mov dword [edi + 0x518], ebx
call sub.MFC40.DLL_CString::CString
xor esi, esi
push 0x71
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call sub.MFC40.DLL_CString::LoadStringA
add edi, 0x4f0
lea ecx, [ebp - 0x10]
push edi
call sub.MFC40.DLL_CString::operator_1
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x80], 0x44
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x10]
push esi
push esi
push 0x20
push ebx
push esi
push esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x4e], si
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x54], esi
push dword [eax - 8]
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push esi
push eax
push ebx
call edi
cmp eax, ebx
jne 0x100603b
push ebx
push esi
push esi
lea eax, [ebp - 0x3c]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x100602c
cmp dword [ebp - 0x38], 0xf
jne 0x1006008
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x1006008
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push esi
push eax
push ebx
jmp 0x1006002
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01006c42
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x100616e
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
lea eax, [ebp - 0x98]
push 0x32
push eax
mov esi, ecx
push 0x10020b8
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor ebx, ebx
lea eax, [ebp - 0x34]
push ebx
push ebx
push 0x32
push eax
lea eax, [ebp - 0x98]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [esi + 0x4f4]
lea eax, [ebp - 0x198]
push 0x100
push eax
lea eax, [ebp - 0x34]
push 0x1002878
push eax
push 0x1002814
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, eax
lea edi, [ebp - 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jae 0x100621c
lea edi, [esi + 0x4e0]
mov ecx, edi
call sub.MFC40.DLL_CString::LockBuffer
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnmakeSystemFolderA]
mov ecx, edi
call sub.MFC40.DLL_CString::UnlockBuffer
push dword [esi + 0x4f4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x100621c
push ebx
push 0x10
push 0x10028ac
call sub.MFC40.DLL_AfxMessageBox
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006221
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10076f4
call sub.MSVCRT40.dll__EH_prolog
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CFile::CFile_1
and dword [ebp - 4], 0
mov esi, 0x100940c
push 0x9a
mov ecx, esi
call sub.MFC40.DLL_CString::LoadStringA
push 2
push 0
push dword [0x100940c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0x6f
mov ecx, esi
mov edi, eax
call sub.MFC40.DLL_CString::LoadStringA
push 0x17
push dword [0x100940c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x1001
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call sub.MFC40.DLL_CFile::Open
test eax, eax
je 0x10062bd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [ebp - 0x20]
push dword [ebp - 0x10]
call sub.MFC40.DLL_CFile::Write
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CFile::Close
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.01006cde
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x10065fc
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x100773c
call sub.MSVCRT40.dll__EH_prolog
sub esp, 0x1a8
push ebx
push esi
push edi
lea eax, [ebp - 0xb0]
push 0x32
push eax
mov esi, ecx
push 0x1002e70
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor edi, edi
lea eax, [ebp - 0x4c]
push edi
push edi
push 0x32
push eax
lea eax, [ebp - 0xb0]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC40.DLL_CWnd::FromHandle
mov esi, eax
lea eax, [ebp - 0x1b4]
push dword [esi + 0x4f4]
push 0x104
push eax
push 0x1001ad0
lea eax, [ebp - 0x4c]
push 0x1002834
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x10066b2
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString
push 0x6f
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call sub.MFC40.DLL_CString::LoadStringA
lea ebx, [esi + 0x4ec]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.01006c4e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01006c42
jmp 0x10066c6
lea ebx, [esi + 0x4ec]
lea eax, [ebp - 0x1ad]
push eax
mov ecx, ebx
call fcn.01006c72
push 0x5c
mov ecx, ebx
call sub.MFC40.DLL_CString::ReverseFind
cmp eax, 0xffffffff
jne 0x1006716
lea edi, [esi + 0x4e0]
lea ecx, [esi + 0x4f0]
push edi
mov dword [ebp - 0x14], ecx
call fcn.01006c4e
mov eax, dword [edi]
push 0x5c
mov ecx, edi
mov esi, dword [eax - 8]
call sub.MFC40.DLL_CString::ReverseFind
dec esi
cmp eax, esi
je 0x1006709
mov ecx, dword [ebp - 0x14]
push 0x1002724
call sub.MFC40.DLL_CString::operator
mov ecx, dword [ebp - 0x14]
push ebx
call sub.MFC40.DLL_CString::operator_1
xor edi, edi
jmp 0x1006722
push ebx
lea ecx, [esi + 0x4f0]
call fcn.01006c4e
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 0x18], edi
pop edi
pop esi
mov dword fs:[0], ecx
setne al
pop ebx
leave
ret
Function at 0x1006eb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e48
push 0x1007182
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT40.dll___set_app_type]
add esp, 4
mov dword [0x10094f8], 0xffffffff
mov eax, dword [0x10094f8]
mov dword [0x10094fc], eax
call dword [sym.imp.MSVCRT40.dll___p__fmode]
mov ecx, dword [0x10093f0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT40.dll___p__commode]
mov ecx, dword [0x10093ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT40.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10094f4], eax
call fcn.01007180
cmp dword [0x10093e8], 0
jne 0x1006f40
push 0x1007170
call dword [sym.imp.MSVCRT40.dll___setusermatherr]
add esp, 4
call fcn.01007150
push 0x100903c
push 0x1009038
call sub.MSVCRT40.dll__initterm
add esp, 8
mov eax, dword [0x10093e4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x10093e0]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT40.dll___getmainargs]
add esp, 0x14
push 0x1009034
push section..data
call sub.MSVCRT40.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT40.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x1006fb4
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x1006fac
cmp al, 0x22
jne 0x1006fa1
cmp byte [esi], 0x22
jne 0x1006fbe
inc esi
jmp 0x1006fbe
cmp al, 0x20
jbe 0x1006fbe
inc esi
cmp byte [esi], 0x20
ja 0x1006fb8
cmp byte [esi], 0
je 0x1006fce
cmp byte [esi], 0x20
ja 0x1006fce
inc esi
cmp byte [esi], 0
jne 0x1006fc3
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x1006ff5
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT40.dll_exit]
jmp 0x1007038
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret