joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d130
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a42c3
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 fcn.00496d42
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049c3e0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049d93f
test eax, eax
je 0x46d24c
mov ecx, dword [esp + 0x3c]
call fcn.0049c40d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46d210
push edi
mov ecx, esi
call fcn.00499a70
mov ecx, esi
call fcn.0046d3b0
cmp dword [esp + 0x38], 1
jne 0x46d245
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00499bab
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x46fc60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46fc93
push esi
call fcn.00472d70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46fc8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46fd19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46fd02
mov eax, dword [esi + 8]
test eax, eax
je 0x46fcb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46fcfe
cmp eax, 2
je 0x46fd02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46fcaa
cmp eax, 3
je 0x46fcdd
cmp eax, 1
jne 0x46fcaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46fcaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46fcaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046fd40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46fd28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046fd40
add esp, 4
pop esi
ret

Function at 0x47bd90
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47be33
test eax, eax
jbe 0x47be33
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47be33
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47bdde
xor esi, esi
jmp 0x47bde4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47be0f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004800c0
add esi, eax
push esi
mov ebx, esi
call fcn.004800c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47bdf0
pop ebp
test edi, edi
pop edi
jne 0x47be33
test ebx, ebx
je 0x47be33
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00485690
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47bf75
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47c08d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47c08d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00497194
mov esi, eax
test esi, esi
je 0x47c08d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47c08d
mov ecx, esi
call fcn.0047bee0
cmp edi, eax
jge 0x47c08d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47c013
mov dword [esp + 0x34], 1
jmp 0x47c06e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47c08d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047b470
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4806f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x480756
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x480756
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x480737
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x480ae0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x480b18
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x481840
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x481889
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x481d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4c40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004818b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00481930
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00481930
lea ecx, [esi + 0xc]
call fcn.004956f4
lea ecx, [esi + 0x10]
call fcn.004956f4
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00482ec0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00482ec0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00482ec0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00495769
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00495769
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x497b37
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497b6f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00495bc4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495b9c
jmp 0x497b7b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49922d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49926f
call fcn.0049efe5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49926f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499266
xor eax, eax
jmp 0x499277
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049927d
pop edi
pop esi
pop ebx
ret 4

Function at 0x49f515
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49f543
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49f561
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f47b
jmp 0x49f561
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49f561
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f47b
test edi, edi
mov eax, edi
jne 0x49f54b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40bc00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x14c]
test ecx, ecx
je 0x40bce8
mov esi, dword [ecx + 8]
test esi, esi
je 0x40bce8
mov eax, dword [ecx]
lea edx, [esp + 0x138]
push edx
call dword [eax + 0x24]
push 0
lea eax, [esp + 0x13c]
push 1
push eax
push esi
mov ecx, edi
call fcn.004137e0
test eax, eax
jne 0x40bcc2
mov ebp, dword [esi + 0x28]
test ebp, ebp
je 0x40bce8
push ebx
push 0x105
call fcn.004bd49b
add esp, 4
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.USER32.dll_OemToCharA]
mov ecx, dword [edi + 0x144]
push ebx
push 0x20b
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00472a10
push ebx
call fcn.004bd4c4
mov eax, dword [str.ACDSee]
mov edx, dword [edi + 0xcc]
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
push 0
push 1
push 0
push esi
mov ecx, edi
call fcn.004137e0
test eax, eax
jne 0x40bcc2
mov esi, dword [esi + 8]
test esi, esi
jne 0x40bca7
jmp 0x40bcc6
test esi, esi
jne 0x40bce8
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
lea ecx, [esp + 0x14]
push 1
push ecx
mov ecx, edi
call fcn.00413710
pop edi
pop esi
pop ebp
add esp, 0x234
ret
Function at 0x4125e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x178
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov esi, ecx
push 2
push 0xffffffffffffffff
push 0x100c
mov eax, dword [esi + 0xd8]
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x412753
mov edx, dword [esi + 0xd8]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x1005
push edx
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 0
call ebx
test eax, eax
je 0x412746
push edi
lea ecx, [esi + 0x2690]
call fcn.004298e0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x80]
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41273a
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + eax + 0x81], 0
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xd8]
mov edi, 3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x190]
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], edi
test eax, eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x20], 4
je 0x4126c4
mov word [esp + 0x20], 0x44
mov eax, dword [esp + 0x18c]
test eax, eax
jne 0x4126d4
or byte [esp + 0x20], 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41273a
mov ecx, dword [esi + 0xd8]
push 0
push ebp
push 0x1008
push ecx
call ebx
mov edx, dword [esi + 0xd8]
push 0
push 0
push 0x1004
push edx
call ebx
cmp ebp, eax
jne 0x41271a
dec ebp
mov ecx, dword [esi + 0xd8]
lea eax, [esp + 0x58]
push eax
push ebp
push 0x102b
push ecx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], edi
call ebx
lea ecx, [esi + 0x2690]
call fcn.00429940
pop edi
mov edx, dword [esi + 0xd8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 8

Function at 0x412c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
mov esi, ecx
push eax
lea ecx, [esi + 0x27d4]
call fcn.0044f1c0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412c60
lea edx, [esp + 4]
push 0
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0
lea ecx, [esp + 0xc]
push 1
push ecx
mov ecx, esi
call fcn.00413710
test eax, eax
je 0x412c92
mov edx, dword [esi + 0xd0]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
pop esi
add esp, 0x104
ret 8
mov eax, dword [str.ACDSee]
mov ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x144]
push 0
push eax
push 0x211
push ecx
push edx
call fcn.00471450
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x104
ret 8
Function at 0x4238b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x10
lea eax, [esp + 0x18]
push 0x423ac0
push eax
mov dword [esp + 0x20], ebp
call sub.USER32.dll_DdeInitializeA
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x423aad
mov ecx, dword [esp + 0x10]
push 0x3ec
push str.ACDSee
push ecx
call sub.USER32.dll_DdeCreateStringHandleA
mov edx, dword [esp + 0x10]
push 0x3ec
mov esi, eax
push str.System
push edx
mov dword [esp + 0x28], esi
call sub.USER32.dll_DdeCreateStringHandleA
mov edi, eax
mov eax, dword [esp + 0x10]
push ebp
push edi
push esi
push eax
mov dword [esp + 0x28], edi
call sub.USER32.dll_DdeConnect
mov ebx, eax
cmp ebx, ebp
jne 0x423994
mov ecx, dword [esp + 0x10]
push ecx
call sub.USER32.dll_DdeGetLastError
cmp eax, 0x400a
jne 0x423a89
mov edx, dword [esp + 0x74]
push 0xa
push 0x4f55a8
push str._dde
push edx
push ebp
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x423aad
test ebx, ebx
jne 0x423994
mov eax, dword [esp + 0x10]
push ebx
push edi
push esi
push eax
call sub.USER32.dll_DdeConnect
mov ebx, eax
test ebx, ebx
jne 0x42397e
mov ecx, dword [esp + 0x10]
push ecx
call sub.USER32.dll_DdeGetLastError
mov dword [esp + 0x14], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x14
jl 0x423959
test ebx, ebx
je 0x423a89
mov al, byte [0x4edc84]
mov edx, dword [str.open]
mov byte [esp + 0x24], al
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x25]
mov dword [esp + 0x20], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
je 0x4239da
test eax, eax
mov eax, str._add
jne 0x4239ce
mov eax, str._noadd
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
je 0x423a00
test eax, eax
mov eax, str._viewall
jne 0x4239f4
mov eax, str._noviewall
lea edx, [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [esp + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call edi
mov esi, eax
lea eax, [esp + 0x20]
push eax
call edi
lea ecx, [esi + eax + 5]
push ecx
call fcn.004bd49b
add esp, 4
lea edx, [esp + 0x20]
mov esi, eax
push edx
push 0x4ee354
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebp
push 0x4ee350
push esi
call ebp
push 0
push 0xffffffffffffffff
push 0x4050
push 0
push 0
push ebx
push esi
call edi
inc eax
push eax
push esi
call sub.USER32.dll_DdeClientTransaction
mov eax, dword [esp + 0x10]
push eax
call sub.USER32.dll_DdeGetLastError
push esi
mov dword [esp + 0x18], eax
call fcn.004bd4c4
add esp, 4
push ebx
call sub.USER32.dll_DdeDisconnect
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call sub.USER32.dll_DdeFreeStringHandle
mov edx, dword [esp + 0x10]
push edi
push edx
call sub.USER32.dll_DdeFreeStringHandle
mov eax, dword [esp + 0x10]
push eax
call sub.USER32.dll_DdeUninitialize
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x43f620
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ax, word [0x4eeb4c]
mov cl, byte [0x4eeb4e]
push esi
push edi
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xb]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push edx
push 0
push 0
push 0x1a
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
mov esi, dword [esp + 0x110]
test eax, eax
jne 0x43f6ad
mov eax, dword [str.ACDSee]
mov ecx, dword [str.ACD_Systems]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push str._s_s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
push esi
call fcn.004718c0
add esp, 0x1c
test eax, eax
je 0x43f6ad
push str.ImageDB.ddf
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
add esp, 0x104
ret 4
mov eax, dword [0x4f5e08]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00471a00
add esp, 4
test eax, eax
je 0x43f6d5
push str.ImageDB.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
add esp, 0x104
ret 4
Function at 0x442d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x30c
push ebx
push esi
push edi
mov edi, dword [esp + 0x31c]
mov ebx, ecx
mov esi, dword [edi + 0x34]
test esi, esi
je 0x442d8e
cmp byte [esi], 0
jne 0x442d94
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x28]
cmp byte [esi + 1], 0x3a
jne 0x442dc2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jne 0x442dc2
movsx ecx, byte [esi]
push ecx
lea edx, [esp + 0x114]
push str.__c_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x442dfc
cmp byte [esi], 0x5c
jne 0x442de9
cmp byte [esi + 1], 0x5c
jne 0x442de9
add esi, 2
lea eax, [esp + 0x110]
push esi
push 0x4ee470
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x442dfc
lea ecx, [esp + 0x110]
push 0x104
push ecx
push esi
call sub.comdlg32.dll_GetFileTitleA
lea edx, [esp + 0x214]
push 0
push edx
mov ecx, edi
call fcn.004257f0
mov ecx, dword [esp + 0x320]
lea eax, [esp + 0x110]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00471100
lea eax, [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
push 0x4eee04
push ecx
call fcn.004711b0
add esp, 0x18
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x442e76
mov eax, dword [0x4f83ec]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0xc]
mov al, byte [edx + 0x520]
lea edx, [esp + 0xc]
push eax
push ecx
push edx
call fcn.004728a0
add esp, 0xc
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0x218]
push eax
push ecx
call fcn.00474970
add esp, 0xc
test eax, eax
jge 0x442ebd
mov edx, dword [ebx + 8]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [str.ACDSee]
mov ecx, dword [ebx + 8]
push eax
push ecx
call fcn.00471600
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30c
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret 8
Function at 0x45d460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.TWAIN_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 8], eax
jne 0x45d485
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareACD_SystemsACDSee
push DrawStatusTextA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45d4db
lea ecx, [esp + 0x14]
lea edx, [esi + 0x258]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.AcquireOptions
push ecx
mov dword [esp + 0x2c], 0x74
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x45d50b
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 8], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x14
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
push 0x2e
push ebp
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 0x2cc], ecx
call fcn.004a8857
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45d538
inc ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esi + 0x1c]
push ebp
push edx
call edi
push ebp
call fcn.004a95fb
xor ebp, ebp
add esp, 4
cmp ebx, ebp
mov word [esi + 0x14], ax
je 0x45d563
push ebx
call fcn.004a95fb
add esp, 4
jmp 0x45d565
xor eax, eax
mov word [esi + 0x16], ax
lea eax, [esi + 0x46]
push str.ACD_Systems__Ltd.
push eax
mov word [esi + 0x18], 0xd
mov word [esi + 0x1a], 2
mov word [esi + 0x3e], 1
mov word [esi + 0x40], 8
mov dword [esi + 0x42], 3
call edi
lea ecx, [esi + 0x68]
push str.Imaging
push ecx
call edi
mov edx, dword [esp + 0x2c]
lea eax, [esi + 0x8a]
push edx
push eax
call edi
lea ebx, [esi + 4]
lea edi, [esi + 0x10]
push ebx
push 0x301
push 4
push 1
push ebp
push edi
call dword [esi + 0xc]
test ax, ax
je 0x45d642
cmp dword [esi + 0x148], ebp
je 0x45d5f2
lea ecx, [esp + 0x18]
lea edx, [esi + 0xac]
push ecx
push 0x501
push 9
push 1
push edx
push edi
call dword [esi + 0xc]
test ax, ax
jne 0x45d5f2
mov dword [esi + 0x148], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x45d607
push ebx
push 0x302
push 4
push 1
push ebp
push edi
call eax
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x45d615
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x2d0]
mov dword [esi + 8], ebp
push eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x148], ebp
call fcn.004bd4c4
add esp, 4
mov dword [esi + 0x2d0], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x14