joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416d60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x1078
call fcn.00423d10
mov ax, word [0x52d5e4]
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 0x416ee6
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 0x416ee6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ecx
call fcn.00416b50
add esp, 4
cmp eax, ebx
jne 0x416ec0
lea eax, [esp + 0x10]
push eax
call fcn.00416bf0
add esp, 4
cmp eax, ebx
jne 0x416ec0
lea ecx, [esp + 0x10]
push ecx
call fcn.00416c90
add esp, 4
cmp eax, ebx
je 0x416edb
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.004233b4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1078
ret
Function at 0x417b40
Capabilities:
Read .ini file

Disassembly:
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 + 0x18]
mov ebx, dword [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.00436e40
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push str.plugin
push 0x5501e8
push edx
call sub.MFC42.DLL_operator_2
call fcn.00436f70
add esp, 4
mov ecx, esi
push ebx
call fcn.00418070
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 0x52da20
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 0x52da20
call edi
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
call fcn.00436fd0
push ebx
call fcn.00437020
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x417e90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1690
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 0x417ede
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, 0x5501fc
call fcn.004233b4
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 [0x550204], eax
mov eax, dword [esi + 0x1c]
push eax
push 0
push str.HideSettingPage
push str.General
call edi
mov dword [0x550208], eax
mov eax, dword [esi + 0x1c]
push eax
push 0
push str.BBXFreeUniqueuiVersion
push str.PrivateSetting
call edi
mov dword [0x55020c], eax
mov eax, dword [esi + 0x1c]
push eax
push 1
push str.ShowAD
push str.General
call edi
mov dword [0x52d5c0], 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 0x550158
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x550158
call sub.MFC42.DLL_CString::CString_1
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_1
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_1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00450fe0
mov ecx, eax
call fcn.00451330
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x41805b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418070
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b1725
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], esi
push eax
push edi
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp eax, edi
jle 0x4182d7
lea eax, [esp + 0xc0]
mov dword [esp + 0x18], eax
jmp 0x4180ca
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00432fa0
lea ecx, [esp + 0x94]
mov dword [esp + 0xf8], edi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x98], 0x4bc1d8
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], edi
lea ecx, [esp + 0xac]
mov byte [esp + 0xf8], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xc0]
mov byte [esp + 0xf8], 3
call fcn.00418640
mov dword [esp + 0xc0], 0x4bc1c4
lea ecx, [esp + 0xdc]
mov byte [esp + 0xf8], 4
call sub.MFC42.DLL_CStringArray::CStringArray
xor ecx, ecx
mov ebp, 1
mov dword [esp + 0xd4], ecx
mov dword [esp + 0x1c], 0x4bc194
mov dword [esp + 0x90], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0xd8], ecx
push ecx
lea ecx, [esi + 4]
mov edx, esp
mov dword [esp + 0x14], esp
push ebx
push edx
mov dword [esp + 0x104], 5
call fcn.0040c5c0
lea ecx, [esp + 0x20]
call fcn.00434b90
push ecx
mov dword [esp + 0x50], ebp
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
cmp esi, edi
je 0x4181ef
mov dword [esi + 4], edi
mov dword [esi + 8], 1
mov dword [esi], 0x4bb388
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc], 7
call dword [eax + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 2
jmp 0x4181f1
xor esi, esi
mov ecx, dword [esp + 0x104]
mov byte [esp + 0xfc], 5
mov dword [ebp], esi
call fcn.00436d30
lea ecx, [esp + 0xdc]
mov dword [esp + 0xf8], 0xc
call fcn.00423888
mov dword [esp + 0xc0], 0x4bc180
mov eax, dword [esp + 0xc4]
mov byte [esp + 0xf8], 0xd
cmp eax, edi
je 0x41825b
mov ecx, dword [esp + 0xc8]
push ecx
push eax
call fcn.00418b20
mov edx, dword [esp + 0xc4]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, 0x4ba440
lea ecx, [esp + 0xac]
mov dword [esp + 0xc0], esi
mov byte [esp + 0xf8], 0xa
call fcn.00423888
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x98], 0x4bc1d8
cmp eax, edi
je 0x41829a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x98], esi
mov byte [esp + 0xf8], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0xf8], 0xffffffff
call fcn.00418b50
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, dword [eax + 0xc]
jl 0x4180c6
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xec
ret 4
Function at 0x418300
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b1738
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 0x4183b0
mov ecx, dword [esp + 0x1c]
push 0x52dac8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
je 0x4183b0
cmp dword [esp + 8], esi
jle 0x4183a6
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 0x418385
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 0x4183e0
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 0x41841e
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.0040c5c0
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 0x4183f9
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x418430
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b17a0
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.0041a1b0
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_2
mov ecx, esi
call fcn.00418300
or edi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x550158
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x34], 1
mov edx, esp
mov dword [esp + 0x24], esp
push str.plugin
push 0x5501e8
push edx
call sub.MFC42.DLL_operator_2
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], 2
push eax
call fcn.0041a1b0
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.plugin.zip
push eax
push ecx
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x38], 4
call fcn.00411e10
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push edx
call fcn.0041a1b0
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_2
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
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.0041a1b0
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_2
mov ecx, esi
call fcn.00418300
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x550158
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x34], 7
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.0041a1b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 8
push ecx
call fcn.0041a1b0
add esp, 4
mov byte [esp + 0x38], 9
mov edx, esp
mov dword [esp + 0x1c], esp
push str.mymacro.zip
push eax
push edx
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x38], 0xa
call fcn.00411e10
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push eax
call fcn.0041a1b0
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_2
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 0x419100
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b1903
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 0x550158
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 0x419163
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 0x41a1b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00423d10
mov cl, byte [0x55024c]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41a1ef
mov dl, cl
mov ecx, 0x550248
or dl, al
mov byte [0x55024c], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41a250
call fcn.00423cfc
add esp, 4
mov eax, dword [0x550248]
push 0x550158
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41a226
lea ecx, [esp + 4]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 4]
mov ecx, 0x550248
push edx
call fcn.004233b4
push esi
mov esi, dword [esp + 0x100c]
push 0x550248
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x41a260
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00423d10
mov cl, byte [0x550244]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41a29f
mov dl, cl
mov ecx, 0x550240
or dl, al
mov byte [0x550244], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41a330
call fcn.00423cfc
add esp, 4
mov eax, dword [0x550240]
push esi
push 0x550158
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41a309
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x52d15c
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, 0x550240
call fcn.004233b4
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x550240
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x1004
ret
Function at 0x41a340
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00423d10
mov cl, byte [0x55023c]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41a37f
mov dl, cl
mov ecx, 0x550238
or dl, al
mov byte [0x55023c], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41a410
call fcn.00423cfc
add esp, 4
mov eax, dword [0x550238]
push esi
push 0x550158
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41a3e9
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x52d15c
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, 0x550238
call fcn.004233b4
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x550238
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x41a420
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00423d10
mov al, byte [0x55022c]
push ebx
mov ebx, 1
push esi
test bl, al
mov dword [esp + 8], 0
jne 0x41a463
mov dl, al
mov ecx, 0x550228
or dl, bl
mov byte [0x55022c], dl
call sub.MFC42.DLL_CString::CString_3
push 0x41a4f0
call fcn.00423cfc
add esp, 4
mov eax, dword [0x550228]
push 0x550158
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41a4c9
push edi
push ebx
lea ecx, [esp + 0x14]
push 0x1a
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x52d15c
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, 0x550228
call fcn.004233b4
pop edi
mov esi, dword [esp + 0x1010]
push 0x550228
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x41b250
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b1f8b
push eax
mov eax, 0x1704
mov dword fs:[0], esp
call fcn.00423d10
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, 0x5501e4
push edx
call fcn.004233b4
lea eax, [esp + 8]
mov ecx, 0x5501e8
push eax
call fcn.004233b4
lea ecx, [esp + 0x308]
push ecx
mov ecx, 0x5501e8
call fcn.00423750
mov edx, dword [0x5501e8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5501e8
mov ecx, 0x5501e8
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 [0x55028c]
mov al, 1
test al, cl
jne 0x41b336
or cl, al
mov byte [0x55028c], cl
lea ecx, [esp + 0x708]
push ecx
mov ecx, 0x550288
call sub.MFC42.DLL_CString::CString_1
push 0x41b3b0
call fcn.00423cfc
add esp, 4
push 0x2e
mov ecx, 0x550288
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 4]
push eax
push edx
mov ecx, 0x550288
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x550288
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, 0x550288
call fcn.00423750
mov eax, dword [0x550288]
mov ecx, dword [esp + 0x1708]
mov dword [esi + 0x94], eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1710
ret

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b1fab
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.00423d10
call fcn.00437ea0
test eax, eax
je 0x41b3f6
push eax
push 0xf27b
call fcn.0045ae50
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.00423750
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 0x41b470
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b1fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea eax, [esp + 0x10]
push 0x52decc
push eax
call fcn.0042ec20
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
push ecx
call fcn.0041a1b0
add esp, 0xc
push esi
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_operator_1
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 0x41b5a8
push ebp
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push 0x95
lea ecx, [esp + 0x10]
push 0x52dec8
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 0x41b598
mov eax, dword [esp + 0x10]
push 0x52dac8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41b598
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