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

Disassembly:
push 0xffffffffffffffff
push 0x432591
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
lea ecx, [esp + 0x40]
call fcn.004192d0
mov eax, dword [esp + 0x9c]
xor esi, esi
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x98], esi
call fcn.004194d0
lea ecx, [esp + 0x40]
call fcn.004193a0
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4368a4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x98], 1
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x10]
call fcn.00431276
push esi
push esi
push esi
push str.DISPLAY
mov byte [esp + 0xa4], 2
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CDC::Attach
lea ecx, [esp + 0x20]
call fcn.00431276
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
mov byte [esp + 0x94], 3
and eax, esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 4]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea edx, [esp + 0x38]
lea ecx, [esp + 0x40]
push edx
call fcn.0041a310
mov eax, dword [eax + 4]
lea ecx, [esp + 0x40]
cdq
sub eax, edx
mov esi, eax
lea eax, [esp + 0x30]
push eax
sar esi, 1
call fcn.0041a310
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
push esi
sar eax, 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
lea ecx, [esp + 0x20]
mov esi, eax
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 4]
call sub.MFC42.DLL_CGdiObject::Detach
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CDC::CDC
mov dword [esp + 4], 0x436890
lea ecx, [esp + 4]
mov byte [esp + 0x94], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
mov dword [esp + 4], 0x43687c
mov dword [esp + 0x94], 0xffffffff
call fcn.00419340
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x94
ret 4
Function at 0x40aab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40aae0
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40aaff
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.0040c760
mov edx, dword [esp + 0x28]
add esp, 8
mov dword [edx], eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0xc
Function at 0x40aca0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432fb8
push eax
mov dword fs:[0], esp
sub esp, 0x18
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40ace1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
lea ecx, [esp + 0x14]
call fcn.0043140e
xor ebx, ebx
lea ecx, [esp + 0x14]
push ebx
push 0x8000
push esi
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40ad64
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push esi
lea eax, [esp + 0x10]
push str.CDialogSK::LoadImage:Cant_load_the_image:_s__r_n
push eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Read
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
push edx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebp, dword [esp + 0x38]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x40adc6
lea eax, [esi + 4]
mov dword [esi], 0x436a28
push eax
push ebp
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x40adc8
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, ebx
pop ebp
jne 0x40ae4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40adea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString_2
push esi
lea edx, [esp + 0x14]
push str.CDialogSK::LoadImage:FromStream_error:_d__r_n
push edx
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4113f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x433725
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push 0x43f7fc
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0xc]
mov dword [esp + 0x118], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push str._sChinaNetcandw
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x12c]
add esp, 0xc
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.0043153a
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x411c20
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x100
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x108]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push eax
push ecx
push edx
call fcn.00411c70
add esp, 0xc
test eax, eax
pop edi
jle 0x411c69
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x100
ret
Function at 0x413750
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x433ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 4]
mov byte [esp + 0x78], 1
push eax
call fcn.00422a00
add esp, 4
test eax, eax
je 0x4137cc
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push ecx
push str._shelp.chm
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0xc
push 1
push 0
push 0
push eax
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x413824
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x43f9e4]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push str.TIPOUT02
push str.CWCLIENT_DIALOG
push 0x43e7dc
call dword [edx + 4]
lea eax, [esi + 0x768]
pop edi
test eax, eax
je 0x41380f
mov eax, dword [eax + 0x20]
push 0
lea ecx, [esp + 0x10]
push str.Error
push ecx
push eax
call fcn.00424330
add esp, 0x10
lea ecx, [esp + 4]
mov byte [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x78], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x70]
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret
Function at 0x416350
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x433d5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x128]
mov dword [esp + 0xc], ecx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [ebp], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
mov dword [esp + 0x128], 0
push eax
call fcn.004242a0
add esp, 4
lea ecx, [esp + 0x10]
push str.VstarConf.ini
call sub.MFC42.DLL_CString::operator_2
mov cl, byte [0x43f7fc]
xor eax, eax
mov byte [esp + 0x20], cl
mov ecx, 0x3f
lea edi, [esp + 0x21]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x24]
push pe_nt_image_headers32
push eax
push str.Normal
push str.WinStatus
push str.Position
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x43eed4
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41641f
test cl, cl
je 0x41641b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41641f
add eax, 2
add esi, 2
test cl, cl
jne 0x4163f7
xor eax, eax
jmp 0x416424
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41642f
mov dword [ebp], 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push 0x43eed0
push str.Position
call esi
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push 0
push 0x43eecc
push str.Position
call esi
mov edx, dword [esp + 0x10]
mov ebp, eax
push edx
push 0
push 0x43eec8
push str.Position
call esi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x43eec4
push str.Position
call esi
lea ecx, [esp + 0x18]
mov esi, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00416310
cmp edi, dword [esp + 0x18]
jge 0x4164e0
cmp ebp, dword [esp + 0x1c]
jge 0x4164e0
test ebx, ebx
jle 0x4164e0
test esi, esi
jle 0x4164e0
cmp ebx, edi
jle 0x4164e0
cmp esi, ebp
jle 0x4164e0
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0xffffffff
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [eax + 4], ebp
mov dword [eax + 0xc], esi
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4164f6
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 8
Function at 0x41acd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
push esi
push edi
push 0x43f16c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x41ad18
mov esi, dword [esp + 0x28]
test esi, esi
je 0x41ad10
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_strerror]
add esp, 4
mov ecx, esi
push eax
call fcn.00431552
pop edi
xor al, al
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41ad28
mov edx, dword [eax]
mov dword [esp + 0x20], edx
jmp 0x41ad30
mov dword [esp + 0x20], 0
xor eax, eax
push ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
push ebp
mov dword [esp + 0x19], eax
mov ecx, ebx
mov dword [esp + 0x1d], eax
mov byte [esp + 0x10], 0
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
call sub.MFC42.DLL_CString::Empty
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebp
add esp, 0x1c
test esi, esi
je 0x41ad9f
push edi
push 1
push esi
push esi
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, ebx
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x30]
pop ebp
test eax, eax
pop ebx
je 0x41adbd
lea ecx, [esp + 8]
push esi
push ecx
push str._s_d_bytes
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
je 0x41add5
mov edx, dword [esp + 0x20]
mov dword [eax], edx
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
Function at 0x41ae00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
push ebx
push esi
push edi
push 0x43f170
push eax
mov bl, 1
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x41ae4c
mov esi, dword [esp + 0x30]
test esi, esi
je 0x41ae43
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_strerror]
add esp, 4
mov ecx, esi
push eax
call fcn.00431552
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41ae5c
mov edx, dword [eax]
mov dword [esp + 0xc], edx
jmp 0x41ae64
mov dword [esp + 0xc], 0
xor eax, eax
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov esi, dword [ecx - 8]
test esi, esi
je 0x41aebf
push eax
lea ecx, [esp + 0x2c]
call fcn.0043153a
mov eax, dword [esp + 0x28]
push edi
push 1
mov esi, dword [eax - 8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
lea ecx, [esp + 0x28]
sete bl
call sub.MFC42.DLL_CString::CString
push ebp
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x41aedc
lea edx, [esp + 0x14]
push esi
push edx
push str._s_d_bytes
push ebp
call sub.MFC42.DLL_CString::Format
add esp, 0x10
test bl, bl
jne 0x41aefe
test ebp, ebp
je 0x41aefe
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_strerror]
add esp, 4
mov ecx, ebp
push eax
call fcn.00431552
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
pop ebp
je 0x41af17
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x41eb40
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x434498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 0x10]
push str.CInstanceChecker_MMF_
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x41ebf5
mov ecx, dword [esp + 8]
push ecx
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
call fcn.0041e9a0
mov dword [eax], edi
call fcn.0041e9a0
push 4
push 0
push 0
push 6
call fcn.0041e9a0
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [esi + 4]
push 1
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, dword [esi + 0xc]
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x41ec30
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4344c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 4
push ebx
mov eax, dword [esi + 0xc]
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esi + 4]
push 1
push ecx
lea ecx, [esp + 0x1c]
mov ebp, eax
call sub.MFC42.DLL_CSingleLock::CSingleLock
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x8c], 1
stosb byte es:[edi], al
call dword [sym.imp.Language.dll_Ordinal_1]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push str.TITLE
push str.CWCLIENT_DIALOG
push 0x43e7dc
mov ecx, eax
call dword [edx + 4]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.00431552
mov eax, dword [esp + 0x10]
push eax
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, ebx
je 0x41ecf2
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esi + 0xc], ebx
mov byte [esp + 0x8c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x8c], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret
Function at 0x41eeb0
Capabilities:
Enumerate processes
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4344fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebp
push 0
push 2
mov byte [esp + 0xf], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
jne 0x41eef8
xor al, al
pop ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
add esp, 0x29c
ret
push ebx
push esi
lea eax, [esp + 0x14]
push edi
push eax
push ebp
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41eff4
mov ebx, dword [esp + 0x2b0]
push 0x43f7fc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x140]
push 0x101
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x144]
push 0x160
push ecx
lea edx, [esp + 0x48]
push eax
push edx
mov dword [esp + 0x2bc], 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x3c]
mov esi, eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00431552
mov edx, dword [esp + 0x14]
push ebx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x41efb0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a8], 0xffffffff
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x41ef1d
jmp 0x41eff4
mov eax, dword [esp + 0x20]
push eax
call fcn.0041f020
add esp, 4
mov byte [esp + 0x13], al
test al, al
je 0x41efe0
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x2b4]
mov dword [edx], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a8], 0xffffffff
call sub.MFC42.DLL_CString::CString
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2a0]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x29c
ret
Function at 0x41f020
Capabilities:
Enumerate process modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x434526
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x22c
push esi
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f067
xor al, al
pop esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x224
push ecx
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x41f09d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
push ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0xc]
mov dword [esp + 0x23c], 0
push edx
call fcn.00422a00
add esp, 4
lea eax, [esp + 0x130]
lea ecx, [esp + 8]
xor bl, bl
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x23c], 1
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x41f137
lea ecx, [esp + 8]
mov byte [esp + 0x23c], 0
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x41f14a
lea eax, [esp + 0x130]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x23c], 1
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x41f0ec
lea ecx, [esp + 8]
mov bl, 1
mov byte [esp + 0x23c], 0
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x23c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x234]
mov al, bl
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x238
ret