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

Disassembly:
push 0x60
mov eax, 0x566e9e
call fcn.0053da79
lea ecx, [ebp - 0x6c]
call fcn.0043a735
and dword [ebp - 4], 0
call fcn.00438647
push eax
lea ecx, [ebp - 0x4c]
call fcn.0042a80d
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0041262f
push str.Epson_SoftwareCommonEventInfo.plg
mov eax, esi
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.0040193e
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.0040248f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00402722
mov edi, dword [ebp - 0x4c]
push 0
push edi
lea ecx, [ebp - 0x6c]
call fcn.0043a7dc
test eax, eax
jne 0x41af43
lea ecx, [ebp - 0x6c]
call fcn.0043a2a1
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [edi - 0x10]
call fcn.00402722
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0043a767
mov eax, esi
call fcn.0053dafc
ret
call fcn.00438647
push eax
lea ecx, [ebp - 0x48]
call fcn.0042a80d
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.0043a387
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0043aa1f
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.0040248f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.00402722
push 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040f0c6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.004158c8
push 0x59c588
lea ecx, [ebp - 0x40]
call fcn.00410e1f
test eax, eax
je 0x41afc9
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00402722
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
jmp 0x41b03d
mov esi, dword [ebp - 0x48]
push esi
push 0xa
lea eax, [ebp - 0x38]
push eax
push 0x5990a0
push str.EventID
push str.Event
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040235d
push 0x59c5b0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00410e1f
test eax, eax
je 0x41b04f
lea ecx, [ebp - 0x6c]
call fcn.0043a6f7
test eax, eax
jne 0x41b020
mov eax, dword [ebp - 0x6c]
push 0x10
lea ecx, [ebp - 0x6c]
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.00402722
test ebx, ebx
jne 0x41af43
jmp 0x41af1a
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [esi - 0x10]
call fcn.00402722
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [edi - 0x10]
call fcn.00402722
xor esi, esi
inc esi
jmp 0x41af2f
Function at 0x41bd73
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x563fda
call fcn.0053da79
and dword [ebp - 4], 0
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], edi
call fcn.00438647
push eax
mov ecx, edi
call fcn.0042a80d
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
push str.SoftwareEPSONFastFoto
push SysReAllocString
mov dword [ebp - 0x5c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41bdf5
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push str.LastConnectDS
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41bdec
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.004026ae
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0053dafc
ret

Function at 0x41bdfd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x563fda
call fcn.0053da79
and dword [ebp - 4], 0
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], edi
call fcn.00438647
push eax
mov ecx, edi
call fcn.0042a80d
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 0x41be7f
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push str.LastConnectDS
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41be76
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.004026ae
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0053dafc
ret
Function at 0x41be87
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x70
mov eax, 0x566c2f
call fcn.0053da10
xor esi, esi
push str.ScanButtonConfig.exe
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0040f17a
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00412720
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004018e7
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402722
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push str.___DSName:
push eax
call fcn.0040f116
push 0x59a2b0
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.0040193e
mov ecx, dword [ebp - 0x20]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00402722
xor eax, eax
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00539100
push dword [ebp - 0x18]
mov dword [ebp - 0x7c], 0x44
call fcn.0053c701
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41bf58
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push edi
call fcn.0053855f
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402722
call fcn.0053dae8
ret
Function at 0x41c6c9
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0x9c
mov eax, 0x566b66
call fcn.0053da79
mov esi, ecx
lea ecx, [ebp - 0xa8]
call fcn.004127e0
push str.EventSetting.ini
push eax
lea eax, [ebp - 0xa4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040193e
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
call fcn.00402722
push dword [ebp - 0xa4]
push 1
push str.bShow
push 0x59c8dc
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 + 0xd7c], ebx
cmp eax, ebx
jne 0x41c7ff
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 0x41c79b
cmp edi, ebx
je 0x41c79b
mov dword [esi + 0xd7c], 1
mov edi, 0x80
push edi
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00539100
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 0x41c7f3
cmp word [ebp - 0x90], 0x32
jb 0x41c7f3
mov byte [ebp - 0x91], 1
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [ebp - 0x9c], esp
cmp dword [esi + 0xd7c], ebx
je 0x41c836
mov ecx, esp
push 0x59c980
call fcn.0040235d
add esi, 0x1f0
cmp byte [ebp - 0x91], bl
je 0x41c82f
push 0x84
jmp 0x41c84c
push 0x83
jmp 0x41c84c
mov edi, esp
call fcn.00438647
push eax
mov ecx, edi
call fcn.0042a80d
push ebx
add esi, 0x1f0
push esi
call fcn.004354d2
mov ecx, dword [ebp - 0xa4]
add ecx, 0xfffffff0
call fcn.00402722
call fcn.0053dafc
ret
Function at 0x41d651
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56acd9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esi + 0xdc8]
xor edi, edi
cmp eax, edi
je 0x41d6a3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xdc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xdc8], edi
push 0xa
lea ecx, [esp + 0x24]
call fcn.00439570
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call fcn.004127e0
push 0x59a698
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x54], 1
call fcn.0040193e
add esp, 0xc
mov byte [esp + 0x48], 3
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402722
call fcn.0040f5b9
push eax
call fcn.0040f1be
test eax, eax
je 0x41d73c
lea ebx, [esi + 0xdcc]
mov ecx, ebx
call fcn.00439658
push ebx
lea ecx, [esp + 0x1c]
call fcn.0041d768
mov ecx, ebx
call fcn.00429281
call fcn.0041dc90
cmp dword [esi + 0xdc8], edi
jne 0x41d73c
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push 0x41df07
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xdc8], eax
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00402722
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0043969e
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d768
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x2c8
mov eax, 0x568c3d
call fcn.0053da79
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push str.SoftwareEPSONEPSON_Scan
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2b0], eax
mov dword [edi], ebx
call fcn.0040235d
lea eax, [ebp - 0x2b4]
push eax
push 0x20019
push ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x2a8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41d82d
mov dword [ebp - 0x2a4], ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
mov dword [ebp - 0x2b8], esi
call fcn.00539100
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2a4]
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x2ac], eax
cmp eax, ebx
jne 0x41d81f
mov ecx, dword [ebp - 0x2b0]
inc dword [edi]
lea eax, [ebp - 0x218]
push eax
call fcn.004398fc
inc dword [ebp - 0x2a4]
cmp dword [ebp - 0x2ac], ebx
je 0x41d7c6
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xa
lea ecx, [ebp - 0x2d4]
call fcn.00439570
lea eax, [ebp - 0x2d4]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0040f5b9
mov ecx, eax
call fcn.0040f61d
mov esi, dword [ebp - 0x2d0]
jmp 0x41d916
mov eax, esi
cmp esi, ebx
je 0x41d942
mov eax, dword [eax + 8]
mov esi, dword [esi]
sub eax, 0x10
push eax
call fcn.00402431
lea edi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x2ac], edi
lea eax, [ebp - 0x29c]
push 3
mov byte [ebp - 4], 2
mov dword [ebp - 0x2a0], eax
push edi
lea eax, [ebp - 0x2a0]
push eax
call fcn.0040b658
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2a0]
push eax
call fcn.004213a0
pop ecx
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2a0], eax
je 0x41d8df
push dword [ebp - 0x2a0]
call fcn.0053855f
pop ecx
mov eax, dword [ebp - 0x2a4]
cmp dword [eax - 0xc], ebx
jle 0x41d8fc
mov ecx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x2a4]
push eax
call fcn.004397bb
mov ecx, dword [ebp - 0x2a4]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402722
cmp esi, ebx
jne 0x41d869
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], bl
call fcn.0043969e
mov ecx, dword [ebp - 0x2a8]
add ecx, 0xfffffff0
call fcn.00402722
call fcn.0053dafc
ret 4
call fcn.00439394
int3
Function at 0x41f1b4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x563fda
call fcn.0053da79
and dword [ebp - 4], 0
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], edi
call fcn.00438647
push eax
mov ecx, edi
call fcn.0042a80d
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 0x41f236
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 0x41f22d
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.004026ae
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0053dafc
ret
Function at 0x4206d8
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 0x4206f2
cmp dword [ebp + 0xc], 5
jne 0x42070f
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 0x42070f
push edi
push edi
push edi
push edi
call esi
mov dword [ebp - 4], eax
cmp dword [0x5d1694], edi
je 0x42074d
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.00418099
add esp, 0xc
push eax
push 0x4181a3
push edi
push edi
call fcn.0053cd1d
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x420750
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420ba3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420c0c
cmp dword [ebp + 0x10], 1
je 0x420be4
cmp dword [ebp + 0x10], 2
je 0x420be4
push 0xd
pop eax
jmp 0x420c0c
mov eax, dword [ebp - 4]
test edi, edi
je 0x420c06
test eax, eax
je 0x420c01
test al, 1
jne 0x420bdf
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x420c06
jmp 0x420bdf
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4217d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c9030]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5d1ac0]
xor eax, eax
mov dword [ebp - 0x210], eax
cmp dword [ecx - 0xc], eax
jne 0x42182f
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
call fcn.00538bc9
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x5d1ac0
call fcn.004023c0
mov eax, dword [0x5d1ac0]
add eax, 0xfffffff0
push eax
call fcn.00402431
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
call fcn.005384ff
leave
ret
Function at 0x421c7d
Capabilities:
Get file version info

Disassembly:
push 0xa0
mov eax, 0x568469
call fcn.0053da79
mov eax, dword [ebp + 8]
push 3
push eax
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x94]
push eax
xor esi, esi
mov dword [ebp - 0x98], ecx
call fcn.0040b658
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x98]
call fcn.0042166d
or dword [ebp - 4], 0xffffffff
mov bl, al
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x421cda
push dword [ebp - 0x98]
call fcn.0053855f
pop ecx
test bl, bl
je 0x421ce7
xor eax, eax
inc eax
call fcn.0053dafc
ret
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [ebp - 0xa0]
call fcn.0040235d
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.00438647
push eax
lea ecx, [ebp - 0x9c]
call fcn.0042a80d
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa0]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0xa8], esp
mov edi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [edi], eax
pop ecx
lea eax, [ebp - 0x9c]
push eax
call fcn.00436678
pop ecx
pop ecx
test eax, eax
jne 0x421d65
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0xa0]
add ecx, 0xfffffff0
call fcn.00402722
xor eax, eax
jmp 0x421ce1
push 0
push dword [ebp - 0x9c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x421d9e
xor esi, esi
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0xa0]
add ecx, 0xfffffff0
call fcn.00402722
mov eax, esi
jmp 0x421ce1
push edi
call fcn.004385d5
pop ecx
push eax
push edi
push 0
push dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x421e18
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x599b60
push dword [ebp - 0xa4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x421e18
mov eax, dword [ebp - 0xa8]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx esi, word [eax + 0xe]
cmp ecx, 3
jle 0x421dfd
mov esi, ebx
jmp 0x421e18
jge 0x421e03
xor esi, esi
jmp 0x421e18
cmp edx, 7
jg 0x421df9
jl 0x421dff
cmp esi, 5
jg 0x421df9
jl 0x421dff
cmp word [eax + 0xc], bx
sbb esi, esi
inc esi
push dword [ebp - 0xa4]
call fcn.004385e0
pop ecx
jmp 0x421d7b
Function at 0x42218d
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0x4f4
mov eax, 0x5683a5
call fcn.0053da79
mov esi, ecx
call fcn.00438647
push eax
lea ecx, [ebp - 0x4b8]
call fcn.0042a80d
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00438647
push eax
lea ecx, [ebp - 0x4bc]
call fcn.0042a80d
mov byte [ebp - 4], 1
mov eax, dword [esi]
push 3
push eax
lea eax, [ebp - 0x4ac]
lea ecx, [ebp - 0x4a8]
push eax
mov dword [ebp - 0x4ac], ecx
call fcn.0040b658
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4ac]
call fcn.0042166d
mov byte [ebp - 0x4ad], al
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4ac], eax
je 0x422219
push dword [ebp - 0x4ac]
call fcn.0053855f
pop ecx
lea eax, [ebp - 0x4b8]
cmp byte [ebp - 0x4ad], bl
je 0x4222e0
push dword [esi]
push str._TEMP_DNAME___s__IP_LOCAL
push eax
call fcn.0040a7c3
add esp, 0xc
lea eax, [ebp - 0x4b4]
push eax
push 0x20019
push ebx
push 0x59d2ec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422360
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x4c4]
push eax
push ebx
push str.BaseModulePath
push dword [ebp - 0x4b4]
mov dword [ebp - 0x4c0], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4222cf
push 0xffffffffffffffff
push str.Corees2utility.exe
lea eax, [ebp - 0x424]
push 0x208
push eax
call fcn.0053d239
lea eax, [ebp - 0x424]
push eax
call fcn.00538bc9
add esp, 0x14
push eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.004023c0
push dword [ebp - 0x4b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422360
push dword [esi]
push str._T:__s__L
push eax
call fcn.0040a7c3
add esp, 0xc
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [ebp - 0x4b4]
call fcn.0040235d
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4b4]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x4c4], esp
mov esi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [ebp - 0x4bc]
push eax
call fcn.00436678
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4b4]
add ecx, 0xfffffff0
cmp eax, ebx
jne 0x42235b
call fcn.00402722
mov ecx, dword [ebp - 0x4bc]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x4b8]
add ecx, 0xfffffff0
jmp 0x4223d0
call fcn.00402722
push 0x38
lea eax, [ebp - 0x4fc]
push ebx
push eax
call fcn.00539100
mov esi, dword [ebp - 0x4bc]
mov edi, dword [ebp - 0x4b8]
add esp, 0xc
lea eax, [ebp - 0x500]
push eax
mov dword [ebp - 0x500], 0x3c
mov dword [ebp - 0x4fc], 0x40
mov dword [ebp - 0x4f0], esi
mov dword [ebp - 0x4ec], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00402722
lea ecx, [edi - 0x10]
call fcn.00402722
call fcn.0053dafc
ret
Function at 0x42297f
Capabilities:
Read .ini file

Disassembly:
push 0x30
mov eax, 0x5651c7
call fcn.0053da10
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call fcn.00438647
mov ecx, dword [ebp + 8]
push eax
call fcn.0042a80d
xor esi, esi
mov dword [ebp - 4], edi
inc esi
mov dword [ebp - 0x1c], esi
call fcn.00438647
push eax
lea ecx, [ebp - 0x14]
call fcn.0042a80d
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._04x
push eax
mov dword [ebp - 4], esi
call fcn.0040a7c3
add esp, 0xc
call fcn.00438647
push eax
lea ecx, [ebp - 0x10]
call fcn.0042a80d
mov byte [ebp - 4], 2
lea esi, [ebp + 0x10]
cmp dword [ebp + 0x10], edi
je 0x422a0b
call fcn.004217d8
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x10]
push 0x59d6b0
push eax
call fcn.0040a7c3
add esp, 0x10
jmp 0x422a27
call fcn.004217d8
mov byte [ebp - 4], 4
push dword [eax]
lea eax, [ebp - 0x10]
push str._sEpsonDocument_CaptureAppInfo1_
push eax
call fcn.0040a7c3
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [ebp - 0x3c]
call fcn.0043a735
push 0x59d750
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.0040193e
add esp, 0xc
push edi
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
call fcn.0043a7dc
cmp eax, edi
je 0x422b0e
call fcn.00438647
push eax
lea ecx, [ebp + 0x10]
call fcn.0042a80d
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.0043a387
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0043aa1f
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
call fcn.0040248f
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402722
mov esi, dword [ebp + 0x10]
push esi
push edi
push str.ProjectID
push str.Launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [ebp + 0x14]
je 0x422afa
lea ecx, [ebp - 0x3c]
call fcn.0043a6f7
test eax, eax
jne 0x422ae4
mov eax, dword [ebp - 0x3c]
push 0x10
lea ecx, [ebp - 0x3c]
call dword [eax + 0x38]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
call fcn.00402722
cmp ebx, edi
jne 0x422a6f
jmp 0x422b0e
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.0040248f
lea ecx, [esi - 0x10]
call fcn.00402722
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402722
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0043a767
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402722
mov eax, dword [ebp + 8]
call fcn.0053dae8
ret