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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x410], 0
jb 0x4b2869
mov eax, dword [esi]
jmp 0x4b286b
mov eax, esi
push 0x4d3018
push eax
call fcn.004b629c
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b28a7
push esi
mov esi, dword [ebp - 0x40c]
push str.Failed_to_open_target:
push esi
call fcn.004b0e00
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5580
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4b28af
mov edi, dword [edi]
push 0x4d3034
push edi
call fcn.004b9ac4
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b28d6
push ebx
call fcn.004b6a9c
add esp, 4
push str.Failed_to_open_source
jmp 0x4b296a
push edi
call fcn.004b98fe
add esp, 4
test eax, eax
jne 0x4b2956
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004b6984
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b2913
push ebx
push esi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004b6de2
add esp, 0x10
push edi
call fcn.004b98fe
add esp, 4
test eax, eax
je 0x4b2949
test esi, esi
je 0x4b2949
cmp byte [ebp + esi - 0x405], 0xa
je 0x4b2949
push ebx
push 1
lea eax, [ebp - 0x405]
mov byte [ebp - 0x405], 0xa
push 1
push eax
call fcn.004b6de2
add esp, 0x10
push edi
call fcn.004b98fe
add esp, 4
test eax, eax
je 0x4b28e3
push ebx
call fcn.004b6a9c
push edi
call fcn.004b6a9c
add esp, 8
push 0x50e4f8
mov ecx, dword [ebp - 0x40c]
call fcn.004a0551
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004b5580
mov esp, ebp
pop ebp
ret
Function at 0x4b2990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
jne 0x4b29ce
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xc
push str.Empty_string
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.004a083c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 0x10
jb 0x4b29dc
mov eax, dword [edi]
jmp 0x4b29de
mov eax, edi
push ebx
push 0x4d3018
push eax
call fcn.004b629c
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b2a0e
mov esi, dword [ebp + 8]
push edi
push str.Failed_to_open_target:
push esi
call fcn.004b0e00
add esp, 0xc
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
jb 0x4b2a18
mov eax, dword [esi]
jmp 0x4b2a1a
mov eax, esi
push ebx
push dword [esi + 0x10]
push 1
push eax
call fcn.004b6de2
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x4b2a34
mov esi, dword [esi]
cmp byte [esi + eax - 1], 0xa
je 0x4b2a50
push ebx
push 1
lea eax, [ebp + 0x13]
mov byte [ebp + 0x13], 0xa
push 1
push eax
call fcn.004b6de2
add esp, 0x10
push ebx
call fcn.004b6a9c
mov ecx, dword [ebp + 8]
add esp, 4
push 0x50e4f8
call fcn.004a0551
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c7530
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004ba556
mov dword [ebp - 0x14], eax
cmp dword [0x523484], esi
jne 0x4c7623
push 0x800
push esi
push 0x4d8774
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c75b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c7703
push esi
push esi
push 0x4d8774
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c7703
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c7703
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x523484], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x523488], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4d87bc
push edi
mov dword [0x52348c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x523494], eax
test eax, eax
je 0x4c7620
push 0x4d87d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x523490], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c7648
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c763b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c765d
push 4
pop eax
jmp 0x4c7705
cmp dword [ebp - 0x14], esi
je 0x4c765d
push dword [0x523484]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c7642
mov eax, dword [0x523490]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c76bb
cmp dword [0x523494], edi
je 0x4c76bb
push eax
call ebx
push dword [0x523494]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c76bb
test eax, eax
je 0x4c76bb
call ecx
test eax, eax
je 0x4c76b0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4c76b0
test byte [ebp - 8], 1
jne 0x4c76bb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c76eb
mov eax, dword [0x523488]
cmp eax, edi
je 0x4c76e8
push eax
call ebx
test eax, eax
je 0x4c76e8
call eax
mov esi, eax
test esi, esi
je 0x4c76e8
mov eax, dword [0x52348c]
cmp eax, edi
je 0x4c76e8
push eax
call ebx
test eax, eax
je 0x4c76e8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x523484]
call ebx
test eax, eax
je 0x4c7703
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c7705
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5580
mov esp, ebp
pop ebp
ret
Function at 0x40ee20
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7bcd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CView::CView
xor edi, edi
lea ecx, [esi + 0x44]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CSplitterWnd::CSplitterWnd
push edi
push edi
push 0x46293e59
lea ebp, [esi + 0x140]
push 0x39a08cea
push 0x46293e59
push 0x39a08cea
mov ecx, ebp
mov byte [esp + 0x30], 1
call fcn.004d5c00
push edi
push edi
push 0xc6293e59
push 0x39a08cea
push 0xc6293e59
push 0x39a08cea
lea ecx, [ebp + 0x18]
call fcn.004d5c00
mov dword [esi + 0x130], 0x5085fc
mov dword [esi + 0x13c], edi
mov dword [esi + 0x138], edi
lea ecx, [esi + 0x180]
mov byte [esp + 0x18], 2
call fcn.004d5be0
lea ecx, [esi + 0x198]
call fcn.004d5be0
lea ecx, [esi + 0x230]
call fcn.0043e010
lea ecx, [esi + 0x270]
mov byte [esp + 0x18], 3
call fcn.004d5be0
lea ecx, [esi + 0x288]
call fcn.004d5be0
lea ebp, [esi + 0x2b0]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x210], eax
mov dword [esi + 0x208], eax
mov dword [esi + 0x214], ecx
mov dword [esi + 0x20c], ecx
mov ecx, ebp
mov byte [esp + 0x18], 4
mov dword [esi], 0x508b08
mov dword [esi + 0x1d4], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1e8], edi
mov dword [esi + 0x1ec], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x178], 0x64
mov dword [esi + 0x220], 1
mov dword [esi + 0x224], edi
mov dword [esi + 0x2a8], 1
mov dword [esi + 0x2ac], edi
mov dword [esi + 0x1dc], edi
call sub.MFC42.DLL_CString::Empty
mov dword [esi + 0x110], edi
mov dword [esi + 0x2bc], edi
mov dword [esi + 0x2c0], edi
mov dword [esi + 0x2c4], edi
mov dword [esi + 0x2dc], edi
mov dword [esi + 0x1e0], edi
mov dword [esi + 0x1e4], edi
mov dword [esi + 0x2d8], 0xffffffff
mov dword [esi + 0x114], edi
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x118], edi
mov dword [esi + 0x2e4], eax
mov dword [esi + 0x2ec], eax
mov dword [esi + 0x11c], edi
mov dword [esi + 0x2e0], edi
mov dword [esi + 0x2e8], ecx
mov dword [esi + 0x2f0], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2f4], edi
mov dword [0x5323d4], edi
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x41ea00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f92b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x2b4]
lea ecx, [esp + 8]
push eax
push 0x52a50c
push ecx
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::Format_1
fild dword [esi + 0x2e4]
add esp, 4
lea edx, [esp + 0xc]
sub esp, 8
fmul qword [0x508618]
fsub qword [esi + 0x118]
fstp qword [esp + 8]
fild dword [esi + 0x2e8]
fmul qword [0x508618]
fsub qword [esi + 0x110]
fadd st(0), st(0)
fstp qword [esp]
push str.G00_X_.2f_Z_.2f_r_n
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [0x5323e0]
add esp, 0x18
test eax, eax
je 0x41eb9e
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0x2b4]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x2c], 2
call fcn.00413500
add esp, 8
test eax, eax
je 0x41eb3c
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator
push 0x52a244
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 4]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 5
call fcn.004f6400
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x24], 2
lea ecx, [esp + 0x18]
jmp 0x41eb8b
lea eax, [esp + 8]
push 0x52a244
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [esp + 4]
mov byte [esp + 0x24], 6
push edx
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 7
call fcn.004f6400
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x24], 2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x5323dc]
push 1
push 0
add ecx, 0xc8
call sub.MFC42.DLL_CSplitterWnd::GetPane
mov esi, eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
push eax
push eax
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::SetSel
mov edx, dword [esp + 4]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x421510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f9528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [0x53a940]
lea eax, [esp + 0x18]
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x55555556
shl edx, 1
mov dword [esp + 0x14], edx
imul ecx
mov ecx, edx
mov dword [esp + 8], 0
shr ecx, 0x1f
add edx, ecx
lea ecx, [esp + 4]
shl edx, 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
call sub.MFC42.DLL_CString::CString_3
push 0x83
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [0x53a940]
mov ecx, dword [esp + 4]
push 0
lea eax, [esp + 0xc]
push edx
push eax
push 0x50cd0000
push ecx
push 0
mov ecx, esi
call sub.MFC42.DLL_CMDIChildWnd::Create
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x421528
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f9528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [0x53a940]
lea eax, [esp + 0x18]
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x55555556
shl edx, 1
mov dword [esp + 0x14], edx
imul ecx
mov ecx, edx
mov dword [esp + 8], 0
shr ecx, 0x1f
add edx, ecx
lea ecx, [esp + 4]
shl edx, 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
call sub.MFC42.DLL_CString::CString_3
push 0x83
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [0x53a940]
mov ecx, dword [esp + 4]
push 0
lea eax, [esp + 0xc]
push edx
push eax
push 0x50cd0000
push ecx
push 0
mov ecx, esi
call sub.MFC42.DLL_CMDIChildWnd::Create
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x424b20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f9708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 8]
mov ecx, 0x53a920
push eax
mov dword [esp + 0x18], 0
call fcn.004d39c0
push 0x52a5b4
lea ecx, [esp + 0xc]
call fcn.004f668e
push str.vcncprot.dat
lea ecx, [esp + 0xc]
call fcn.004f668e
mov ecx, dword [esp + 8]
push 0x52a5a0
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x424bb8
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 8
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x1c]
push esi
push 1
push 0x18
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [edi]
add esp, 0x14
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x426dd0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push edi
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x426df9
mov ecx, dword [esp + 0xc]
push 0x9d1c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
pop edi
ret 8
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x426e3e
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
push str._u._u._u._u
push ebx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [edi + 0xc]
add esi, 4
add esp, 0x18
mov eax, dword [esi + eax]
test eax, eax
jne 0x426e0a
pop esi
pop ebx
pop edi
ret 8

Function at 0x427130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f9ace
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [edi + 8]
sub esp, 0x10
mov esi, esp
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], esp
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
call fcn.004f6568
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
push ecx
lea ecx, [esi + 4]
call fcn.004f6568
lea edx, [esp + 0x38]
lea ecx, [esi + 8]
push edx
mov byte [esp + 0x2c], 2
call fcn.004f6568
lea eax, [esp + 0x3c]
lea ecx, [esi + 0xc]
push eax
mov byte [esp + 0x2c], 3
call fcn.004f6568
push ebp
mov ecx, edi
mov byte [esp + 0x2c], 0
call fcn.004274b0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x10
ret 0x10
Function at 0x4296e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
lea eax, [esp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edx, dword [esi + 0x20]
lea edi, [esi + 0x28]
lea eax, [esp + 8]
push edi
push eax
lea ecx, [esp + 0x28]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x429756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x429756
mov eax, dword [esi + 0x38]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x429756
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x30]
add ecx, eax
mov dword [esi + 0x30], ecx
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret 4
Function at 0x42e0c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fa728
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
jne 0x42e108
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov eax, dword [eax + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_ClearCommError]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call edi
test byte [esp + 0x10], 8
je 0x42e133
mov ecx, dword [esi]
push 2
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
push ebx
mov edx, dword [ecx - 8]
lea ebx, [eax + 0x64]
mov eax, dword [eax + 0x60]
push ebx
lea ebx, [esp + 0x10]
push ebx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebx
jne 0x42e1b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42e191
mov eax, dword [esi]
lea ecx, [esp + 8]
push 1
push ecx
lea edx, [eax + 0x64]
mov eax, dword [eax + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x42e1b7
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
mov ecx, dword [eax + 0x60]
push edx
push ecx
call edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x42e1e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
jne 0x42e1f5
pop edi
pop esi
add esp, 0xc
ret 8
mov edi, dword [esp + 0x1c]
lea ecx, [eax + 0x78]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [eax + 0x60]
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42e26b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42e261
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push 1
push ecx
lea edx, [eax + 0x78]
mov eax, dword [eax + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x42e24b
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 8
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
mov ecx, dword [eax + 0x60]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, edi
pop edi
sete al
pop esi
add esp, 0xc
ret 8
Function at 0x430a50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_CWnd::GetWindowTextLengthA
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0xb1
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push ecx
call edi
mov ebp, dword [esp + 0x28]
push 0xd
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
push ebp
jne 0x430aaf
lea eax, [esp + 0x14]
push str._s_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [esi + 0x20]
push 0
push 0xc2
push edx
call edi
lea eax, [ebx + 1]
push eax
push eax
mov eax, dword [esi + 0x20]
push 0xb1
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4