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

Disassembly:
push 0xffffffffffffffff
push 0x4b0adb
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], 0x4be4b8
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x409350
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 0x409317
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 0x409341
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x409356
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x409356
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4bd504
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4bd4f0
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 0x40a124
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SubclassDlgItem
test eax, eax
jne 0x40a13c
pop esi
ret 0xc
push ebx
push ebp
push edi
mov ecx, esi
call fcn.0040a1f0
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ecx, 6
xor eax, eax
lea edi, [esi + 0x40]
add esi, 0x5a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
xor eax, eax
mov edi, esi
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
xor ebx, ebx
mov edi, 0x1a
call ebp
cdq
idiv edi
xor eax, eax
xor ecx, ecx
cmp byte [esi + eax], 0
jne 0x40a197
cmp ecx, edx
je 0x40a19f
inc ecx
inc eax
cmp eax, 0x1a
jl 0x40a18c
jmp 0x40a1a7
mov dl, bl
add dl, 0x41
mov byte [esi + eax], dl
inc ebx
dec edi
test edi, edi
jg 0x40a183
mov edx, dword [0x4db990]
mov eax, dword [0x4db994]
inc edx
pop edi
pop ebp
mov dword [0x4db990], edx
test eax, eax
pop ebx
jne 0x40a1e1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x409cf0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4db994], eax
xor ecx, ecx
pop esi
test eax, eax
setne cl
mov eax, ecx
ret 0xc
Function at 0x40b080
Capabilities:
Access peb ldr_data
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0c58
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
cmp bl, 6
push edi
jne 0x40b0d2
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 8
call esi
push 0
push 2
push 0
push 8
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
cmp bl, 7
jne 0x40b100
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40b0e4
call sub.MFC42.DLL_CWnd::SetFocus
push 0xd
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
push 0
push 0
and esi, 0xff
push 0
jmp 0x40b284
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40b26f
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b26f
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push edx
push 0xb0
push eax
call edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x10]
mov ebx, 1
push ecx
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.0040a050
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00454c5e
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x2c]
mov ecx, esi
push edx
call fcn.00409fb0
mov eax, dword [esp + 0x28]
inc eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esi + 0x20]
push 0xb1
push eax
call edi
push 0
push 0
mov ecx, dword [esi + 0x20]
push 0xb7
push ecx
call edi
mov edx, dword [esi + 0x20]
push ebx
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanA]
push 0
mov byte [esp + 0x28], al
mov esi, dword [esp + 0x28]
push 0
push 0
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push esi
call edi
push 0
push 2
push 0
push esi
call edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x40c910
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0040da50
test eax, eax
jne 0x40c943
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40c760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c943
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret

Function at 0x411480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1497
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push 0x4db920
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0xc]
mov ebx, 1
push eax
mov dword [esp + 0x28], ebx
call fcn.00411420
mov ecx, dword [esp + 0x10]
push str.Game
push ecx
mov byte [esp + 0x30], 2
call fcn.00411190
mov edx, eax
add esp, 0xc
test edx, edx
je 0x41156b
push edi
mov edi, str.Game
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x10]
not ecx
dec ecx
sub edx, esi
add ecx, edx
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0x10]
push ecx
call fcn.00411600
add esp, 4
mov edx, dword [esp + 0x10]
mov byte [esp + 0x24], 4
mov eax, dword [edx - 8]
test eax, eax
je 0x4115ab
push 0x4d665c
lea ecx, [esp + 0x14]
call fcn.004550cc
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
push ecx
jmp 0x4115b0
lea edx, [esp + 8]
push edx
mov esi, dword [esp + 0x30]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x412770
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b16d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push 0x4db920
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 8]
push 0x104
push eax
mov dword [esp + 0x11c], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x4127ce
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x412820
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b1705
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push 0x4db920
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 8]
push 0x104
push eax
mov dword [esp + 0x11c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x41287e
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x413fc0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413fdf
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
ret 0x10
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0x10

Function at 0x4140b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov edx, dword [esp + 0x414]
xor eax, eax
cmp edx, eax
mov dword [esp], eax
jne 0x4140cc
mov edx, 0x4db920
push esi
mov esi, dword [esp + 0x41c]
cmp esi, eax
jne 0x414102
mov eax, dword [esp + 0x414]
mov esi, dword [esp + 0x40c]
push edx
mov edx, dword [esp + 0x414]
push eax
push edx
push esi
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, esi
pop esi
add esp, 0x404
ret 0x14
push edi
mov byte [esp + 0xc], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x41c]
push 0x400
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push edx
mov edx, dword [esp + 0x424]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x410]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop edi
pop esi
add esp, 0x404
ret 0x14

Function at 0x4142f0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x414310
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x298]
mov edx, dword [esp + 8]
sub esp, 0x100
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x108]
push 0x100
push ecx
push edx
push eax
push 0x4d68a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 5
push 0
lea ecx, [esp + 8]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x100
ret 8
Function at 0x415c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push ecx
push edx
mov byte [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415c81
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x120]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x100
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_4
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x415ca0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b2387
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push 0x104
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x124]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
lea edx, [esp + 0x1c]
push reloc.WSOCK32.dll_bind
push edx
call fcn.00415c10
add esp, 0x10
mov ebp, dword [esp + 0x238]
lea eax, [esp + 0x20]
push eax
push str._WinDir_
lea esi, [ebp + 0x44]
mov dword [esp + 0x238], 0
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x124]
push ecx
push str._SystemDir_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push str._ProgramDir_
call sub.MFC42.DLL_CString::Replace
mov eax, dword [edi + 0x290]
add edi, 0x290
push eax
push str._Share_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp + 0x40]
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
cmp edx, 4
mov byte [esp + 0x230], 1
jne 0x415d9d
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._Local_
call sub.MFC42.DLL_CString::Replace
jmp 0x415e67
push str._run.exe
lea ecx, [esp + 0x14]
call fcn.004550cc
mov ecx, dword [esp + 0x10]
push ecx
push str._Local_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push 0x7c
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 2
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, 0xffffffff
je 0x415e56
lea edx, [edi + 1]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
lea ecx, [esp + 0x1c]
push edi
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 3
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x18]
lea ecx, [ebp + 0x48]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x419420
Capabilities:
Read file via mapping

Disassembly:
push ebx
lea ebx, [ecx + 0x72c]
push esi
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
push str.__GLIEDOWN_MAPFILE_NAME__
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x419474
push edi
push 0x400
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x41946c
push edi
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x41be10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2d56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CString::CString_5
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_5
lea ebx, [esi + 8]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_5
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 7
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 8
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 9
call sub.MFC42.DLL_CString::CString_5
mov ecx, esi
mov byte [esp + 0x1c], 0xa
call sub.MFC42.DLL_CString::Empty
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x38]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call sub.MFC42.DLL_CString::Empty
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41d050
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b2ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x41d083
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x4d6160
lea eax, [esp + 8]
push 0x4dbca0
push eax
call sub.MFC42.DLL_operator_1
push str.RunItemFlag.ini
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
push 0
push esi
push str.RUNFLAG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
mov dword [esp + 0x10], 0xffffffff
test eax, eax
sete cl
mov esi, ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41d2d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x41d31d
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x41d30e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41d30e
push eax
push eax
push str.stopapp
push esi
push str.open
push eax
call ebx
mov eax, dword [ebp + 0xc]
add esi, 0x314
cmp esi, eax
jne 0x41d2e6
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41e4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push str.HANDCURSOR
push 0x740e
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41e54e
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
add esi, 0x80
push esi
push 0x20
push 0x20
push 0
push 6
push eax
call dword [sym.imp.USER32.dll_CreateCursor]
mov dword [edi + 0x60], eax
pop edi
pop esi
ret

Function at 0x420720
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b31f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4d6160
lea eax, [esp + 0x18]
push 0x4dbca0
mov ebp, ecx
push eax
call sub.MFC42.DLL_operator_1
push str.YAssistContract.txt
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x4d74b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x4207e4
mov edx, dword [edi + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
test esi, esi
je 0x4207e4
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [ebp + 0x64]
mov byte [esi + ebx], 0
push esi
call sub.MFC42.DLL_CString::operator_1
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4208e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4d6160
lea eax, [esp + 0x18]
push 0x4dbca0
mov ebp, ecx
push eax
call sub.MFC42.DLL_operator_1
push str.ZCOMContract.txt
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x4d74b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x4209a4
mov edx, dword [edi + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
test esi, esi
je 0x4209a4
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [ebp + 0x64]
mov byte [esi + ebx], 0
push esi
call sub.MFC42.DLL_CString::operator_1
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret