joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cd0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, ecx
push ebx
mov dword [esp + 0x10], edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x401cf4
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
push ebp
push esi
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, eax
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x20], ecx
test ebp, ebp
jge 0x401d20
xor ebp, ebp
test ecx, ecx
jge 0x401d30
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x64]
cmp eax, edx
jle 0x401d39
mov eax, edx
mov edx, dword [edi + 0x68]
cmp ebx, edx
jle 0x401d42
mov ebx, edx
sub eax, ebp
sub ebx, ecx
mov edi, eax
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401dee
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 0xcc]
mov ecx, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401db8
mov edx, dword [esp + 0x20]
push 0x40cc0020
push edx
push ebp
mov ebp, dword [esp + 0x30]
push ebp
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x401dd9
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0xcc0020
push eax
push ebp
push ecx
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x401e25
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401e08
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push 0x40cc0020
push eax
push ebp
push ecx
jmp 0x401e18
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push 0xcc0020
push edx
push ebp
push eax
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
mov edi, eax
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x402860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4316b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x101
mov dword [esp + 0x18], esi
call sub.MFC42u.DLL_CDialog::CDialog
mov cl, byte [esp + 0x24]
mov dl, byte [esp + 0x24]
lea edi, [esi + 0x60]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov byte [edi + 0x20], cl
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebp
mov byte [edi + 0x30], dl
mov dword [edi + 0x34], ebp
mov dword [edi + 0x38], ebp
mov dword [edi + 0x3c], ebp
lea ebx, [esi + 0xc0]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [ebx], 0x435258
lea ebx, [esi + 0x100]
mov byte [esp + 0x1c], 2
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [ebx], 0x435258
lea ebx, [esi + 0x140]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call sub.MFC42u.DLL_CString::CString_3
push ebp
lea ecx, [esi + 0x144]
mov byte [esp + 0x20], 4
call fcn.00409860
push ebp
lea ecx, [esi + 0x1a8]
mov byte [esp + 0x20], 5
call fcn.00409650
push ebp
lea ecx, [esi + 0x20c]
mov byte [esp + 0x20], 6
call fcn.00409110
push ebp
lea ecx, [esi + 0x26c]
mov byte [esp + 0x20], 7
call fcn.00409170
push 0x435248
mov ecx, ebx
mov byte [esp + 0x20], 8
mov dword [esi], 0x435170
call sub.MFC42u.DLL_CString::operator_2
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xa0]
xor edx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea eax, [esi + 0xb0]
mov dword [esi + 0xb0], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x14]
mov eax, 1
mov dword [esi + 0x68], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x380], ebp
mov dword [esi + 0x384], ebp
mov dword [esi + 0x37c], ebp
mov dword [esi + 0x388], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x404f10
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 0x10]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00404f90
test eax, eax
jne 0x404f33
mov ecx, esi
call sub.MFC42u.DLL_CWnd::Default
pop esi
ret 0x10
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x404f82
cmp word [esp + 0xc], 0
mov eax, dword [esi + 0x74]
jle 0x404f6b
cmp eax, 0x14
jge 0x404f82
mov ecx, esi
call fcn.00403500
lea ecx, [esi + 0x26c]
call fcn.004093f0
mov eax, 1
pop esi
ret 0x10
cmp eax, 1
jle 0x404f82
mov ecx, esi
call fcn.00403540
lea ecx, [esi + 0x26c]
call fcn.004093f0
mov eax, 1
pop esi
ret 0x10

Function at 0x405020
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00404f90
test eax, eax
je 0x40519d
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x4050a0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x405078
call sub.MFC42u.DLL_AfxGetModuleState
push pe_nt_image_headers32
push 0xc
push pe_nt_image_headers32
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
call sub.MFC42u.DLL_AfxGetModuleState
push 0x111
push 0xc
push 0x111
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 1
jne 0x4050cd
call sub.MFC42u.DLL_AfxGetModuleState
push 0x112
push 0xc
push 0x112
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 2
jne 0x40512f
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x405107
call sub.MFC42u.DLL_AfxGetModuleState
push 0x11a
push 0xc
push 0x11a
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
call sub.MFC42u.DLL_AfxGetModuleState
push 0x115
push 0xc
push 0x115
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 4
jne 0x40515c
call sub.MFC42u.DLL_AfxGetModuleState
push 0x116
push 0xc
push 0x116
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 5
jne 0x405189
call sub.MFC42u.DLL_AfxGetModuleState
push 0x113
push 0xc
push 0x113
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
Function at 0x40b700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
and eax, 0xffff
push str.STRING
push eax
mov dword [esp + 0x10], ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b7a9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x40b7a9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b7a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40b7a9
push ebx
lea ebx, [ebp + 1]
push edi
lea edi, [ebx + ebx]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
push ebp
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x10]
push esi
add ecx, 0x60
call sub.MFC42u.DLL_CString::operator_2
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 4

