joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58ce23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0058b5c7
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x58ce60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x58ce60
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x58ce64
xor eax, eax
jmp 0x58cee2
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0057284c
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x58ce9c
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x58ce86
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0058cfd3
push ebx
mov edi, eax
call fcn.00572875
test edi, edi
pop ecx
je 0x58cede
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0058cd9c
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0058cee7
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x58da6b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x58da99
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x58dab7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0058d9d1
jmp 0x58dab7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x58dab7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0058d9d1
test edi, edi
mov eax, edi
jne 0x58daa1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e5dab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMemDC.0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4014f0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4014b7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4014e1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014f6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014f6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], vtable.CObject.0
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x405090
Capabilities:
Inspect load icon resource

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.StormRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
lea edi, [esi + 0x44]
push 0x20
push 0x10
push 0x10
mov ecx, edi
mov dword [esi + 0x54], eax
call sub.MFC42.DLL_CImageList::Create
mov eax, dword [esi + 0x48]
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0xffffff
push eax
call ebx
push 1
push 1
lea ebp, [esi + 0x4c]
push 0x20
push 0xd
push 0xd
mov ecx, ebp
call sub.MFC42.DLL_CImageList::Create
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x232c
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
test eax, eax
je 0x4050fe
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x50]
push 0
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
call sub.MFC42.DLL_AfxGetModuleState
push 0x7e
push 0xe
push 0x7e
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esi + 0x48]
push eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [esi + 0x48]
push 0xeef3f4
push eax
call ebx
mov ecx, dword [esi + 0x50]
push 0xeef3f4
push ecx
call ebx
test edi, edi
je 0x40514c
mov edi, dword [edi + 4]
mov edx, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x1109
push edx
call edi
push eax
call sub.MFC42.DLL_CImageList::FromHandle
test ebp, ebp
je 0x40516d
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 0x20]
push ebp
push 2
push 0x1109
push eax
call edi
push eax
call sub.MFC42.DLL_CImageList::FromHandle
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405990
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4e63c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
xor edi, edi
cmp esi, edi
mov ebp, ecx
mov dword [esp + 0x14], edi
je 0x4059fc
mov dword [esp + 0x60], edi
mov eax, dword [esi]
lea ecx, [esp + 0x60]
push ecx
push esi
mov dword [esp + 0x60], edi
call dword [eax + 0x10]
test eax, eax
mov eax, dword [esp + 0x60]
jl 0x4059ea
cmp eax, edi
je 0x4059ea
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [esp + 0x60]
cmp eax, edi
mov dword [esp + 0x58], 0xffffffff
je 0x4059fc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x60], 1
call dword [eax + 0xc]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.004e2378
mov eax, dword [ebp + 0x48]
mov byte [esp + 0x58], 2
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov ebx, dword [esp + 0x64]
mov esi, eax
cmp ebx, 0xffff0000
push edi
lea ecx, [esp + 0x14]
jne 0x405aba
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x405a70
push 0xffff0002
push 0xffff0000
push edi
push edi
push edi
push esi
push esi
push edx
push 0x23
mov ecx, ebp
call sub.MFC42.DLL_CTreeCtrl::InsertItem
jmp 0x405b2b
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x20]
push ecx
push eax
push 0x1100
mov dword [esp + 0x28], 0xffff0000
mov dword [esp + 0x2c], 0xffff0002
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
push edx
jmp 0x405b25
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x405ae0
push 0xffff0002
push ebx
push edi
push edi
push edi
push esi
push esi
push edx
push 0x23
mov ecx, ebp
call sub.MFC42.DLL_CTreeCtrl::InsertItem
jmp 0x405b2b
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0
push 0x1100
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xffff0002
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x50]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
Function at 0x4101b0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4e778f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CCannotPlayResolveStatue.0
mov eax, dword [0x544ee0]
mov ecx, 0x544ee0
mov dword [esp + 0x2c], 6
mov dword [esp + 0x14], ecx
call dword [eax + 4]
mov eax, dword [0x53d654]
mov bl, 7
test eax, eax
mov byte [esp + 0x2c], bl
jne 0x410286
mov eax, dword [0x53d650]
test eax, eax
jne 0x410286
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x2c], 8
je 0x41022d
mov ecx, eax
call fcn.0040b8d0
jmp 0x41022f
xor eax, eax
mov ecx, dword [0x5423a0]
mov ebp, dword [0x52f830]
mov byte [esp + 0x2c], bl
xor edi, edi
lea ebx, [ecx - 1]
mov dword [0x53d650], eax
test ebx, ebx
jl 0x410268
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, 0x542398
call fcn.00408fc0
cmp ebp, dword [esp + 0x20]
jge 0x410268
inc edi
cmp edi, ebx
jle 0x41024d
push 1
mov eax, 0x411540
push ebp
push eax
push edi
mov ecx, 0x542398
call fcn.00408fe0
mov dword [0x53d654], 1
mov eax, dword [0x544ee0]
mov ebx, dword [0x53d650]
mov ecx, 0x544ee0
mov byte [esp + 0x2c], 6
call dword [eax + 8]
lea edi, [esi + 0x114]
mov ecx, ebx
push edi
call fcn.0040ec50
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x4102cc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1d4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebp, [esi + 0x12c]
mov dword [esp + 0x18], ebp
lea ebx, [ebp + 0xa0]
mov dword [esp + 0x14], ebx
mov dword [ebx], vtable.CGdiObject.0
mov ecx, ebx
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [ebp + 0x60]
mov dword [ebx], vtable.CObject.0
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
mov ecx, ebp
mov byte [esp + 0x2c], 5
call fcn.004e22a0
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea edi, [esi + 0x10c]
mov dword [esp + 0x18], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x2c], 0xc
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x104]
mov dword [edi], vtable.CObject.0
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0xa8]
mov byte [esp + 0x2c], 1
call fcn.004d1cb0
lea ecx, [esi + 0x60]
mov byte [esp + 0x2c], 0
call fcn.0040b510
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.004e22a0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x411720
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e78d2
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push esi
mov esi, dword [esp + 0x34]
cmp esi, eax
je 0x41179f
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x41179f
mov dl, byte [esp + 0x34]
mov dword [esp + 8], eax
mov byte [esp + 4], dl
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x34]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
add ecx, 0x30
add esi, 0x30
push ecx
push esi
mov byte [esp + 0x34], 1
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x24]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x415fc7
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [eax + 8], 0xfffffffe
jne 0x4160af
mov eax, dword [eax + 0xc]
push ebx
push ebp
push edi
lea edi, [esi + 0x120]
push eax
mov ecx, edi
call fcn.004c5ea0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, eax
mov eax, dword [esi + 0x208]
cmp dword [ebx + 0x10], eax
je 0x416037
cmp eax, 0xffffffff
jle 0x416037
push eax
mov ecx, edi
call fcn.004c5ea0
mov eax, dword [eax + 8]
test eax, eax
je 0x416037
cmp dword [eax], 0
je 0x416019
mov edi, dword [eax + 4]
jmp 0x416027
mov eax, dword [eax + 4]
test eax, eax
jne 0x416024
xor edi, edi
jmp 0x416027
mov edi, dword [eax + 0x20]
push edi
call ebp
test eax, eax
je 0x416037
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 8]
mov ecx, esi
push eax
call fcn.00415a40
push eax
mov dword [esi + 0x228], eax
call ebp
test eax, eax
je 0x41609f
push 0x42b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem_1
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 0x54
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x228]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x28]
pop edi
pop ebp
mov dword [esi + 0x208], ecx
pop ebx
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_CWnd::OnNotify
pop esi
add esp, 0x10
ret 0xc
Function at 0x4209e0
Capabilities:
Check os version
Set global application hook

Disassembly:
sub esp, 0xac
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x7c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x80]
mov ebp, dword [ebx + 0x7c]
mov edi, eax
xor eax, eax
inc edi
sub ecx, edi
add edi, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CDialog::PreModal
mov dword [ebx + 0x64], eax
call sub.MFC42.DLL_AfxUnhookWindowCreate
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x420a5d
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x420a5d
mov eax, dword [ebx + 0x64]
push 0
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_EnableWindow]
call sub.MFC42.DLL_AfxGetThreadState
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0x18], eax
test ecx, 0x80000
je 0x420a79
mov dword [eax + 0x18], ebx
jmp 0x420a7f
push ebx
call sub.MFC42.DLL_AfxHookWindowCreate
lea ebp, [ebx + 0x1fc]
mov ecx, 0x16
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea esi, [ebx + 0x60]
mov ecx, 0x13
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x9c
push ecx
call esi
test eax, eax
jne 0x420ad3
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x94
push edx
call esi
test eax, eax
je 0x420aea
mov eax, dword [esp + 0x30]
sub eax, 2
jne 0x420aea
cmp dword [esp + 0x24], 5
jb 0x420aea
mov dword [ebp], 0x58
mov dword [0x53d6b0], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x420c50
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x53d6ac], eax
mov eax, dword [ebx + 0xac]
test eax, eax
push ebp
je 0x420b22
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
jmp 0x420b28
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
mov dword [esp + 0x14], eax
mov eax, dword [0x53d6ac]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x53d6b0]
test eax, eax
je 0x420b49
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
lea eax, [ebx + 0x60]
mov ecx, 0x13
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [eax], 0x4c
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ecx + 0x18], 0
je 0x420b85
mov edx, dword [ebx + 0x200]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420b9b
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, ebx
call sub.MFC42.DLL_CDialog::PostModal
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x420bb3
mov eax, 2
add esp, 0xac
ret
Function at 0x420d70
Capabilities:
Check os version
Set global application hook

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
mov edx, eax
add esp, 4
inc edx
xor eax, eax
sub ecx, edx
shl ecx, 1
lea edi, [edi + edx*2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x10], eax
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esi + 8], eax
test eax, eax
je 0x420de0
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x420de0
mov eax, dword [esi + 8]
push 0
push eax
mov ebx, 1
call ebp
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x9c
call edi
test eax, eax
jne 0x420e19
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push edx
call edi
test eax, eax
je 0x420e30
mov eax, dword [esp + 0x24]
sub eax, 2
jne 0x420e30
cmp dword [esp + 0x18], 5
jb 0x420e30
mov dword [esi + 4], 0x58
mov dword [0x53d6b8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x420ed0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x53d6b4], eax
mov eax, dword [esi]
test eax, eax
je 0x420e67
lea eax, [esi + 4]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x420e71
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
mov edx, dword [0x53d6b4]
mov edi, eax
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x53d6b8]
test eax, eax
je 0x420e91
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
test ebx, ebx
je 0x420ea3
mov eax, dword [esi + 8]
push 1
push eax
call ebp
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420eb9
push esi
call dword [sym.imp.USER32.dll_SetFocus]
test edi, edi
mov eax, edi
jne 0x420ec4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x421410
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
add ecx, 4
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc
Function at 0x422560
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e97f4
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x120
test eax, eax
push ebp
push esi
push edi
jne 0x42258d
xor eax, eax
jmp 0x42275b
push ecx
mov dword [esp + 0x14], esp
mov ebp, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x138], 0
test esi, esi
je 0x4225e4
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004e3085
test eax, eax
mov dword [esi], eax
jne 0x4225e6
test edi, edi
je 0x4225e6
push 0x8007000e
call fcn.004e2fd8
jmp 0x4225e6
xor esi, esi
test esi, esi
mov dword [esp + 0x138], 0xffffffff
mov dword [ebp], esi
jne 0x422602
push 0x8007000e
call fcn.004e2fd8
mov ecx, dword [esp + 0x144]
call fcn.00423c20
cmp ax, 0xffff
je 0x422756
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x3c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x134], 1
jne 0x42267b
xor eax, eax
jmp 0x42275b
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42269d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42275b
or edi, 0xffffffff
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
mov word [esp + 0x14], 8
push edx
call fcn.004e3085
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4226da
lea ecx, [esp + 0x28]
test ecx, ecx
je 0x4226da
push 0x8007000e
call fcn.004e2fd8
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0xe]
push ecx
mov esi, dword [esp + 0x144]
sub esp, 0x10
mov byte [esp + 0x148], 2
mov ecx, esp
mov edx, dword [esi]
push esi
mov dword [ecx], ebp
mov ebp, dword [esp + 0x30]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
call dword [edx + 0xe8]
test eax, eax
jge 0x422723
push 0x52f798
push esi
push eax
call fcn.004e2fe6
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x422740
push eax
call fcn.004e2fd8
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esp + 0xe], di
je 0x422756
xor eax, eax
jmp 0x42275b
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x12c
ret