joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a140
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x5e25c8]
sub esp, 0x134
test eax, eax
jne 0x40a215
lea eax, [esp]
mov dword [0x5e25c8], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a215
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a208
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40a208
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a208
mov dword [0x5e25c4], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x5e25c4]
add esp, 0x134
ret

Function at 0x40ad50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d34cb
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], 0x4e1c58
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x40ade0
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 0x40ada7
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 0x40add1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40ade6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40ade6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4e1bec
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4e16e0
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045afc2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40c2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d38d8
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 + 0x570]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
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 + 0x550]
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 + 0x570]
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 + 0x570]
push 0
push 0x1036
push eax
call ebp
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi + 0x570]
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_4
mov ecx, edi
call fcn.0040c4c0
lea ecx, [esp + 0x18]
call fcn.0045aeb4
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 + 0x570]
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_3
push 0
push 0
push 0xff0000
push 0x92
lea ecx, [esi + 0x218]
mov byte [esp + 0x48], 2
call fcn.004108b0
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.0045aeba
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 0x40e710
Capabilities:
Persist via run registry key
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4d3ea0
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.0040ec30
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_1
push 0x5e365c
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 sub.MFC42.DLL_CString::operator_2
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 0x5e2540
call sub.MFC42.DLL_CString::CString_1
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_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.0045c060
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x48], 3
call fcn.0045c3d0
mov byte [esp + 0x44], 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x5e2540
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40e881
mov dword [esi + 0x19c], ebx
jmp 0x40e88b
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.0045c1e0
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 0x410170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d42b8
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 0x4102a6
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 0x410252
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 0x4102c7
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.0045b226
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x4125b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4757
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], 0x4e3308
mov dword [esp + 0x10], 0xe
call fcn.00412720
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 0x414a90
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x414acb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00414a80
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x414bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x414c41
mov eax, dword [esp]
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0x10
ret

Function at 0x414dc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
push eax
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x414e0b
mov eax, dword [esp]
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0xc
ret
Function at 0x414fc0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 8], eax
jne 0x414ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414a80
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x41502b
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00414a80
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x4150c3
cmp eax, 0x2733
jne 0x4150c3
mov eax, dword [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x415085
call edi
push eax
call fcn.00414a80
add esp, 4
or esi, esi
jmp 0x4150c3
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x4150ab
call edi
push eax
call fcn.00414a80
add esp, 4
or esi, 0xffffffff
jmp 0x4150c3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4150c1
push eax
call fcn.00414a80
add esp, 4
or esi, 0xffffffff
jmp 0x4150c3
xor esi, esi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x415120
Capabilities:
Create thread
Resolve dns

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push edi
mov edi, dword [esp + 0xac]
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4151e4
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4151bb
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4151bb
cmp dword [esp + 0x24], 2
jne 0x4151bb
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x4150f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4151bb
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4151bb
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4151d3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x416950
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d4b18
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 0x4169fa
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
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.0045b040
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4169e1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4169e1
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 0x416a10
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 0x416a72
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 0x417930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x1078
call fcn.0045b980
mov ax, word [0x5c1688]
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 0x417ab6
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 0x417ab6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ecx
call fcn.00417720
add esp, 4
cmp eax, ebx
jne 0x417a90
lea eax, [esp + 0x10]
push eax
call fcn.004177c0
add esp, 4
cmp eax, ebx
jne 0x417a90
lea ecx, [esp + 0x10]
push ecx
call fcn.00417860
add esp, 4
cmp eax, ebx
je 0x417aab
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 fcn.0045acce
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1078
ret
Function at 0x418720
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d4f98
push eax
mov dword fs:[0], esp
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 + 0x24]
mov ebx, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebx
call fcn.00432900
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push str.plugin
push 0x5e3648
push edx
call sub.MFC42.DLL_operator_4
mov dword [esp + 0x1c], 0xffffffff
call fcn.00418830
mov ecx, eax
call fcn.00418840
push ebx
mov ecx, esi
call fcn.00418d20
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 str.Hotkey
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 str.Hotkey
call edi
mov edx, eax
mov ecx, ebp
and edx, 0xffff
and ecx, 0xffff
shl edx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x28]
push eax
push ebp
mov dword [ecx], edx
call fcn.00432ac0
push ebx
call fcn.00432b10
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc