joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414bc0
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 0x414bfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00414bb0
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x414d20
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 0x414d71
mov eax, dword [esp]
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0x10
ret

Function at 0x414ef0
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 0x414f3b
mov eax, dword [esp]
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0xc
ret
Function at 0x4150f0
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 0x415123
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414bb0
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 0x41515b
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.00414bb0
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 0x4151f3
cmp eax, 0x2733
jne 0x4151f3
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 0x4151b5
call edi
push eax
call fcn.00414bb0
add esp, 4
or esi, esi
jmp 0x4151f3
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 0x4151db
call edi
push eax
call fcn.00414bb0
add esp, 4
or esi, 0xffffffff
jmp 0x4151f3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4151f1
push eax
call fcn.00414bb0
add esp, 4
or esi, 0xffffffff
jmp 0x4151f3
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 0x415250
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 0x415314
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4152eb
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4152eb
cmp dword [esp + 0x24], 2
jne 0x4152eb
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x415220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4152eb
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 0x4152eb
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 0x415303
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 0x416a80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4cbd48
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 0x416b2a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
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.004550ba
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x416b11
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x416b11
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 0x416b40
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 0x416ba2
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 0x417a00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x1078
call fcn.004559c0
mov ax, word [0x53566c]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x88], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x8a]
mov esi, str.devicephysicalmemory
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xb
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor ebx, ebx
movsw word es:[edi], word [esi]
mov dword [esp + 0x7a], ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x7e], ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x82], ecx
push str.ntdll.dll
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], 0xf0000
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], 0xffff
mov word [esp + 0x8a], cx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], edx
mov word [esp + 0x28], 0x2c
mov word [esp + 0x2a], 0x2e
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.ZwOpenSection
push esi
call edi
push str.ZwMapViewOfSection
push esi
mov ebp, eax
call edi
push str.ZwUnmapViewOfSection
push esi
mov dword [esp + 0x18], eax
call edi
lea ecx, [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
push 4
push edx
mov dword [esp + 0x24], eax
call ebp
test eax, eax
jne 0x417b86
push 2
push ebx
lea eax, [esp + 0x24]
push 1
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
push 0xffff
lea edx, [esp + 0x2c]
push ebx
push edx
push 0xffffffffffffffff
push eax
call dword [esp + 0x38]
test eax, eax
jne 0x417b86
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ecx
call fcn.004177f0
add esp, 4
cmp eax, ebx
jne 0x417b60
lea eax, [esp + 0x10]
push eax
call fcn.00417890
add esp, 4
cmp eax, ebx
jne 0x417b60
lea ecx, [esp + 0x10]
push ecx
call fcn.00417930
add esp, 4
cmp eax, ebx
je 0x417b7b
mov esi, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
lea edi, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
call dword [esp + 0x20]
call sub.MFC42.DLL_AfxGetEmptyString
mov esi, dword [esp + 0x108c]
mov ecx, dword [eax]
lea edx, [esp + 0x88]
mov dword [esi], ecx
push edx
mov ecx, esi
call fcn.00454d4e
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1078
ret
Function at 0x4187f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cc198
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [eax + 0x94]
push eax
push 1
push str.HotkeyMode
push str.Setup
call edi
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebx
call fcn.00431b70
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push str.plugin
push 0x557058
push edx
call sub.MFC42.DLL_operator_4
mov dword [esp + 0x1c], 0xffffffff
call fcn.00418900
mov ecx, eax
call fcn.00418910
push ebx
mov ecx, esi
call fcn.00418df0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x20]
and ecx, 0xffff
mov eax, dword [eax + 0x94]
push eax
push ecx
push str.EndHotkey
push 0x535a2c
call edi
mov ebp, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov esi, dword [esi + 0x20]
shr esi, 0x10
mov ecx, dword [eax + 0x94]
push ecx
push esi
push str.EndHotkeyMod
push 0x535a2c
call edi
mov edx, eax
mov ecx, ebp
and edx, 0xffff
and ecx, 0xffff
shl edx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x28]
push eax
push ebp
mov dword [ecx], edx
call fcn.00431d30
push ebx
call fcn.00431d80
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x418bd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cc240
push eax
mov eax, 0x1470
mov dword fs:[0], esp
call fcn.004559c0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
mov byte [ebp - 0x424], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x418c22
mov eax, dword [ebx + 0x1c]
push eax
lea eax, [ebp - 0x424]
push 0x400
push eax
push str.unknown
push str.FileName
push str.SetupFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x424]
push ecx
mov ecx, 0x55706c
call fcn.00454d4e
mov edx, dword [0x55706c]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [edx - 8]
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
mov ecx, 0x55706c
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x147c]
call fcn.00464fe0
mov esi, eax
mov edi, 0x555ff8
mov ecx, 0x416
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0
push str.EndHotkeyMod
push str.General
call esi
mov edx, eax
push edi
and edx, 0xffff
push 0x7b
shl edx, 0x10
push str.EndHotkey
push str.General
mov dword [ebp - 0x10], edx
call esi
mov ecx, dword [ebp - 0x10]
and eax, 0xffff
or ecx, eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
push str.HideScriptPage
push str.General
mov dword [ebx + 0x20], ecx
call esi
mov dword [0x557070], eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
push str.HideSettingPage
push str.General
call esi
mov dword [0x557074], eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
push str.BBXFreeUniqueuiVersion
push str.PrivateSetting
call esi
mov dword [0x557078], eax
mov eax, dword [ebx + 0x1c]
push eax
push 1
push str.ShowAD
push str.General
call esi
mov dword [0x535644], eax
mov ebx, dword [ebx + 0x1c]
push ebx
lea edx, [ebp - 0x424]
push 0x400
push edx
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 - 0x24], esp
push 0x555f50
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x555f50
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x424]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.uservar.ini
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
push ecx
call fcn.00456770
mov ecx, eax
call fcn.00456ac0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x418dda
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4190d0
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4cc328
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 0x419180
mov ecx, dword [esp + 0x1c]
push 0x535adc
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
je 0x419180
cmp dword [esp + 8], esi
jle 0x419176
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 0x419155
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 0x4191b0
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 0x4191ee
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.0040cbc0
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 0x4191c9
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x419200
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4cc390
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push ebx
mov esi, ecx
push eax
call fcn.0041bbf0
mov ecx, esp
mov dword [esp + 0x18], esp
push str.plugin.zip
push eax
push ecx
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_operator_4
mov ecx, esi
call fcn.004190d0
or edi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x555f50
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x38], 1
mov edx, esp
mov dword [esp + 0x28], esp
push str.plugin
push 0x557058
push edx
call sub.MFC42.DLL_operator_4
lea eax, [esp + 0x40]
mov byte [esp + 0x38], 2
push eax
call fcn.0041bbf0
mov ecx, esp
mov dword [esp + 0x30], esp
push str.plugin.zip
push eax
push ecx
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_operator_4
mov byte [esp + 0x3c], 4
call fcn.00438670
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push edx
call fcn.0041bbf0
add esp, 4
push str.plugin.zip
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], 5
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x38]
push ecx
call fcn.0041bbf0
mov edx, esp
mov dword [esp + 0x28], esp
push str.mymacro.zip
push eax
push edx
mov dword [esp + 0x40], 6
call sub.MFC42.DLL_operator_4
mov ecx, esi
call fcn.004190d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x555f50
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x38], 7
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041bbf0
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 8
push ecx
call fcn.0041bbf0
add esp, 4
mov byte [esp + 0x3c], 9
mov edx, esp
mov dword [esp + 0x20], esp
push str.mymacro.zip
push eax
push edx
call sub.MFC42.DLL_operator_4
mov byte [esp + 0x3c], 0xa
call fcn.00438670
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push eax
call fcn.0041bbf0
add esp, 4
push str.mymacro.zip
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x38], 0xb
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x41a030
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4cc602
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], 0x4d9780
mov dword [esp + 0x20], 9
call fcn.0042e6e0
lea esi, [edi + 0xa8]
mov dword [esp + 0x14], esi
mov dword [esi], 0x4d976c
mov ebp, dword [esi + 4]
xor ebx, ebx
cmp ebp, ebx
mov byte [esp + 0x20], 0xa
je 0x41a095
lea eax, [ebp + 8]
push 1
push eax
call fcn.0041a530
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x41a083
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
lea ecx, [edi + 0xa4]
mov dword [esi + 0x14], ebx
mov dword [esi], 0x4d76e8
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString
mov esi, dword [edi + 0x9c]
cmp esi, ebx
je 0x41a11f
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a119
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x41a119
mov ecx, esi
mov byte [esp + 0x20], 0xc
call fcn.0041a720
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 4]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi + 0x9c], ebx
lea esi, [edi + 0x90]
mov dword [esp + 0x14], esi
lea ecx, [esi + 8]
mov byte [esp + 0x20], 0xd
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x41a13f
lea ebp, [esi + 4]
jmp 0x41a141
xor ebp, ebp
mov esi, dword [ebp]
cmp esi, ebx
je 0x41a198
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a195
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x41a195
mov ecx, esi
mov byte [esp + 0x20], 0xf
call fcn.0041a720
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 4]
mov byte [esp + 0x20], 0xe
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp], ebx
lea esi, [edi + 0x4c]
mov dword [esp + 0x14], esi
mov dword [esi], 0x4d96fc
mov ecx, esi
mov byte [esp + 0x20], 0x11
call fcn.004353d0
lea ecx, [esi + 0x28]
mov byte [esp + 0x20], 0x10
call fcn.00455360
mov ecx, esi
mov byte [esp + 0x20], 4
call fcn.00455402
lea ecx, [edi + 0x48]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 4]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41a670
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4cc6d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x555f50
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41a6d3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CFile::CFile
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x41bbf0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004559c0
mov cl, byte [0x5570c0]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41bc2f
mov dl, cl
mov ecx, 0x5570bc
or dl, al
mov byte [0x5570c0], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41bc90
call fcn.00455a1b
add esp, 4
mov eax, dword [0x5570bc]
push 0x555f50
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41bc66
lea ecx, [esp + 4]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 4]
mov ecx, 0x5570bc
push edx
call fcn.00454d4e
push esi
mov esi, dword [esp + 0x100c]
push 0x5570bc
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x41bca0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004559c0
mov cl, byte [0x5570b8]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41bcdf
mov dl, cl
mov ecx, 0x5570b4
or dl, al
mov byte [0x5570b8], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41bd70
call fcn.00455a1b
add esp, 4
mov eax, dword [0x5570b4]
push esi
push 0x555f50
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41bd49
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x5351f4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x5570b4
call fcn.00454d4e
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x5570b4
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x1004
ret