Function at 0x40c210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x431f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x40c2ba
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x437268
lea ecx, [esp + 0xc]
call fcn.0042eda8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c2a1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x40c2a1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c2d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40c332
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x210
ret 0xc
Function at 0x40c540
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x618
mov eax, dword [esp + 0x61c]
push ebx
push ebp
mov ebp, dword [esp + 0x628]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x40c65d
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.0040c2d0
test eax, eax
jne 0x40c65d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.0040c2d0
test eax, eax
jne 0x40c65d
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
lea edx, [esp + 0x10]
push 0x437880
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c607
lea eax, [esp + 0x10]
push 0x437878
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c607
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + eax*2 + 0xe]
jmp 0x40c60c
mov word [esi], 0
push 0x437874
push esi
call ebx
mov edx, dword [esp + 0x62c]
push edx
push esi
call ebx
push 0
push 0
lea eax, [esp + 0x428]
push 0x208
push eax
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x420]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret 8

Function at 0x40cbc0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40cc36
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40cc36
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x40cc36
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x40cc24
mov edx, esi
cmp edi, ebx
jb 0x40cc2e
add edx, ebx
cmp edi, edx
jbe 0x40cc40
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x40cc16
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x40cd90
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x804
lea eax, [esp + 0x80c]
lea edx, [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [0x44dee0]
lea ecx, [esi + esi]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
pop esi
add esp, 0x804
ret
Function at 0x40d430
Capabilities:
Initialize iwebbrowser2

Disassembly:
sub esp, 0x14
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x40d4d2
lea eax, [esp]
push eax
push 0x43ae80
push 4
push 0
push 0x43ae70
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp]
test eax, eax
je 0x40d4cc
lea ecx, [esp + 4]
push esi
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [esp + 8]
mov esi, eax
mov eax, dword [esp + 4]
push edx
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x14]
push edx
push esi
push eax
call dword [ecx + 0x2c]
test eax, eax
mov eax, dword [esp + 4]
jl 0x40d4b1
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
jmp 0x40d4ba
mov edx, dword [eax]
push eax
call dword [edx + 0x80]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
call dword [sym.imp.ole32.dll_OleUninitialize]
add esp, 0x14
ret
Function at 0x416410
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x432c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea esi, [ecx + 0x1bc]
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_1
push str..bak
push str..txt
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42u.DLL_CString::Replace
mov eax, dword [esp + 4]
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41aa50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x432ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
push 0x43900c
push 0x200
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x41aafd
push edi
push 4
lea eax, [esp + 0x10]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x18]
add esp, 0x10
cmp eax, 0x4d444d44
jne 0x41aaf3
push 0
push 0
push 0x439140
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MessageBoxW
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x34]
push ebx
push 0x1010
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
test ebx, ebx
rep stosd dword es:[edi], eax
je 0x41ab7e
lea edx, [esp + 0x10]
push edx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp word [esp + 0x22], 0x20
jne 0x41ab77
mov eax, dword [esi + 0x454]
test eax, eax
je 0x41ab5a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x454], 0
mov eax, dword [esi + 0x20]
push 1
push 0
push eax
mov dword [esi + 0x454], ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.0041beb0
jmp 0x41ab8e
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0
push 0x439120
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x41c1b0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0x45e
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41c1f6
mov ecx, dword [esi + 0x44c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41c216
mov edx, dword [esi + 0x44c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
mov eax, dword [esi + 0x44c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41c216
mov ecx, dword [esi + 0x44c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x41f790
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
lea eax, [esp]
push ebx
push esi
push edi
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, dword [esp + 0x120]
mov byte [eax + 1], 0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xc]
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 edx, dword [esp + 0x110]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x114]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
pop ebx
add esp, 0x100
ret 0xc

Function at 0x41f820
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
lea eax, [esp]
push ebx
push esi
push edi
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, dword [esp + 0x120]
mov byte [eax + 1], 0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xc]
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
mov edx, dword [esp + 0x114]
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x114]
push 0xff
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
add esp, 0x100
ret 0x10
Function at 0x420470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
push eax
xor ebp, ebp
push 0x18
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0x28
lea edx, [eax + eax*2]
mov dword [esp + 0x50], ecx
mov word [esp + 0x54], 1
mov word [esp + 0x56], 0x18
lea eax, [edx*8 + 0x1f]
mov dword [esp + 0x58], ebp
cdq
and edx, 0x1f
mov dword [esp + 0x5c], ebp
add eax, edx
mov dword [esp + 0x60], ebp
mov ebx, eax
mov dword [esp + 0x64], ebp
sar ebx, 5
imul ebx, ecx
shl ebx, 2
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebp
lea eax, [ebx + 0x28]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x48]
mov edi, eax
push 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, eax
cmp edi, ebp
je 0x42053f
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push ebp
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov edi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x420547
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x74]
push ebp
push eax
add eax, 0x28
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp edi, ebp
je 0x420580
push 1
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x78]
push ebp
push 0x8000080
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4205bd
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x28]
push 0xe
add ebx, 0x36
push edx
push esi
mov word [esp + 0x34], 0x4d42
mov dword [esp + 0x36], ebx
mov word [esp + 0x3a], bp
mov word [esp + 0x3c], bp
mov dword [esp + 0x3e], 0x36
call edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push ebp
push eax
push ebx
push ecx
push esi
call edi
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret