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

Disassembly:
push 0xffffffffffffffff
push 0x4d5102
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], esi
push eax
push ebp
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, ebp
jle 0x419182
mov ebx, 1
jmp 0x418f36
mov esi, dword [esp + 0x14]
xor ebp, ebp
lea ecx, [esp + 0x18]
call fcn.0042edc0
lea ecx, [esp + 0xe0]
mov dword [esp + 0x180], ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xe4]
mov byte [esp + 0x180], bl
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xe8]
mov byte [esp + 0x180], 2
call fcn.00419ca0
mov dword [esp + 0xe8], 0x4e3774
mov dword [esp + 0xfc], ebp
lea ecx, [esp + 0x100]
mov byte [esp + 0x180], 3
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x114]
mov byte [esp + 0x180], 4
call fcn.004196a0
mov dword [esp + 0x114], 0x4e3760
lea ecx, [esp + 0x134]
mov byte [esp + 0x180], 5
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x148]
mov byte [esp + 0x180], 6
call sub.MFC42.DLL_CStringArray::CStringArray
push 0xa
lea ecx, [esp + 0x160]
mov byte [esp + 0x184], 7
call fcn.00419960
xor eax, eax
mov dword [esp + 0x15c], 0x4e374c
mov dword [esp + 0x128], eax
mov dword [esp + 0x18], 0x4e3714
mov dword [esp + 0x12c], eax
mov dword [esp + 0xdc], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x130], eax
push ecx
mov dword [esp + 0x184], 8
mov ecx, esp
mov dword [esp + 0x14], esp
push edi
push ecx
lea ecx, [esi + 4]
call fcn.0040cc20
lea ecx, [esp + 0x1c]
call fcn.004306f0
push ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], esp
mov ebp, esp
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x4190a4
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
mov dword [esi], 0x4e27a8
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 0xa
call dword [edx + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 2
jmp 0x4190a6
xor esi, esi
mov ecx, dword [esp + 0x18c]
mov byte [esp + 0x184], 8
mov dword [ebp], esi
call fcn.00432a20
lea ecx, [esp + 0x15c]
mov dword [esp + 0x180], 0x12
call fcn.00419990
lea ecx, [esp + 0x148]
mov byte [esp + 0x180], 0x11
call fcn.0045b48e
lea ecx, [esp + 0x134]
mov byte [esp + 0x180], 0x10
call fcn.0045b48e
lea ecx, [esp + 0x114]
mov byte [esp + 0x180], 0xf
call fcn.004196c0
lea ecx, [esp + 0x100]
mov byte [esp + 0x180], 0xe
call fcn.0045b48e
lea ecx, [esp + 0xe8]
mov byte [esp + 0x180], 0xd
call fcn.00419cc0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x180], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xe0]
mov byte [esp + 0x180], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x180], 0xffffffff
call fcn.0041a130
mov eax, dword [esp + 0x14]
inc edi
cmp edi, dword [eax + 0xc]
jl 0x418f30
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x174
ret 4
Function at 0x4191a0
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4d5118
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 0x419250
mov ecx, dword [esp + 0x1c]
push 0x5c1aec
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
je 0x419250
cmp dword [esp + 8], esi
jle 0x419246
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 0x419225
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 0x419280
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 0x4192be
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.0040cc20
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 0x419299
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x4192d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d5180
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.0041bd10
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.004191a0
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 0x5e2540
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 0x5e3648
push edx
call sub.MFC42.DLL_operator_4
lea eax, [esp + 0x40]
mov byte [esp + 0x38], 2
push eax
call fcn.0041bd10
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.00439f80
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.0041bd10
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.0041bd10
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.004191a0
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 0x5e2540
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.0041bd10
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 8
push ecx
call fcn.0041bd10
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.00439f80
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.0041bd10
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 0x41a130
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d53f2
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], 0x4e3870
mov dword [esp + 0x20], 9
call fcn.0042f400
lea esi, [edi + 0xa8]
mov dword [esp + 0x14], esi
mov dword [esi], 0x4e385c
mov ebp, dword [esi + 4]
xor ebx, ebx
cmp ebp, ebx
mov byte [esp + 0x20], 0xa
je 0x41a195
lea eax, [ebp + 8]
push 1
push eax
call fcn.0041a630
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x41a183
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], 0x4e16e0
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString
mov esi, dword [edi + 0x9c]
cmp esi, ebx
je 0x41a21f
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a219
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x41a219
mov ecx, esi
mov byte [esp + 0x20], 0xc
call fcn.0041a7e0
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 0x41a23f
lea ebp, [esi + 4]
jmp 0x41a241
xor ebp, ebp
mov esi, dword [ebp]
cmp esi, ebx
je 0x41a298
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a295
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x41a295
mov ecx, esi
mov byte [esp + 0x20], 0xf
call fcn.0041a7e0
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], 0x4e37ec
mov ecx, esi
mov byte [esp + 0x20], 0x11
call fcn.004361e0
lea ecx, [esi + 0x28]
mov byte [esp + 0x20], 0x10
call fcn.0045b5c0
mov ecx, esi
mov byte [esp + 0x20], 4
call fcn.0045b662
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 0x41a730
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d54c3
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 0x5e2540
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 0x41a793
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 0x41bd10
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0045bc60
mov cl, byte [0x5e36b0]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41bd4f
mov dl, cl
mov ecx, 0x5e36ac
or dl, al
mov byte [0x5e36b0], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41bdb0
call fcn.0045bc4c
add esp, 4
mov eax, dword [0x5e36ac]
push 0x5e2540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41bd86
lea ecx, [esp + 4]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 4]
mov ecx, 0x5e36ac
push edx
call fcn.0045afae
push esi
mov esi, dword [esp + 0x100c]
push 0x5e36ac
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x41bdc0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0045bc60
mov cl, byte [0x5e36a8]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41bdff
mov dl, cl
mov ecx, 0x5e36a4
or dl, al
mov byte [0x5e36a8], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41be90
call fcn.0045bc4c
add esp, 4
mov eax, dword [0x5e36a4]
push esi
push 0x5e2540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41be69
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x5c1218
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, 0x5e36a4
call fcn.0045afae
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x5e36a4
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x1004
ret
Function at 0x41bea0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0045bc60
mov cl, byte [0x5e36a0]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41bedf
mov dl, cl
mov ecx, 0x5e369c
or dl, al
mov byte [0x5e36a0], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41bf70
call fcn.0045bc4c
add esp, 4
mov eax, dword [0x5e369c]
push esi
push 0x5e2540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41bf49
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x5c1218
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, 0x5e369c
call fcn.0045afae
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x5e369c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x41bf80
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0045bc60
mov al, byte [0x5e3690]
push ebx
mov ebx, 1
push esi
test bl, al
mov dword [esp + 8], 0
jne 0x41bfc3
mov dl, al
mov ecx, 0x5e368c
or dl, bl
mov byte [0x5e3690], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41c050
call fcn.0045bc4c
add esp, 4
mov eax, dword [0x5e368c]
push 0x5e2540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41c029
push edi
push ebx
lea ecx, [esp + 0x14]
push 0x1a
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x5c1218
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, 0x5e368c
call fcn.0045afae
pop edi
mov esi, dword [esp + 0x1010]
push 0x5e368c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x41d300
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5e0b
push eax
mov eax, 0x1704
mov dword fs:[0], esp
call fcn.0045bc60
push esi
mov esi, ecx
lea eax, [esp + 0x208]
lea ecx, [esp + 0x108]
push eax
lea edx, [esp + 0x30c]
push ecx
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea edx, [esp + 0x108]
mov ecx, 0x5e3644
push edx
call fcn.0045afae
lea eax, [esp + 8]
mov ecx, 0x5e3648
push eax
call fcn.0045afae
lea ecx, [esp + 0x308]
push ecx
mov ecx, 0x5e3648
call fcn.0045b320
mov edx, dword [0x5e3648]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5e3648
mov ecx, 0x5e3648
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 0x708]
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [0x5e36f4]
mov al, 1
test al, cl
jne 0x41d3e6
or cl, al
mov byte [0x5e36f4], cl
lea ecx, [esp + 0x708]
push ecx
mov ecx, 0x5e36f0
call sub.MFC42.DLL_CString::CString_1
push 0x41d470
call fcn.0045bc4c
add esp, 4
push 0x2e
mov ecx, 0x5e36f0
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 4]
push eax
push edx
mov ecx, 0x5e36f0
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x5e36f0
mov dword [esp + 0x1714], 0
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 4]
mov dword [esp + 0x1710], 0xffffffff
call sub.MFC42.DLL_CString::CString
push str..ini
mov ecx, 0x5e36f0
call fcn.0045b320
mov eax, dword [0x5e36f0]
mov dword [esi + 0x94], eax
mov ecx, dword [0x5e36f0]
push ecx
mov ecx, 0x5e37cc
call fcn.0045afae
mov ecx, dword [esp + 0x1708]
pop esi
mov dword fs:[0], ecx
add esp, 0x1710
ret

Function at 0x41d480
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5e2b
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.0045bc60
call fcn.0043a250
test eax, eax
je 0x41d4b6
push eax
push 0xf27b
call fcn.00468420
add esp, 8
lea eax, [esp + 4]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
push str.QMDispatch.dll
lea ecx, [esp + 4]
mov dword [esp + 0x1010], 0
call fcn.0045b320
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov dword [esp + 0x100c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1004]
mov dword fs:[0], ecx
add esp, 0x1010
ret
Function at 0x41d530
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d5e60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea eax, [esp + 0x10]
push 0x5c1f84
push eax
call fcn.004287d0
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
push ecx
call fcn.0041bd10
add esp, 0xc
push esi
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d668
push ebp
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push 0x95
lea ecx, [esp + 0x10]
push 0x5c1f80
push ecx
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push str.EXTERNAL
push edx
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
mov edx, dword [eax + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test edi, edi
mov ebp, eax
je 0x41d658
mov eax, dword [esp + 0x10]
push 0x5c1aec
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41d658
push esi
push 1
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x41d690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x5c1fe0
call sub.MFC42.DLL_CString::CString_1
push ecx
xor edi, edi
mov ecx, esp
mov dword [esp + 0x20], esp
push str.bro.mymacro
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
push 0x5c1f84
push eax
mov byte [esp + 0x3c], 1
call fcn.004287d0
mov esi, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
push ecx
call fcn.0041bd10
add esp, 8
mov byte [esp + 0x38], 3
mov edx, esp
mov dword [esp + 0x28], esp
push esi
push eax
push edx
call sub.MFC42.DLL_operator_3
push ecx
mov byte [esp + 0x3c], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str.http:__ad.vrbrothers.com_qmacro_v9_ad_mymacro.xml
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x3c], 7
call fcn.00401870
mov ecx, eax
call fcn.00401a30
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CString::CString
mov al, byte [0x5e36ec]
test al, 1
jne 0x41d7f7
mov dl, al
mov al, byte [esp + 0xb]
or dl, 1
mov byte [0x5e36c0], al
mov byte [0x5e36ec], dl
mov dword [0x5e36c4], edi
mov dword [0x5e36c8], edi
mov dword [0x5e36cc], edi
mov dword [0x5e36b8], 0x4e3be8
mov ecx, 0x5e36d0
mov dword [esp + 0x2c], 8
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x5e36d4
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x5e36e0
mov byte [esp + 0x2c], 0xa
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x5e36e4
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CString::CString_3
push 0x41d860
mov dword [0x5e36b8], 0x4e3be4
mov dword [0x5e36bc], 4
mov dword [esp + 0x30], esi
call fcn.0045bc4c
add esp, 4
push 0x5e36b8
call fcn.00401870
mov ecx, eax
call fcn.00401d50
push 0x3e8
mov ecx, 0x5e36b8
call fcn.00403230
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret