joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410984
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0x9c
mov eax, 0x46bc05
call fcn.004517f7
lea ebx, [ebp - 0xa8]
call fcn.004084ad
push str.EventSetting.ini
push eax
lea eax, [ebp - 0xa4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0xa4]
push 1
push str.bShow
push 0x479ab4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea eax, [ebp - 0x98]
push eax
push 0x20019
push ebx
push str.SOFTWAREEPSONDocument_Capture
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0x91], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi + 0xd74], ebx
cmp eax, ebx
jne 0x410ab8
lea eax, [ebp - 0xa0]
push eax
push ebx
lea eax, [ebp - 0x9c]
push eax
push ebx
push str.InstallPath
push dword [ebp - 0x98]
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410a54
cmp edi, ebx
je 0x410a54
mov dword [esi + 0xd74], 1
mov edi, 0x80
push edi
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.0044de40
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push str.Version
push dword [ebp - 0x98]
mov dword [ebp - 0xa0], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410aac
cmp word [ebp - 0x90], 0x32
jb 0x410aac
mov byte [ebp - 0x91], 1
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
cmp dword [esi + 0xd74], ebx
je 0x410aef
push 0x479b58
call fcn.004024c3
lea edi, [esi + 0x1e8]
cmp byte [ebp - 0x91], bl
je 0x410ae8
push 0x84
jmp 0x410afb
push 0x83
jmp 0x410afb
call fcn.0040279b
push ebx
lea edi, [esi + 0x1e8]
call fcn.00427678
mov ecx, dword [ebp - 0xa4]
add ecx, 0xfffffff0
call fcn.0040285d
call fcn.0045187a
ret
Function at 0x411993
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46cfbe
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x48c7d0]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x48c7d0]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push str.SoftwareEPSONEPSON_Scan
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [edi], ebx
call fcn.004024c3
lea eax, [esp + 0x28]
push eax
push 0x20019
push ebx
mov dword [esp + 0x2f4], ebx
push dword [esp + 0x2c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x411a76
mov dword [esp + 0x14], ebx
mov esi, 0x104
push esi
lea eax, [esp + 0xd0]
push ebx
push eax
mov dword [esp + 0x24], esi
call fcn.0044de40
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x411a6c
mov ecx, dword [esp + 0x24]
inc dword [edi]
lea eax, [esp + 0xcc]
push eax
call fcn.0042b052
inc dword [esp + 0x14]
cmp dword [esp + 0x1c], ebx
je 0x411a1c
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xa
lea ecx, [esp + 0x30]
call fcn.0042ada0
lea eax, [esp + 0x2c]
push ebx
push eax
mov byte [esp + 0x2f0], 1
call fcn.00406c9c
mov ecx, eax
call fcn.00406cd7
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x411b53
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.00407341
push eax
lea ecx, [esp + 0x20]
call fcn.0040283c
mov byte [esp + 0x2e8], 2
mov edi, dword [esp + 0x1c]
push edi
lea esi, [esp + 0x4c]
call fcn.00403b43
mov byte [esp + 0x2e8], 3
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00414d1e
pop ecx
lea eax, [esp + 0x4c]
mov byte [esp + 0x2e8], 5
cmp dword [esp + 0x48], eax
je 0x411b16
push dword [esp + 0x48]
call fcn.0044dba4
pop ecx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jle 0x411b2d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
call fcn.0042af5c
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [edi - 0x10]
mov byte [esp + 0x2e8], 1
call fcn.0040285d
cmp dword [esp + 0x18], ebx
jne 0x411ab5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2e8], bl
call fcn.0042aef0
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0044d1dc
mov esp, ebp
pop ebp
ret 4
Function at 0x412ae5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x4690dc
call fcn.004517f7
and dword [ebp - 0x5c], 0
mov ecx, esi
mov dword [ebp - 0x64], esi
call fcn.0040279b
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
push str.SoftwareEPSONEpsonScanManager
push SysReAllocString
mov dword [ebp - 0x5c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x412b5d
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push str.LastUSBConnectDS
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412b54
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.00402f6c
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0045187a
ret
Function at 0x414630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0xc], 4
mov dword [ebp - 4], edi
je 0x41464a
cmp dword [ebp + 0xc], 5
jne 0x414667
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call esi
cmp dword [ebp + 0xc], 5
mov ebx, eax
jne 0x414667
push edi
push edi
push edi
push edi
call esi
mov dword [ebp - 4], eax
cmp dword [0x490c48], edi
je 0x4146a5
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp + 0xc], edi
push ebx
push dword [ebp + 0x10]
call fcn.0040c95b
add esp, 0xc
push eax
push 0x40ca5d
push edi
push edi
call fcn.0044f092
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4146a8
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415047
Capabilities:
Read .ini file

Disassembly:
push 0x18
mov eax, 0x46b957
call fcn.0045178e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0x49107c
call fcn.0041d923
mov eax, dword [0x491094]
mov dword [ebp - 0x20], eax
mov eax, dword [0x49107c]
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.0041e6f4
test al, al
jne 0x41509c
lea eax, [ebp + 8]
push eax
call fcn.0041d884
xor ecx, ecx
cmp dword [eax], 1
sete cl
mov al, cl
jmp 0x41513b
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x20]
call fcn.00402773
and dword [ebp - 4], 0
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x18]
call fcn.00402773
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.DCEX.Model_04x
push eax
call fcn.0040314f
add esp, 0xc
call fcn.004083f2
push dword [eax]
lea eax, [ebp - 0x18]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040314f
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0xc
push dword [ebp - 0x18]
mov edi, str.DisablePanelJobEdit
push 0
push edi
push dword [ebp - 0x20]
call esi
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 0x11], al
lea eax, [ebp + 8]
push eax
call fcn.0041d884
push dword [ebp - 0x18]
mov ebx, eax
push 0
push edi
mov edi, dword [ebp - 0x20]
push edi
call esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebx], eax
call fcn.0040285d
lea ecx, [edi - 0x10]
call fcn.0040285d
mov al, byte [ebp - 0x11]
call fcn.00451866
ret

Function at 0x415141
Capabilities:
Read .ini file

Disassembly:
push 0x18
mov eax, 0x46b92c
call fcn.0045178e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0x49109c
call fcn.0041d923
mov eax, dword [0x4910b4]
mov dword [ebp - 0x20], eax
mov eax, dword [0x49109c]
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.0041e6f4
test al, al
jne 0x415196
lea eax, [ebp + 8]
push eax
call fcn.0041d884
xor ecx, ecx
cmp dword [eax], 1
sete cl
mov al, cl
jmp 0x415235
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402773
and dword [ebp - 4], 0
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x18]
call fcn.00402773
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.DCEX.Model_04x
push eax
call fcn.0040314f
add esp, 0xc
call fcn.004083f2
push dword [eax]
lea eax, [ebp - 0x18]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040314f
add esp, 0xc
lea eax, [ebp + 8]
push eax
call fcn.0041d884
mov edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
mov ebx, str.PasswordHashEnabled
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call esi
mov ecx, dword [ebp - 0x20]
push edi
push 0
push ebx
push dword [ebp - 0x14]
mov dword [ecx], eax
call esi
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [edi - 0x10]
inc bl
call fcn.0040285d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov al, bl
call fcn.00451866
ret
Function at 0x4152b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48c7d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4910dc]
xor eax, eax
push esi
mov dword [ebp - 0x210], eax
mov esi, 0x4910dc
cmp dword [ecx - 0xc], eax
jne 0x415301
push 1
push 0x1a
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040247a
push esi
mov ecx, edi
call fcn.0040283c
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0044d1dc
leave
ret
Function at 0x4156f7
Capabilities:
Get file version info

Disassembly:
push 0x98
mov eax, 0x46cf11
call fcn.0045178e
push dword [ebp + 8]
lea esi, [ebp - 0xa4]
xor edi, edi
call fcn.00403b43
mov dword [ebp - 4], edi
mov ecx, dword [eax]
call fcn.00415020
or dword [ebp - 4], 0xffffffff
mov bl, al
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0xa4], eax
je 0x415740
push dword [ebp - 0xa4]
call fcn.0044dba4
pop ecx
test bl, bl
je 0x41574d
xor eax, eax
inc eax
call fcn.00451866
ret
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [ebp - 0x14]
call fcn.004024c3
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x10]
call fcn.00402773
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.0040283c
lea eax, [ebp - 0x10]
push eax
call fcn.004288c5
pop ecx
pop ecx
test eax, eax
jne 0x4157aa
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
xor eax, eax
jmp 0x415747
push 0
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
ja 0x4157d9
xor edi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, edi
jmp 0x415747
push esi
call fcn.0042a554
pop ecx
push eax
push esi
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41583f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4778ac
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41583f
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0xa]
cmp ecx, 3
movzx edx, word [eax + 8]
movzx esi, word [eax + 0xe]
jle 0x415824
mov edi, ebx
jmp 0x41583f
jge 0x41582a
xor edi, edi
jmp 0x41583f
cmp edx, 7
jg 0x415820
jl 0x415826
cmp esi, 5
jg 0x415820
jl 0x415826
cmp word [eax + 0xc], bx
sbb edi, edi
inc edi
push dword [ebp - 0x18]
call fcn.0042a55f
pop ecx
jmp 0x4157bc
Function at 0x415b74
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0x4ec
mov eax, 0x46ce53
call fcn.004517f7
mov edi, ecx
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402773
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x430]
call fcn.00402773
mov byte [ebp - 4], 1
push dword [edi]
lea esi, [ebp - 0x4f8]
call fcn.00403b43
mov byte [ebp - 4], 2
mov ecx, dword [eax]
call fcn.00415020
mov byte [ebp - 0x421], al
lea eax, [ebp - 0x4f4]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4f8], eax
je 0x415bec
push dword [ebp - 0x4f8]
call fcn.0044dba4
pop ecx
lea eax, [ebp - 0x42c]
cmp byte [ebp - 0x421], bl
je 0x415ca3
push dword [edi]
push str._TEMP_DNAME___s__IP_LOCAL
push eax
call fcn.0040314f
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 0x20019
push ebx
push 0x47a2e4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415d1a
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.BaseModulePath
push dword [ebp - 0x428]
mov dword [ebp - 0x434], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415c95
push 0xffffffffffffffff
push str.Corees2utility.exe
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.00450f71
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x430]
call fcn.0040247a
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415d1a
push dword [edi]
push str._T:__s__L
push eax
call fcn.0040314f
add esp, 0xc
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [ebp - 0x428]
call fcn.004024c3
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x428]
mov dword [ebp - 0x438], esp
mov ecx, esp
push eax
call fcn.0040283c
lea eax, [ebp - 0x430]
push eax
call fcn.004288c5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
cmp eax, ebx
jne 0x415d15
call fcn.0040285d
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
jmp 0x415d8a
call fcn.0040285d
push 0x38
lea eax, [ebp - 0x470]
push ebx
push eax
call fcn.0044de40
mov esi, dword [ebp - 0x430]
mov edi, dword [ebp - 0x42c]
add esp, 0xc
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x474], 0x3c
mov dword [ebp - 0x470], 0x40
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0040285d
lea ecx, [edi - 0x10]
call fcn.0040285d
call fcn.0045187a
ret
Function at 0x416361
Capabilities:
Read .ini file

Disassembly:
push 0x2c
mov eax, 0x46a5ba
call fcn.0045178e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
call fcn.0040279b
xor esi, esi
mov dword [ebp - 4], ebx
inc esi
mov dword [ebp - 0x1c], esi
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402773
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._04x
push eax
mov dword [ebp - 4], esi
call fcn.0040314f
add esp, 0xc
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x10]
call fcn.00402773
mov byte [ebp - 4], 2
lea edi, [ebp + 0x10]
cmp dword [ebp + 0x10], ebx
je 0x4163e4
call fcn.004152b5
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x10]
push 0x47a6e8
push eax
call fcn.0040314f
add esp, 0x10
jmp 0x416400
call fcn.004152b5
mov byte [ebp - 4], 4
push dword [eax]
lea eax, [ebp - 0x10]
push str._sEpsonDocument_CaptureAppInfo1_
push eax
call fcn.0040314f
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [ebp - 0x38]
call fcn.0042be99
push 0x47a788
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.004017f8
add esp, 0xc
push ebx
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.0042bf31
cmp eax, ebx
je 0x4164e7
call fcn.0042a8d7
push eax
lea ecx, [ebp + 0x10]
call fcn.00402773
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.0042bb7b
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0042c130
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
call fcn.0040270e
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040285d
mov esi, dword [ebp + 0x10]
push esi
push ebx
push str.ProjectID
push str.Launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [ebp + 0x14]
je 0x4164d3
lea ecx, [ebp - 0x38]
call fcn.0042be5a
test eax, eax
jne 0x4164bd
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
call fcn.0040285d
cmp edi, ebx
jne 0x416448
jmp 0x4164e7
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.0040270e
lea ecx, [esi - 0x10]
call fcn.0040285d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0042bec2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, dword [ebp + 8]
call fcn.00451866
ret
Function at 0x41656f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x814
mov eax, 0x46986c
call fcn.004517f7
xor edi, edi
push 0x800
lea eax, [ebp - 0x810]
push edi
push eax
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x814], edi
call fcn.0044de40
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push 0x20019
push edi
push str.SOFTWAREEPSONDocument_Capture
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416605
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
push edi
push str.InstallFolder
push dword [ebp - 0x818]
mov dword [ebp - 0x81c], 0x800
mov dword [ebp - 0x814], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.0040279b
lea eax, [ebp - 0x810]
mov dword [ebp - 4], edi
push eax
mov ecx, ebx
mov dword [ebp - 0x814], 1
call fcn.00403c3c
push str.JobRunner.exe
push ebx
call fcn.0041cf2d
mov eax, ebx
call fcn.0045187a
ret
Function at 0x417006
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x469822
call fcn.004517f7
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x224], esi
call fcn.0040279b
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push 0x47a2e4
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4170b8
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push str.BaseModulePath
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4170ac
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0040247a
push str.Corees2launcher.exe
push edi
call fcn.0041cf2d
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0045187a
ret

Function at 0x4170c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x469822
call fcn.004517f7
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x224], esi
call fcn.0040279b
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push str.SOFTWAREEPSONFastFoto
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x417167
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push str.InstallPath
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41715b
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0040247a
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0045187a
ret
Function at 0x417196
Capabilities:
Read .ini file

Disassembly:
push 0x38
mov eax, 0x46d95d
call fcn.0045178e
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.0040283c
call fcn.00416a12
add esp, 0xc
push dword [ebp - 0x18]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Model
call fcn.004024c3
lea edi, [ebp - 0x14]
call fcn.00429b27
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov byte [ebp - 0xd], 0
mov ebx, str.DCUSupport
jle 0x4172b0
lea edi, [ebp - 0x20]
call fcn.004082ab
push str.Push_Scan_Plugin_
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00406973
add esp, 0xc
push str..ini
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push str.DCEX.
push eax
call fcn.004069c6
mov eax, dword [eax]
add esp, 0xc
push dword [ebp - 0x18]
push 0
push ebx
push eax
call esi
mov ecx, dword [ebp - 0x20]
test eax, eax
seta byte [ebp - 0xd]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040285d
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402773
mov byte [ebp - 4], 8
call fcn.004083f2
push dword [eax]
lea eax, [ebp - 0x1c]
push str._sAssistantsScan_AssistantScannerDevCap.ini
push eax
call fcn.0040314f
pop ecx
pop ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.0040283c
call fcn.0041ca11
pop ecx
test eax, eax
jne 0x41730a
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.0040283c
call fcn.0041c9c1
pop ecx
test eax, eax
je 0x417338
push 0xa
lea ecx, [ebp - 0x40]
call fcn.0042ada0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.0042af5c
lea ecx, [ebp - 0x40]
call fcn.0041c1f9
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.0042aef0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push str.DCEX.
push eax
call fcn.004069c6
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax]
add esp, 0xc
push edi
push 0
push ebx
push eax
call esi
mov ecx, dword [ebp - 0x24]
test eax, eax
seta al
or byte [ebp - 0xd], al
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [edi - 0x10]
call fcn.0040285d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285d
mov al, byte [ebp - 0xd]
call fcn.00451866
ret