joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ded1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x41d686
call fcn.0041baa0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x420f10
mov edi, 0x429ea8
xor ebx, ebx
push edi
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 5
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], 1
mov byte [esi + 0x56], bl
mov dword [esi + 0x58], ebx
call fcn.004136bf
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 6
call fcn.00411b51
push edi
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 7
mov dword [esi + 0xd4], ebx
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0xe8]
mov byte [ebp - 4], 0xa
mov dword [esi + 0xe4], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xec]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0xc
mov byte [esi + 0xf0], bl
push dword [ebp + 8]
lea ecx, [esi + 0xfc]
mov dword [esi + 0xf4], ebx
mov byte [esi + 0xf8], bl
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x420ef4
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40e04e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x41d72e
call fcn.0041baa0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x420ef4
push dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xc
call edi
push dword [esi + 0x10]
call edi
push dword [esi + 0x14]
call edi
push dword [esi + 0x18]
call edi
push dword [esi + 0x1c]
call edi
push dword [esi + 4]
call edi
push dword [esi + 8]
call edi
push dword [esi + 0x20]
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x28]
call edi
push dword [esi + 0x2c]
call edi
push dword [esi + 0x30]
call edi
push dword [esi + 0x34]
call edi
xor ebx, ebx
lea ecx, [esi + 0xfc]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xec]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xe8]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 6
call fcn.00411b8d
mov byte [ebp - 4], 5
lea ecx, [esi + 0x5c]
call fcn.004136d8
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x420f10
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e5ab
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40e63f
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40e63f
cmp byte [eax], bl
je 0x40e63f
movzx eax, word [ebp + 8]
push 0x428c64
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40e63f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40e63f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jbe 0x40e63f
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e63f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40e641
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40f825
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
je 0x40f95a
lea eax, [ebp - 0x3c]
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40f95a
push eax
call sub.MFC42.DLL_operatornew
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
push dword [ebp - 4]
push dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40f922
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x428f20
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f922
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
movzx eax, word [eax]
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x8c]
push 0x428ef8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f922
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 2]
push ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
pop ecx
cmp esi, edi
je 0x40f91f
push ebx
push edi
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [ebp - 0x10]
push dword [ebp - 4]
call sub.MFC42.DLL_operatordelete
cmp esi, edi
pop ecx
je 0x40f95a
push 0x428c60
push 0x4279dc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
call fcn.0041775b
add esp, 0x10
mov ecx, ebx
push esi
call fcn.0040f73d
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4102fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41db50
call fcn.0041baa0
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x4c]
mov edi, dword [esi + 0x48]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_AfxGetModuleState
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x41034a
push 5
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push 5
mov ebx, eax
push dword [esi + 0x44]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410358
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410366
or eax, 0xffffffff
jmp 0x41046e
mov ecx, esi
call sub.MFC42.DLL_CDialog::PreModal
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_AfxUnhookWindowCreate
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41039d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41039d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], edi
push esi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_AfxHookWindowCreate
push dword [ebp - 0x14]
call sub.MFC42.DLL_CWnd::FromHandle
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call sub.MFC42.DLL_CWnd::CreateDlgIndirect
cmp eax, edi
je 0x41042b
test byte [esi + 0x28], 0x10
je 0x4103f6
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetStyle
shr eax, 0x1a
and eax, 4
mov ecx, esi
mov ebx, eax
call sub.MFC42.DLL_CWnd::GetStyle
test ah, 1
je 0x4103ee
or ebx, 1
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::RunModalLoop
cmp dword [esi + 0x20], edi
je 0x41042b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
jmp 0x41042b
or dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
cmp dword [ebp - 0x20], edi
je 0x410444
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41045d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41045d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call sub.MFC42.DLL_CDialog::PostModal
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x411180
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x41dd15
call fcn.0041baa0
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.00413662
xor edi, edi
lea ecx, [esi + 8]
mov dword [ebp - 4], edi
call fcn.00413662
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 7
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x249f0
mov dword [esi + 0x38], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_2
or dword [esi + 0x4c], 0xffffffff
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 0xa
mov dword [esi + 0x48], edi
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41351a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x41e160
call fcn.0041baa0
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413567
or dword [ebp - 4], eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or eax, ebx
jmp 0x41361c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push ebx
mov edi, eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [edi + 0xa]
push eax
call sub.MFC42.DLL_operatornew
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], eax
jne 0x41359f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 0xfffffffffffffffe
jmp 0x41361b
lea eax, [edi + 0xa]
push eax
push esi
push dword [ebp - 0x14]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push esi
push eax
push edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0041ba0c
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operatordelete
pop ecx
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, edi
jmp 0x41361c
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x413b01
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x41e1e8
call fcn.0041baa0
push ecx
push ecx
push ebx
push esi
push edi
push 0x42c0e0
lea ecx, [ebp - 0x14]
call fcn.0041264f
mov eax, dword [0x42c150]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x413b32
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push 1
call fcn.00413a85
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
mov dword [0x42c10c], eax
jne 0x413b4d
mov esi, eax
jmp 0x413cd8
mov ecx, dword [0x42c104]
cmp dword [ecx - 8], ebx
setne byte [ebp - 0xd]
cmp eax, ebx
je 0x413b6d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x413ca1
cmp byte [ebp - 0xd], bl
jne 0x413ba8
push 1
pop esi
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 1
call fcn.00413a85
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x42c10c], eax
je 0x413ba2
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x413ca1
inc esi
cmp esi, 5
jl 0x413b75
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x42c118]
sub ecx, eax
push ecx
call sub.MSVCRT.dll_abs
cmp dword [0x42c118], ebx
pop ecx
je 0x413bd5
cmp dword [ebp + 0xc], ebx
je 0x413bd5
cmp eax, dword [ebp + 0xc]
jle 0x413cd0
cmp byte [ebp - 0xd], bl
mov byte [0x42c114], 1
mov byte [ebp + 0xc], 1
je 0x413bf2
mov byte [0x42c115], bl
call fcn.00413cfc
jmp 0x413c13
cmp dword [0x42c144], ebx
mov byte [0x42c115], 1
je 0x413c04
mov byte [ebp + 0xc], bl
push dword [ebp + 0xc]
call fcn.0041409b
pop ecx
mov dword [0x42c144], ebx
mov al, byte [0x42c115]
push eax
push dword [ebp + 8]
call fcn.00413e0d
cmp byte [0x42c115], bl
pop ecx
pop ecx
mov dword [0x42c10c], eax
je 0x413c37
mov dword [0x42c128], eax
jmp 0x413c5f
cmp dword [0x42c12c], ebx
je 0x413c5a
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp + 8]
cmp eax, dword [0x42c12c]
mov eax, dword [0x42c10c]
jne 0x413c5f
mov dword [0x42c130], eax
mov esi, dword [0x42c154]
cmp esi, ebx
je 0x413c8c
mov edx, dword [0x42c158]
cmp edx, ebx
je 0x413c8c
mov ecx, dword [0x42c15c]
cmp ecx, ebx
je 0x413c8c
push ebx
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x42c10c]
cmp eax, ebx
je 0x413ca9
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413ca9
mov dword [0x42c118], ebx
mov esi, dword [0x42c10c]
jmp 0x413cd8
call edi
cmp byte [0x42c115], bl
mov dword [0x42c118], eax
je 0x413cd0
cmp byte [ebp + 0xc], bl
je 0x413cd0
call fcn.0041849a
test al, al
je 0x413cd0
mov dword [0x42c144], 1
xor esi, esi
mov dword [0x42c10c], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412668
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413d27
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x41e1fc
call fcn.0041baa0
push ecx
push ecx
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 0x42c0e0
call fcn.0041264f
mov eax, dword [0x42c12c]
xor esi, esi
cmp eax, esi
jne 0x413d5d
cmp dword [0x42c130], esi
je 0x413df0
mov ecx, dword [0x42c130]
cmp ecx, esi
je 0x413d8b
push esi
push esi
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x42c12c], esi
mov dword [0x42c130], esi
jmp 0x413dcc
cmp eax, esi
je 0x413df0
push eax
push 0x41428b
mov dword [0x42c138], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x42c138]
cmp eax, esi
je 0x413df0
push esi
push esi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x1f4
mov dword [0x42c12c], esi
mov dword [0x42c130], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412668
mov al, 1
jmp 0x413dfe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412668
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x414410
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x41e258
call fcn.0041baa0
sub esp, 0x24
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x18]
push 4
push eax
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00412b00
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::MakeLower
call fcn.0041849a
test al, al
je 0x4144ec
push 0x10
lea eax, [ebp - 0x30]
push esi
push eax
call sub.MSVCRT.dll_memset
push 8
lea eax, [ebp - 0x20]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], edi
push dword [ebp + 8]
call fcn.0040afbc
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x41449c
mov eax, dword [eax]
jmp 0x41449e
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0041a1de
add esp, 0xc
cmp eax, esi
jl 0x4144ca
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
cmp ecx, esi
mov dword [ebp - 0x18], eax
je 0x4144ff
call fcn.0040b0bb
mov dword [ebp - 0x10], esi
jmp 0x4144ff
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x4144d9
call fcn.0040b0bb
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41456c
push 1
push esi
push esi
push esi
push dword [ebp + 8]
call fcn.004193a7
add esp, 0x14
mov dword [ebp - 0x18], eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov dword [ebp + 8], esi
mov ebx, 0xc8
push dword [ebp - 0x14]
mov dword [0x42c13c], esi
mov dword [0x42c140], esi
push 0x414300
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x42c13c]
cmp eax, esi
jne 0x41453f
push ebx
call edi
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x32
jl 0x41450e
jmp 0x41455c
mov ecx, dword [0x42c140]
mov dword [0x42c124], eax
cmp ecx, esi
je 0x414551
mov dword [ebp - 0x18], ecx
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4145e2
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004145b5
push dword [esp + 0x18]
xor edi, edi
mov dword [esi + 8], edi
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, dword [esp + 0x14]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x414623
push dword [esp + 0x18]
push ebx
push edi
push 4
push dword [esp + 0x20]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x41463d
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x414641
xor al, al
jmp 0x414646
mov dword [esi + 0xc], ebx
mov al, 1
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4147b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x800
push eax
push 0x429ea8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x800], 0
setne al
leave
ret 0xc
Function at 0x4148eb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
push ebx
push esi
mov esi, 0x429ea8
lea eax, [ebp - 0x848]
push esi
mov ebx, ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x330]
push 0x208
push eax
push esi
push 0x429298
push 0x429274
call fcn.0041895a
add esp, 0x1c
test al, al
je 0x414985
cmp byte [ebp - 0x330], 0
je 0x414985
lea eax, [ebp - 0x330]
push eax
call fcn.004183bb
test al, al
pop ecx
je 0x414985
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x640]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x640]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
test eax, eax
je 0x414973
and byte [eax], 0
push 0x428908
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x414ac1
push edi
lea eax, [ebp - 0x438]
push esi
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x438]
push eax
call fcn.0041a0b4
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x640]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x640]
push 0x427cc4
push eax
call sub.MSVCRT.dll_strcat
mov edi, 0x106
lea eax, [ebp - 0x128]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x128]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x34
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x128]
push edi
push eax
push esi
push 0x4280e0
push 0x427624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x414a67
lea eax, [ebp - 0x20]
push 0x42887c
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x20]
push 0x428738
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x20]
push 0x428734
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x20]
push 0x428730
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x128]
push edi
push eax
lea eax, [ebp - 0x20]
push esi
push eax
push 0x427624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x128], 0
pop edi
jne 0x414a84
lea eax, [ebp - 0x128]
push 0x427cb0
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x330]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x330]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x330]
push eax
call fcn.004183bb
add esp, 0x14
test al, al
je 0x414b49
lea eax, [ebp - 0x640]
mov ecx, ebx
push eax
call fcn.004147e8
test al, al
je 0x414b49
push dword [ebx + 0x11c]
call sub.MFC42.DLL_operatordelete
lea eax, [ebp - 0x330]
push eax
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sub.MFC42.DLL_operatornew
lea ecx, [ebp - 0x330]
mov dword [ebx + 0x11c], eax
push ecx
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebx + 0x118]
add esp, 0x14
test eax, eax
je 0x414b2c
push eax
push dword [ebx + 0x11c]
call fcn.004179fc
pop ecx
test eax, eax
pop ecx
je 0x414b33
mov byte [ebx + 0x120], 1
jmp 0x414b33
and byte [ebx + 0x120], 0
lea eax, [ebp - 0x330]
push 1
push eax
call fcn.0040da35
pop ecx
mov byte [ebx + 0x121], al
pop ecx
pop esi
pop ebx
leave
ret