joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401339
Capabilities:
Read .ini file

Disassembly:
jmp 0x4220e0
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0x104
push eax
push 0x46b324
push str.SORT_MODE_STR_BLOCK
mov esi, ecx
push str.UI_SHOW
call ebp
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x2d4]
call sub.MFC42.DLL_CString::operator_1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0
push str.SORT_MODE_COLOR_BLOCK
push str.UI_SHOW
call ebx
push edi
lea edx, [esp + 0x14]
push 0x104
push edx
push 0x46b324
push str.SORT_MODE_STR_PAGE
push str.UI_SHOW
mov dword [esi + 0x2d8], eax
call ebp
lea eax, [esp + 0x10]
lea ecx, [esi + 0x2dc]
push eax
call sub.MFC42.DLL_CString::operator_1
push edi
push 0
push str.SORT_MODE_COLOR_PAGE
push str.UI_SHOW
call ebx
push edi
lea ecx, [esp + 0x14]
push 0x104
push ecx
push 0x46b324
push str.SORT_MODE_STR_SECTOR
push str.UI_SHOW
mov dword [esi + 0x2e0], eax
call ebp
lea edx, [esp + 0x10]
lea ecx, [esi + 0x2e4]
push edx
call sub.MFC42.DLL_CString::operator_1
push edi
push 0
push str.SORT_MODE_COLOR_SECTOR
push str.UI_SHOW
call ebx
mov dword [esi + 0x2e8], eax
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
push 0x46b324
push str.OPTIMIZE_MODE_STR_SPEED
push str.UI_SHOW
call ebp
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x2ec]
call sub.MFC42.DLL_CString::operator_1
push edi
push 0
push str.OPTIMIZE_MODE_COLOR_SPEED
push str.UI_SHOW
call ebx
mov dword [esi + 0x2f0], eax
push edi
lea edx, [esp + 0x14]
push 0x104
push edx
push 0x46b324
push str.OPTIMIZE_MODE_STR_CAP
push str.UI_SHOW
call ebp
lea eax, [esp + 0x10]
lea ecx, [esi + 0x2f4]
push eax
call sub.MFC42.DLL_CString::operator_1
push edi
push 0
push str.OPTIMIZE_MODE_COLOR_CAP
push str.UI_SHOW
call ebx
push edi
push 0
push str.DETECT_RESULT_CFG
push str.UI_SHOW
mov dword [esi + 0x2f8], eax
call ebx
push edi
push 0
push str.DETECT_COLOR_MAIN_TEXT
push str.UI_SHOW
mov dword [esi + 0x2fc], eax
call ebx
push edi
push 0
push str.DETECT_COLOR_MAIN_BK
push str.UI_SHOW
mov dword [esi + 0x300], eax
call ebx
push edi
push 0
push str.DETECT_COLOR_SUB_TEXT
push str.UI_SHOW
mov dword [esi + 0x304], eax
call ebx
push edi
push 0
push str.DETECT_COLOR_SUB_BK
push str.UI_SHOW
mov dword [esi + 0x308], eax
call ebx
push edi
push 0
push str.MPED_RESULT_CFG
push str.UI_SHOW
mov dword [esi + 0x30c], eax
call ebx
push edi
push 0
push str.MPED_COLOR_MAIN_TEXT
push str.UI_SHOW
mov dword [esi + 0x310], eax
call ebx
push edi
push 0
push str.MPED_COLOR_MAIN_BK
push str.UI_SHOW
mov dword [esi + 0x314], eax
call ebx
push edi
push 0
push str.MPED_COLOR_SUB_TEXT
push str.UI_SHOW
mov dword [esi + 0x318], eax
call ebx
push edi
push 0
push str.MPED_COLOR_SUB_BK
push str.UI_SHOW
mov dword [esi + 0x31c], eax
call ebx
push edi
push 0
mov dword [esi + 0x320], eax
push str.DETECT_COLOR_SHOW_FLASH_ID
push str.UI_SHOW
call ebx
mov dword [esi + 0x324], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 4
Function at 0x40133e
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x40ac50
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453810
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x16bbc]
test eax, eax
je 0x40adb5
cmp byte [esp + 0x2c], 0x41
je 0x40adb5
push 0x60e
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
test bl, bl
je 0x40adb5
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
and ebx, 0xff
lea ecx, [esp + 0x14]
push ebx
push str.PC_d
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_3
mov bl, 2
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x14]
add esi, 0x16bc0
push edx
push esi
lea eax, [esp + 0x18]
push str._s_s_LOG.ini
push eax
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x1c]
inc ecx
push ecx
push str.PORT_d
push edx
call sub.MFC42.DLL_CString::Format
movsx eax, byte [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
push 0x465ef0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x28
push edx
push eax
push ecx
push str.PortMapping
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x18]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x40134d
Capabilities:
Terminate process

Disassembly:
jmp 0x417e20
push 0xffffffffffffffff
push 0x454fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x467174]
xor edx, edx
push esi
mov esi, ecx
mov ecx, dword [0x467178]
mov dword [esp + 8], eax
mov dword [esp + 0x10], edx
push 0x40139d
lea eax, [esp + 0xc]
mov dword [esp + 0x18], edx
push 0x4018c5
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
call fcn.0044a060
add esp, 0xc
test eax, eax
jne 0x417ea5
push str.Create_wait_thread_error__r_n
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 4]
push 0x10
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CWnd::MessageBoxA
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x401370
Capabilities:
Read .ini file
Terminate process

Disassembly:
jmp 0x4274b0
push 0xffffffffffffffff
push 0x456bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [esp + 0x124]
push ebp
push esi
push 0x46bdb8
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_operator
mov edx, dword [esp + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
mov dword [esp + 0x13c], 1
call ebp
cmp eax, 0xffffffff
je 0x427589
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov edx, dword [0x46bdfc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push 0x104
push ecx
push 0
push str.IniName
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x46b324
lea eax, [esp + 0x18]
pop edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42759f
test cl, cl
je 0x427585
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42759f
add eax, 2
add esi, 2
test cl, cl
jne 0x427565
xor eax, eax
jmp 0x4275a4
push 0
push 0
push str.Default_profile_not_exist_
call sub.MFC42.DLL_AfxMessageBox
push 0
call dword [sym.imp.MSVCRT.dll_exit]
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x427630
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0x46b740
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call ebp
cmp eax, 0xffffffff
je 0x4275ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x4275ec
xor esi, esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x427675
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push 0x46b740
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x128]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x11c
ret
push 0
push 0x24
push str.The_target_file_does_not_exist__r_nWhether_import_default_setting__r_n
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
jne 0x4276a6
mov ecx, dword [esp + 8]
mov edx, dword [0x46bdfc]
push ecx
push 0x46b324
push str.IniName
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x427630
push 0
push 0
push str.Profile_not_exist_
call sub.MFC42.DLL_AfxMessageBox
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
int3
Function at 0x401438
Capabilities:
Terminate process

Disassembly:
jmp 0x413fc0
push ecx
push esi
mov esi, ecx
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x413fd6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x413fd8
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
test eax, eax
je 0x413fff
mov ecx, dword [eax + 4]
push 2
push 0xf060
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push 0x7d9
push edx
call edi
mov eax, dword [esi + 0x20]
push 0x7e2
push eax
call edi
push 0
push 0
push 0x4503
mov ecx, esi
call fcn.004018ac
push 0x40
mov ecx, esi
call fcn.004012a8
mov eax, dword [0x46b9a8]
test eax, eax
je 0x414047
push 1
mov ecx, esi
call fcn.0040186b
mov ecx, esi
call fcn.00401195
mov ecx, esi
call fcn.00401203
cmp dword [0x46b748], 2
jne 0x414092
push str.AmWinK.exe
mov ecx, esi
call fcn.00401528
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 8]
mov edi, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x16b74]
pop edi
test eax, eax
je 0x4140a4
mov ecx, esi
call fcn.00401979
mov eax, dword [0x46bce8]
test eax, eax
je 0x4140bf
push 0x46bcc8
push 0x46bcd0
call fcn.00436bb0
add esp, 8
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
pop ecx
ret
Function at 0x40145b
Capabilities:
Get hostname
Read .ini file

Disassembly:
jmp 0x40b180
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45389b
push eax
mov eax, dword [0x46b73c]
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push eax
push 0
push str.RemoteLogging
mov esi, ecx
push str.LogFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esi + 0x16bbc], eax
je 0x40b1ce
mov ecx, esi
call fcn.0040119f
mov ecx, esi
call fcn.00401951
mov eax, dword [0x46badc]
test eax, eax
jne 0x40b1ef
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
lea ecx, [esp + 8]
push edi
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x10]
lea edi, [esi + 0x16bb0]
push eax
push 0x465e94
push edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x46bae0]
add esp, 0xc
test eax, eax
jne 0x40b273
mov eax, dword [0x46bae8]
test eax, eax
je 0x40b257
mov ecx, dword [0x46b740]
lea edx, [esi + 0x16bb4]
push ecx
push str._sLOG_Aristech_
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
call fcn.0040169f
jmp 0x40b2c5
mov eax, dword [0x46b740]
add esi, 0x16bb4
push eax
push str._sLOG_
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40b2c5
lea ecx, [esp + 8]
push 3
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov dword [esp + 0x11c], 0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [0x46b740]
push eax
push edx
add esi, 0x16bb4
push str._sLOG_03X_LOG_
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x4014e2
Capabilities:
Check os version

Disassembly:
jmp 0x411cd0
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
mov dword [0x46b748], 0xff
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [0x46b750], 0
push eax
mov dword [esp + 0xc], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411d1a
call edi
jmp 0x411d81
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x411d48
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411d37
mov dword [0x46b748], 2
jmp 0x411d81
cmp eax, 1
jne 0x411d81
mov dword [0x46b748], 3
jmp 0x411d81
cmp eax, 6
jne 0x411d81
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411d61
mov dword [0x46b748], 4
jmp 0x411d81
cmp eax, 1
jne 0x411d72
mov dword [0x46b748], 5
jmp 0x411d81
cmp eax, 2
jne 0x411d81
mov dword [0x46b748], 6
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x411db2
push 0x46b750
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x411db2
call edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [0x46b754], ax
mov eax, dword [0x46b754]
and eax, 0xffff
pop edi
cmp eax, 0x404
pop esi
je 0x411de8
xor ecx, ecx
cmp eax, 0x804
sete cl
mov dword [0x46b74c], ecx
add esp, 0x9c
ret
mov dword [0x46b74c], 2
add esp, 0x9c
ret

Function at 0x4014fb
Capabilities:
Set file attributes

Disassembly:
jmp 0x4220b0
mov eax, dword [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4
Function at 0x401528
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x404bf0
sub esp, 0x90c
mov eax, dword [str.UnknownProcess]
mov ecx, dword [0x465acc]
mov edx, dword [0x465ad0]
push ebx
mov dword [esp + 0xc], eax
mov ax, word [0x465ad4]
mov dword [esp + 0x10], ecx
mov cl, byte [0x465ad6]
push ebp
push esi
push edi
mov word [esp + 0x24], ax
mov byte [esp + 0x26], cl
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x27]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x120]
push 0x800
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x404cfd
mov ebp, dword [esp + 0x14]
mov ebx, 0
shr ebp, 2
je 0x404cf2
lea edi, [esp + 0x11c]
mov ecx, dword [edi]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404ccd
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x404ccd
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov eax, dword [esp + 0x920]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x404cd7
inc ebx
add edi, 4
cmp ebx, ebp
jb 0x404c72
jmp 0x404cf6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + ebx*4 + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90c
ret 4
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90c
ret 4
Function at 0x401550
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x431820
push 0xffffffffffffffff
push 0x4577e8
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 + 0x108]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x431956
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 + 0x104]
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 + 0x114]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x431902
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x108]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x11c], 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 + 0x108]
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 + 0x104]
sub ecx, edi
test edx, edx
je 0x431977
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.004478ea
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x40162c
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
jmp 0x417ef0
push 0xffffffffffffffff
push 0x45501b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
push ebx
push esi
push 0x46b324
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x114]
mov ebx, 1
push eax
push 0x202
mov dword [esp + 0x2b4], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x417f7c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [esp + 0x10]
push str.WSAStartup_Error__Error_is__d
push ecx
mov byte [esp + 0x2b8], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x2ac], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push 0x100
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x417ff1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x2ac], 3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x10]
push str.Gethostname_Error__Error:__u_n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
push str.ErrorName
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x2b4]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x2ac], bl
call sub.MFC42.DLL_CString::CString
jmp 0x418025
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push 0x465e94
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x2b4]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x2ac], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2a4]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a8
ret 4
Function at 0x40166d
Capabilities:
Check os version

