joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40155a
Capabilities:
Read file on windows

Disassembly:
jmp 0x406e1d
mov eax, 0x803404
call fcn.0072bca0
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 0x65
call sub.MFC42.DLL_CWnd::GetDlgItem
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x406f13
push edi
lea eax, [ebp - 0x18]
push dword [ebp + 8]
lea ecx, [esi + 0x60]
push eax
call sub.MFC42.DLL_CListCtrl::GetItemText_1
push eax
add esi, 0x1a4
lea eax, [ebp + 8]
push esi
push eax
mov dword [ebp - 4], edi
call sub.MFC42.DLL_operator_4
push str..txt
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
push 0x8aaa14
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
jne 0x406eb7
mov ecx, dword [ebp - 0x14]
push 0x8bd670
call sub.MFC42.DLL_CWnd::SetWindowTextA
jmp 0x406f07
push 2
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
lea eax, [esi + 1]
push eax
call sub.MFC42.DLL_operatornew
push ebx
mov edi, eax
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebp - 0x14]
and byte [edi + esi], 0
add esp, 0x28
push edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push edi
call dword [sym.imp.MSVCRT.dll_free]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40159b
Capabilities:
Read .ini file

Disassembly:
jmp 0x421b45
mov eax, 0x805bff
call fcn.0072bca0
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
push dword [esi + 0x1c]
push edi
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp dword [esi + 0xc], edi
jle 0x421bda
lea ebx, [esi + 4]
lea ecx, [ebp - 0x1a0]
call fcn.004014d3
and dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push edi
push eax
mov ecx, ebx
call fcn.0040119f
lea ecx, [ebp - 0x1a0]
call fcn.006d63f0
push ecx
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
mov dword [ebp - 0x174], 1
call fcn.004020b3
mov ecx, dword [ebp + 8]
call fcn.006da950
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.00402b1c
inc edi
cmp edi, dword [esi + 0xc]
jl 0x421b78
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4015eb
Capabilities:
Delete file

Disassembly:
jmp 0x421d24
mov eax, 0x805c78
call fcn.0072bca0
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push eax
call fcn.004023ec
and dword [ebp - 4], 0
mov esi, str.plugin.zip
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
push eax
push ecx
call sub.MFC42.DLL_operator_3
mov ecx, dword [ebp - 0x10]
call fcn.00402360
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ebx, 0x8bd670
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x24], esp
push str.plugin
push 0x8be790
push eax
call sub.MFC42.DLL_operator_3
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.004023ec
mov ecx, esp
mov dword [ebp - 0x28], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_operator_3
mov byte [ebp - 4], 4
call fcn.006e4aa0
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
call fcn.004023ec
pop ecx
push esi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 5
push eax
call sub.MFC42.DLL_operator_3
push dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.004023ec
mov esi, str.mymacro.zip
mov ecx, esp
mov dword [ebp - 0x28], esp
push esi
push eax
push ecx
mov dword [ebp - 4], 6
call sub.MFC42.DLL_operator_3
mov ecx, dword [ebp - 0x10]
call fcn.00402360
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push ebx
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [ebp - 4], 7
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004023ec
lea eax, [ebp + 8]
mov byte [ebp - 4], 8
push eax
call fcn.004023ec
add esp, 4
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
push eax
push ecx
call sub.MFC42.DLL_operator_3
mov byte [ebp - 4], 0xa
call fcn.006e4aa0
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x20]
push eax
call fcn.004023ec
pop ecx
push esi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0xb
push eax
call sub.MFC42.DLL_operator_3
push dword [eax]
call edi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x40160e
Capabilities:
Read file via mapping

Disassembly:
jmp 0x6b9b51
push 4
push 0
push 0
push 0xf001f
push dword [ecx + 0xcc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x6b9b79
mov ecx, dword [esp + 4]
push eax
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
ret 4
Function at 0x4016c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x40efb7
push ebx
push ebp
push esi
push edi
movzx esi, word [esp + 0x14]
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
push 2
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x40efea
xor ebp, ebp
push 2
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x40f022
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f022
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40f022
cmp dword [eax + 0x20], 0
je 0x40f00d
mov ax, word [eax + 0x20]
jmp 0x40f01c
movzx eax, word [eax + 0xe]
dec eax
je 0x40f019
sub eax, 3
jmp 0x40f020
push 2
pop eax
cmp ax, 0x10
je 0x40f026
xor eax, eax
jmp 0x40f02f
push 0
push edi
push ebp
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401b8b
Capabilities:
Delete registry value

Disassembly:
jmp 0x4153d3
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
push 0x20006
push 0
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [esi + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop edi
pop esi
ret
Function at 0x401f2d
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x408071
mov eax, 0x803500
call fcn.0072bca0
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_3
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0xc], al
mov al, byte [ebp - 0xd]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x402360
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
jmp 0x421c14
mov eax, 0x805c18
call fcn.0072bca0
push ecx
push esi
push edi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
xor esi, esi
push 4
push 1
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp dword [ebp - 0x10], esi
jle 0x421c98
push 0x8ab824
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x421c98
cmp dword [ebp - 0x10], esi
jle 0x421c90
push edi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fgetc]
pop ecx
xor eax, 0xcc
push eax
call dword [sym.imp.MSVCRT.dll_fputc]
inc esi
pop ecx
cmp esi, dword [ebp - 0x10]
pop ecx
jl 0x421c71
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x402365
Capabilities:
Create process on windows

Disassembly:
jmp 0x406f65
mov eax, 0x803420
call fcn.0072bca0
push ecx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esi + 0x18c]
and dword [ebp - 4], 0
test esi, esi
je 0x406fb6
push edi
mov edi, 0x8bd670
lea eax, [esi + 8]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 5
mov esi, dword [esi]
push edi
push edi
push dword [ebp - 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
jne 0x406f8f
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40265d
Capabilities:
Persist via run registry key
Read .ini file

Disassembly:
jmp 0x414f57
mov eax, 0x804950
call fcn.0072bca0
sub esp, 0x30
push ebx
push esi
push edi
push 1
mov esi, ecx
pop eax
and dword [esi + 0x19c], 0
mov dword [esi + 0x190], eax
mov dword [esi + 0x194], 2
mov dword [esi + 0x198], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, str.Setup
push dword [eax + 0x94]
push dword [esi + 0x190]
push str.HotkeyMode
push ebx
call edi
mov dword [esi + 0x190], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push dword [eax + 0x94]
push dword [esi + 0x194]
push str.ProcessPriority
push ebx
call edi
mov dword [esi + 0x194], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push dword [eax + 0x94]
push dword [esi + 0x198]
push str.Beep
push ebx
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
lea ecx, [ebp - 0x10]
mov dword [esi + 0x198], eax
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
push 0x8be7a4
lea eax, [ebp - 0x14]
push str.MyMacro_
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push ecx
mov edi, 0x8bd670
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0072d7b0
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 3
call fcn.0072db20
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
push edi
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll__mbscmp]
neg eax
pop ecx
mov byte [ebp - 4], 3
sbb eax, eax
pop ecx
neg eax
lea ecx, [ebp - 0x18]
mov dword [esi + 0x19c], eax
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0072d930
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40282e
Capabilities:
Check os version

Disassembly:
jmp 0x408499
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x408501
push 1
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x40855b
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x4084e4
push 5
jmp 0x408552
cmp eax, 5
jne 0x408553
cmp dword [edi + 8], 0
jne 0x4084f3
push 6
jmp 0x408552
cmp eax, 5
jne 0x408553
cmp dword [edi + 8], ebx
jne 0x408553
push 7
jmp 0x408552
cmp al, 4
jae 0x408509
xor ebx, ebx
jmp 0x40855b
push 2
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x40855b
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x408553
cmp dword [edi + 8], 0xa
jne 0x408546
push 3
jmp 0x408552
cmp eax, 4
jne 0x408553
cmp dword [edi + 8], 0x5a
jne 0x408553
push eax
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402888
Capabilities:
Read .ini file

Disassembly:
jmp 0x6bec3d
mov eax, 0x80732b
call fcn.0072bca0
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
push 0x9e
call sub.MFC42.DLL_CDialog::CDialog_1
and dword [ebp - 4], 0
lea edi, [esi + 0x60]
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov ebx, 0x81b890
mov dword [edi], ebx
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CWnd::CWnd
mov edi, 0x81c904
mov dword [esi + 0xa0], edi
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi + 0xe0], edi
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi + 0x120], ebx
lea ebx, [esi + 0x160]
mov byte [ebp - 4], 4
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebx], edi
lea ebx, [esi + 0x1a0]
mov byte [ebp - 4], 5
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebx], edi
lea ebx, [esi + 0x1e0]
mov byte [ebp - 4], 6
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebx], edi
lea ebx, [esi + 0x220]
mov byte [ebp - 4], 7
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebx], edi
lea ebx, [esi + 0x260]
mov byte [ebp - 4], 8
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebx], 0x81cfb0
lea ecx, [esi + 0x2a0]
mov byte [ebp - 4], 9
call fcn.004019ec
lea ebx, [esi + 0x2e0]
mov byte [ebp - 4], 0xa
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebx], edi
lea ebx, [esi + 0x320]
mov byte [ebp - 4], 0xb
mov ecx, ebx
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebx], edi
mov byte [ebp - 4], 0xc
push 0
lea ecx, [esi + 0x364]
call fcn.00401e01
lea ecx, [esi + 0x608]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x60c]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0xf
mov dword [esi], 0x81ee64
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push dword [eax + 0x94]
push 0
push str.LastLoginServer
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x360], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402a77
Capabilities:
Read .ini file

Disassembly:
jmp 0x421333
mov eax, 0x805b58
call fcn.0072bca0
push ebx
push esi
push edi
mov ebx, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [eax + 0x94]
push 1
push str.HotkeyMode
push str.Setup
call esi
cmp eax, 0xffffffff
jle 0x42136e
cmp eax, 5
jl 0x421371
push 1
pop eax
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.006dafc0
push ecx
mov eax, esp
mov dword [ebp + 0xc], esp
push str.plugin
push 0x8be790
push eax
call sub.MFC42.DLL_operator_3
or dword [ebp - 4], 0xffffffff
call fcn.004012c1
mov ecx, eax
call fcn.00402518
push dword [ebp + 8]
mov ecx, ebx
call fcn.0040159b
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [ebx + 0x20]
mov edi, 0x8ab6cc
push dword [eax + 0x94]
movzx eax, cx
push eax
push str.EndHotkey
push edi
call esi
mov dword [ebp + 0xc], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [ebx + 0x20]
shr ecx, 0x10
push dword [eax + 0x94]
push ecx
push str.EndHotkeyMod
push edi
call esi
movzx edx, word [ebp + 0xc]
movzx ecx, ax
shl ecx, 0x10
or ecx, edx
mov edx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov dword [edx], ecx
call fcn.006db170
push dword [ebp + 8]
call fcn.006db1b0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41c9ce
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x41c9f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ca12
push 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x41ca1f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [0x8beb1c], eax
or eax, 0xffffffff
jmp 0x41caf5
push edi
push edi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.WS2_32.dll_WSAAccept]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
call ebx
cmp dword [ebp - 8], 0xffffffff
jne 0x41ca96
cmp eax, 0x2733
jne 0x41ca96
push 1
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push 1
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
jne 0x41ca8f
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x41ca8f
mov eax, dword [ebp - 0x24]
cmp eax, edi
jne 0x41ca91
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 8], eax
jmp 0x41ca96
call ebx
mov dword [0x8beb1c], eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
or edi, 0xffffffff
cmp esi, edi
je 0x41caf3
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x41cada
call ebx
mov dword [0x8beb1c], eax
jmp 0x41cae5
push esi
call fcn.00402211
cmp eax, edi
pop ecx
jne 0x41caf3
push 1
push esi
call fcn.00401e60
pop ecx
mov eax, edi
pop ecx
jmp 0x41caf5
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4205c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1078
call fcn.0072bd20
mov ax, word [0x8aad54]
push ebx
push esi
push edi
mov word [ebp - 0x1078], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1076]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xb
mov esi, str.devicephysicalmemory
pop ecx
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x4a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
xor ebx, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push str.ntdll.dll
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], 0xf0000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0xffff
mov dword [ebp - 8], ebx
mov word [ebp - 0x1c], 0x2c
mov word [ebp - 0x1a], 0x2e
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 4], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0xc], eax
call esi
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call dword [ebp - 4]
test eax, eax
jne 0x420706
push 2
push ebx
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffff
lea eax, [ebp - 8]
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [ebp - 0xc]
test eax, eax
jne 0x420706
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040244b
cmp eax, ebx
pop ecx
jne 0x4206ec
lea eax, [ebp - 4]
push eax
call fcn.00402892
cmp eax, ebx
pop ecx
jne 0x4206ec
lea eax, [ebp - 4]
push eax
call fcn.0040124e
cmp eax, ebx
pop ecx
je 0x4206ff
push eax
lea eax, [ebp - 0x1078]
push dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
push 0xffffffffffffffff
call esi
call sub.MFC42.DLL_AfxGetEmptyString
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, esi
mov dword [esi], eax
lea eax, [ebp - 0x1078]
push eax
call sub.MFC42.DLL_CString::operator_3
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421b56
Capabilities:
Read .ini file

Disassembly:
jmp 0x421b45
mov eax, 0x805bff
call fcn.0072bca0
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
push dword [esi + 0x1c]
push edi
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp dword [esi + 0xc], edi
jle 0x421bda
lea ebx, [esi + 4]
lea ecx, [ebp - 0x1a0]
call fcn.004014d3
and dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push edi
push eax
mov ecx, ebx
call fcn.0040119f
lea ecx, [ebp - 0x1a0]
call fcn.006d63f0
push ecx
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
mov dword [ebp - 0x174], 1
call fcn.004020b3
mov ecx, dword [ebp + 8]
call fcn.006da950
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.00402b1c
inc edi
cmp edi, dword [esi + 0xc]
jl 0x421b78
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4