joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40efe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x150]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x40f116
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x14c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x15c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x40f0c2
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x150]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x164], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0x150]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x14c]
sub ecx, edi
test edx, edx
je 0x40f137
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0041f7c6
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x410500
Capabilities:
Create directory
Delete file
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4753b6
push eax
mov eax, 0x263e0
mov dword fs:[0], esp
call fcn.0041fb60
xor eax, eax
mov cl, byte [eax + 0x47eaa0]
xor cl, 0x7d
mov byte [esp + eax + 0x144], cl
inc eax
cmp eax, 0x2629a
jb 0x410521
push esi
push 0
lea edx, [esp + 0x14c]
push 0x2629b
push edx
mov byte [esp + 0x263ee], 0
call fcn.0045f8d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x410688
push ebp
push edi
push 0x4e6558
lea eax, [esp + 0x10]
push 0x4eab18
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push 0x4e6558
lea ecx, [esp + 0x10]
push 0x4eab18
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov dword [esp + 0x263f4], 0
push eax
push esi
call fcn.0045fa30
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x263f4], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x24]
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x28]
push edx
mov dword [esp + 0x28], 0
push 0xffffffffffffffff
push esi
rep stosd dword es:[edi], eax
call fcn.0045f8f0
mov ebp, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::CFile_1
xor edi, edi
mov dword [esp + 0x263f4], 1
test ebp, ebp
jle 0x41062f
lea eax, [esp + 0x24]
push eax
push edi
push esi
call fcn.0045f8f0
lea ecx, [esp + 0x34]
push ecx
push edi
push esi
call fcn.0045f9f0
add esp, 0x18
inc edi
cmp edi, ebp
jl 0x41060f
push esi
call fcn.0045faf0
add esp, 4
test al, al
pop edi
pop ebp
push esi
je 0x410646
call fcn.0045fa70
jmp 0x41064b
call fcn.0045afc0
add esp, 4
lea edx, [esp + 8]
push str._stdplugin.dat
push 0x4eab18
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x263ec], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x263e4]
pop esi
mov dword fs:[0], ecx
add esp, 0x263ec
ret
Function at 0x410b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475547
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4a4d3c
mov dword [esp + 0x10], 0xe
call fcn.00410ca0
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x413000
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41303b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00412ff0
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x413160
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x4131b1
mov eax, dword [esp]
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0x10
ret

Function at 0x413330
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
push eax
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x41337b
mov eax, dword [esp]
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0xc
ret
Function at 0x413530
Capabilities:
Connect socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 8], eax
jne 0x413563
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00412ff0
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x41359b
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00412ff0
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x413633
cmp eax, 0x2733
jne 0x413633
mov eax, dword [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x4135f5
call edi
push eax
call fcn.00412ff0
add esp, 4
or esi, esi
jmp 0x413633
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x41361b
call edi
push eax
call fcn.00412ff0
add esp, 4
or esi, 0xffffffff
jmp 0x413633
mov eax, dword [esp + 0x28]
test eax, eax
je 0x413631
push eax
call fcn.00412ff0
add esp, 4
or esi, 0xffffffff
jmp 0x413633
xor esi, esi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x4136a0
Capabilities:
Create thread
Resolve dns

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push edi
mov edi, dword [esp + 0xac]
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x413764
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x41373b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41373b
cmp dword [esp + 0x24], 2
jne 0x41373b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x413660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x41373b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41373b
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x413753
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x414ec0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x475908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x414f6a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0041f5d4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x414f51
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x414f51
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x414f80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x414fe2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x414ff0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4150e4
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocStringLen
mov ecx, edi
call fcn.00414f80
test eax, eax
jne 0x4150e4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocStringLen
mov ecx, edi
call fcn.00414f80
test eax, eax
jne 0x4150e4
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4150b5
lea eax, [esp + 0x10]
push 0x4e6790
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4150b5
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4150b8
mov byte [esi], 0
push 0x4e62e4
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x415810
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [eax + 0x94]
push eax
push 1
push str.HotkeyMode
push str.Setup
call ebx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00432d20
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push str.plugin
push 0x4eab18
push edx
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00433200
push esi
mov ecx, edi
call fcn.00415d30
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x20]
and ecx, 0xffff
mov eax, dword [eax + 0x94]
push eax
push ecx
push str.EndHotkey
push 0x4e6844
call ebx
mov ebp, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edi, dword [edi + 0x20]
shr edi, 0x10
mov ecx, dword [eax + 0x94]
push ecx
push edi
push str.EndHotkeyMod
push 0x4e6844
call ebx
mov edx, eax
mov ecx, ebp
and edx, 0xffff
and ecx, 0xffff
shl edx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ebp
mov dword [ecx], edx
mov ecx, esi
call fcn.00433260
push esi
mov ecx, esi
call fcn.00432d90
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x415b60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
mov byte [ebp - 0x420], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x415bae
mov eax, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x420]
push 0x400
push eax
push str.unknown
push str.FileName
push str.SetupFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x420]
push ecx
mov ecx, 0x4eab2c
call sub.MFC42.DLL_CString::operator_3
mov ebx, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 0
push str.EndHotkeyMod
push str.General
call edi
mov edx, eax
push ebx
and edx, 0xffff
push 0x7b
shl edx, 0x10
push str.EndHotkey
push str.General
mov dword [ebp - 0x10], edx
call edi
mov edx, dword [ebp - 0x10]
and eax, 0xffff
or edx, eax
mov eax, dword [esi + 0x1c]
push eax
push 0
push str.HideScriptPage
push str.General
mov dword [esi + 0x20], edx
call edi
mov dword [0x4eab30], eax
mov eax, dword [esi + 0x1c]
push eax
push 0
push str.HideSettingPage
push str.General
call edi
mov dword [0x4eab34], eax
mov eax, dword [esi + 0x1c]
push eax
push 0
push str.BBXFreeUniqueuiVersion
push str.PrivateSetting
call edi
mov dword [0x4eab38], eax
mov esi, dword [esi + 0x1c]
push esi
lea eax, [ebp - 0x420]
push 0x400
push eax
push str.uservar.ini
push str.uservar.ini
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x4eaa80
call sub.MFC42.DLL_CString::CString_4
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4eaa80
call sub.MFC42.DLL_CString::CString_4
push ecx
lea edx, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.uservar.ini
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00446cb0
mov ecx, eax
call fcn.00447000
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x415d14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415d30
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475ad6
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
push eax
push 0
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
mov eax, dword [edi + 0xc]
xor esi, esi
test eax, eax
jle 0x415e20
mov ebx, dword [esp + 0xa4]
lea ecx, [esp + 0x18]
call fcn.0042ead0
push ecx
mov dword [esp + 0xa0], 0
mov ecx, esp
mov dword [esp + 0x18], esp
push str.mymacro2009
call sub.MFC42.DLL_CString::CString_4
push 0
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push esi
push eax
lea ecx, [edi + 4]
mov byte [esp + 0xb0], 1
call fcn.0040c330
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 0
call fcn.0042f6b0
test ebp, ebp
mov dword [esp + 0x78], 1
je 0x415dde
xor eax, eax
jmp 0x415de1
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x3c]
push 0x4e68d8
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, ebx
push edx
call fcn.00432c00
lea ecx, [esp + 0x18]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0042ec30
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x415d7d
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret 4

Function at 0x415e40
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x475ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov eax, dword [esp + 0x1c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
push edx
push 4
xor esi, esi
push 1
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x18]
add esp, 0x10
cmp eax, esi
jle 0x415ef0
mov ecx, dword [esp + 0x1c]
push 0x4e68f8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
je 0x415ef0
cmp dword [esp + 8], esi
jle 0x415ee6
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fgetc]
mov edx, dword [esp + 0x28]
push edi
push edx
call ebp
add esp, 4
xor eax, 0xcc
push eax
call ebx
mov eax, dword [esp + 0x18]
add esp, 8
inc esi
cmp esi, eax
jl 0x415ec5
pop ebp
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x415f20
Capabilities:
Delete file

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x415f5e
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ebx, [edi + 4]
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, ebx
call fcn.0040c330
mov ecx, dword [eax]
push ecx
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x415f39
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x415f70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x475b28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004162f0
mov edx, esp
mov dword [esp + 0x14], esp
push str.mymacro.zip
push eax
push edx
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00415e40
or esi, 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x4eaa80
call sub.MFC42.DLL_CString::CString_4
push ecx
mov dword [esp + 0x28], 1
mov eax, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004162f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 2
push ecx
call fcn.004162f0
add esp, 4
mov byte [esp + 0x2c], 3
mov edx, esp
mov dword [esp + 0x20], esp
push str.mymacro.zip
push eax
push edx
call sub.MFC42.DLL_operator_1
mov byte [esp + 0x2c], 4
call fcn.00433fe0
add esp, 0xc
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 8]
push eax
call fcn.004162f0
add esp, 4
push str.mymacro.zip
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x2c], 5
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4162f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0041fb60
mov cl, byte [0x4eab70]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41632f
mov dl, cl
mov ecx, 0x4eab6c
or dl, al
mov byte [0x4eab70], dl
call sub.MFC42.DLL_CString::CString_2
push 0x416390
call fcn.0041fb4c
add esp, 4
mov eax, dword [0x4eab6c]
push 0x4eaa80
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x416366
lea ecx, [esp + 4]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 4]
mov ecx, 0x4eab6c
push edx
call sub.MFC42.DLL_CString::operator_3
push esi
mov esi, dword [esp + 0x100c]
push 0x4eab6c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
add esp, 0x1004
ret