Disassembly:
jmp 0x423360
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
mov dword [0x46bc60], 0xff
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [0x46bc68], 0
push eax
mov dword [esp + 0xc], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4233aa
call edi
jmp 0x423411
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x4233d8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4233c7
mov dword [0x46bc60], 2
jmp 0x423411
cmp eax, 1
jne 0x423411
mov dword [0x46bc60], 3
jmp 0x423411
cmp eax, 6
jne 0x423411
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4233f1
mov dword [0x46bc60], 4
jmp 0x423411
cmp eax, 1
jne 0x423402
mov dword [0x46bc60], 5
jmp 0x423411
cmp eax, 2
jne 0x423411
mov dword [0x46bc60], 6
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x423442
push 0x46bc68
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x423442
call edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [0x46bc6c], ax
mov eax, dword [0x46bc6c]
and eax, 0xffff
pop edi
cmp eax, 0x404
pop esi
je 0x423478
xor ecx, ecx
cmp eax, 0x804
sete cl
mov dword [0x46bc64], ecx
add esp, 0x9c
ret
mov dword [0x46bc64], 2
add esp, 0x9c
ret
Function at 0x40169a
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
jmp 0x404e20
sub esp, 0x7c
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [0x466cb8]
push edi
cmp ecx, 0x20
mov dword [esp + 0x38], 0x3ea
mov dword [esp + 0x3c], 0x3ec
mov dword [esp + 0x40], 0x3eb
mov dword [esp + 0x44], 0x5e5
mov dword [esp + 0x48], 0x5e6
mov dword [esp + 0x4c], 0x5e0
mov dword [esp + 0x50], 0x5ee
mov dword [esp + 0x54], 0x5ef
mov dword [esp + 0x58], 0x60d
mov dword [esp + 0x5c], 0x60e
mov eax, 7
jb 0x404e93
cmp ecx, 0x28
ja 0x404e93
mov eax, 0xa
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [0x46b73c]
xor edi, edi
push eax
push edi
push str.RemoteLogging
push str.LogFile
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3e8
mov ecx, ebp
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebx, eax
mov dword [esp + 0x24], eax
sub ebx, esi
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x404f56
mov ecx, dword [esp + eax + 0x38]
cmp ecx, 0x60d
je 0x404fd9
cmp ecx, 0x60e
je 0x404fd9
mov edi, dword [esp + eax + 0x38]
cmp edi, 0x5ee
jne 0x404f6c
mov ecx, dword [0x46b83c]
test ecx, ecx
je 0x404fd9
cmp edi, 0x5e0
jne 0x404f7e
mov ecx, dword [0x46b9a0]
test ecx, ecx
je 0x404fd9
cmp edi, 0x5e6
jne 0x404f90
mov ecx, dword [0x46b4f4]
test ecx, ecx
je 0x404fd9
mov eax, dword [esp + eax + 0x60]
push 5
add eax, ebx
push edi
add esi, eax
lea ecx, [esi + ebx]
mov dword [esp + 0x2c], ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push edi
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
sub edx, esi
push 1
push edx
mov edx, dword [esp + 0x28]
sub edx, ecx
push edx
push esi
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov eax, dword [esp + 0x10]
add eax, 4
cmp eax, 0x28
mov dword [esp + 0x10], eax
jl 0x404f32
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret