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

Disassembly:
push 0xffffffffffffffff
push 0x4b0de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x1c]
push edi
push eax
mov ecx, dword [esi + 0x5b8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
push 0xf1f6
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub ecx, edx
mov eax, 0x55555556
shl ecx, 1
imul ecx
mov eax, edx
push 0xffffffffffffffff
shr eax, 0x1f
lea edi, [esi + 0x598]
lea ecx, [edx + eax - 0x14]
mov edx, dword [esp + 0x10]
push ecx
push 2
push edx
push 0
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::InsertColumn
push 0xf1f7
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub ecx, eax
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
add edx, eax
push 0xffffffffffffffff
push edx
push 2
push ecx
push 1
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::InsertColumn
mov edx, dword [esi + 0x5b8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1037
push edx
call ebp
or al, 0x21
push eax
mov eax, dword [esi + 0x5b8]
push 0
push 0x1036
push eax
call ebp
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi + 0x5b8]
push eax
push 0
push 0x1001
push ecx
call ebp
push 0xf232
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
lea edx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
call fcn.0040c180
lea ecx, [esp + 0x18]
call fcn.004217e8
push 1
push 0x10
push 0x11
push 0x10
push 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CImageList::Create
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esi + 0x5b8]
push 1
push 0x1003
push eax
call ebp
push eax
call sub.MFC42.DLL_CImageList::FromHandle
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
push 0
push 0
push 0xff0000
push 0x92
lea ecx, [esi + 0x260]
mov byte [esp + 0x48], 2
call fcn.00410c60
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.004217ee
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x30
ret
Function at 0x40e580
Capabilities:
Persist via run registry key
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b1400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040eaa0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x190]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [eax + 0x94]
push eax
push ecx
push str.HotkeyMode
push str.Setup
call edi
mov dword [esi + 0x190], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x94]
mov eax, dword [esi + 0x194]
push edx
push eax
push str.ProcessPriority
push str.Setup
call edi
mov dword [esi + 0x194], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x198]
mov ecx, dword [eax + 0x94]
push ecx
push edx
push str.Beep
push str.Setup
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
lea ecx, [esp + 0x10]
mov dword [esi + 0x198], eax
call sub.MFC42.DLL_CString::CString_2
push 0x52e45c
lea eax, [esp + 0x14]
xor ebx, ebx
push str.MyMacro_
push eax
mov dword [esp + 0x50], ebx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call fcn.004215a8
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x52e3b8
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.004538f0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x48], 3
call fcn.00453c60
mov byte [esp + 0x44], 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x52e3b8
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40e6f1
mov dword [esi + 0x19c], ebx
jmp 0x40e6fb
mov dword [esi + 0x19c], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], bl
call fcn.00453a70
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret
Function at 0x410520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x150]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x410656
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x14c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x15c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x410602
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x150]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x164], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0x150]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x14c]
sub ecx, edi
test edx, edx
je 0x410677
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00421b8a
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x411fd0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b19ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebp
push esi
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x148]
push eax
push ecx
mov dword [esp + 0x148], 2
call fcn.00470580
mov ebp, eax
xor esi, esi
add esp, 8
cmp ebp, esi
je 0x4121d2
push ebx
push edi
lea ecx, [esp + 0x154]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x154]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x154]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x52e3b8
push edx
call ebx
add esp, 8
test eax, eax
je 0x4120e2
mov eax, dword [esp + 0x154]
push 0x50e5c8
push eax
call ebx
add esp, 8
test eax, eax
je 0x4120e2
push 0x5c
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::TrimLeft_2
push 0x3a
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jg 0x4120c9
lea ecx, [esp + 0x154]
lea edx, [esp + 0x10]
push ecx
push 0x52e448
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x158]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x154]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x154]
push ecx
jmp 0x4120e9
mov edx, dword [0x52e448]
push edx
push ebp
call fcn.004706e0
add esp, 8
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebp
call fcn.004705c0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
mov edi, eax
jle 0x4121b3
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
call fcn.004705c0
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 4
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x158]
push 0x52e3b8
push eax
call ebx
add esp, 8
test eax, eax
je 0x41218a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x158]
push ecx
push edx
call fcn.00411f40
add esp, 8
test eax, eax
je 0x412199
lea eax, [esp + 0x18]
push eax
push esi
push ebp
call fcn.004706a0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jl 0x41212d
push ebp
call fcn.004707a0
add esp, 4
test al, al
pop edi
pop ebx
push ebp
je 0x4121ca
call fcn.00470720
jmp 0x4121cf
call fcn.0046bc90
add esp, 4
lea ecx, [esp + 0x148]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14c]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x150]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x138]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x4127b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1bc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4bd070
mov dword [esp + 0x10], 0xe
call fcn.00412920
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x416b40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b1f88
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 0x416bea
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00421980
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x416bd1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x416bd1
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.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x416c00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x416c62
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_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x416c70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
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_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x416d64
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, edi
call fcn.00416c00
test eax, eax
jne 0x416d64
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, edi
call fcn.00416c00
test eax, eax
jne 0x416d64
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x416d35
lea eax, [esp + 0x10]
push 0x50e800
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x416d35
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x416d38
mov byte [esi], 0
push 0x50e330
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x417180
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x1078
call fcn.00421f40
mov ax, word [0x50e5f0]
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 0x417306
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 0x417306
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ecx
call fcn.00416f70
add esp, 4
cmp eax, ebx
jne 0x4172e0
lea eax, [esp + 0x10]
push eax
call fcn.00417010
add esp, 4
cmp eax, ebx
jne 0x4172e0
lea ecx, [esp + 0x10]
push ecx
call fcn.004170b0
add esp, 4
cmp eax, ebx
je 0x4172fb
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 sub.MFC42.DLL_CString::operator_1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1078
ret
Function at 0x417f50
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.00438000
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push str.plugin
push 0x52e448
push edx
call sub.MFC42.DLL_operator_2
call fcn.004381c0
add esp, 4
mov ecx, esi
push ebx
call fcn.00418480
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 0x50e9ac
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 0x50e9ac
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.00438220
push ebx
call fcn.00438270
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4182a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2270
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 0x4182ee
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, 0x52e45c
call sub.MFC42.DLL_CString::operator_1
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 [0x52e464], eax
mov eax, dword [esi + 0x1c]
push eax
push 0
push str.HideSettingPage
push str.General
call edi
mov dword [0x52e468], eax
mov eax, dword [esi + 0x1c]
push eax
push 0
push str.BBXFreeUniqueuiVersion
push str.PrivateSetting
call edi
mov dword [0x52e46c], eax
mov eax, dword [esi + 0x1c]
push eax
push 1
push str.ShowAD
push str.General
call edi
mov dword [0x50e5cc], 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 0x52e3b8
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x52e3b8
call sub.MFC42.DLL_CString::CString_2
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_2
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_2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00453f80
mov ecx, eax
call fcn.004542d0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x41846b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret