joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408676
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x46ab32
call fcn.004517f7
and dword [ebp - 0x220], 0
mov ecx, esi
mov dword [ebp - 0x224], esi
call fcn.0040279b
and dword [ebp - 4], 0
xor edi, edi
inc edi
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
mov dword [ebp - 0x220], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004024c3
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0040247a
push 0x4778ac
mov ecx, esi
call fcn.00403c3c
push 0x478068
mov ecx, esi
call fcn.00403c3c
push str.Event_ManagerScanModule.ini
mov ecx, esi
call fcn.00403c3c
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, esi
call fcn.0045187a
ret
Function at 0x40a83e
Capabilities:
Read .ini file

Disassembly:
push 0x63c
mov eax, 0x46a8a8
call fcn.004517f7
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, ecx
push dword [esi + 8]
lea eax, [ebp - 0x628]
push 0x104
push eax
mov edi, 0x47741c
push edi
push 0x4789ac
push str.Event_Launch_Win
call ebx
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x62c]
call fcn.00402773
and dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push 0x4774a8
push eax
call fcn.0040314f
pop ecx
pop ecx
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x630], esp
mov ecx, esp
push eax
call fcn.0040283c
lea eax, [esi + 0x40]
push eax
call fcn.004288c5
pop ecx
pop ecx
test eax, eax
jne 0x40a9f5
push dword [esi + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
push str.AppPath
push str.Event_Launch_Win
call ebx
cmp word [ebp - 0x218], 0
je 0x40a9f5
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x40]
call fcn.0040247a
lea eax, [ebp - 0x218]
lea ecx, [esi + 0x44]
push eax
call fcn.0040247a
lea ecx, [ebp - 0x648]
call fcn.0042be99
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x44]
push 0
push eax
lea ecx, [ebp - 0x648]
call fcn.0042bf31
lea ecx, [ebp - 0x648]
test eax, eax
jne 0x40a9da
call fcn.0042ba95
push edi
lea ecx, [esi + 0x44]
call fcn.0040247a
cmp dword [esi + 0x38], 0x384
jne 0x40a95d
or dword [esi + 0x38], 0xffffffff
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0044de40
add esp, 0xc
push dword [esi + 8]
lea eax, [ebp - 0x420]
push 0x104
push eax
push edi
push str.ProjectAppName
push str.Event_Launch_Win
call ebx
push ecx
lea eax, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x630], esp
push eax
call fcn.004024c3
mov ecx, esi
call fcn.0040a01d
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 0
call fcn.0042bec2
xor esi, esi
mov ecx, dword [ebp - 0x62c]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, esi
call fcn.0045187a
ret
call fcn.0042ba95
lea ecx, [ebp - 0x648]
mov dword [esi + 0x54], 1
mov byte [ebp - 4], 0
call fcn.0042bec2
push dword [esi + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
push str.Option
push str.Event_Launch_Win
call ebx
lea eax, [ebp - 0x218]
push eax
lea edi, [esi + 0x4c]
push 0x4774a8
push edi
call fcn.0040314f
pop ecx
pop ecx
mov ecx, esp
mov dword [ebp - 0x630], esp
push edi
call fcn.00402877
mov eax, esi
call fcn.00409fc2
xor esi, esi
inc esi
jmp 0x40a9c4
Function at 0x40aa42
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x48c7d0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
cmp eax, 2
jne 0x40ab02
push dword [esi + 8]
push 0xffffffffffffffff
push str.ActionID
push str.Launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x38], eax
cmp eax, 0x384
jne 0x40aa9c
mov ecx, esi
call fcn.0040a83e
test eax, eax
jne 0x40aaa9
jmp 0x40ab99
cmp eax, 0xffffffff
je 0x40aaa9
push esi
call fcn.0040a378
jmp 0x40aa93
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.0044de40
add esp, 0xc
push dword [esi + 8]
lea eax, [esp + 0x14]
push 0x104
push eax
push 0x47741c
push str.ProjectAppName
push str.Event_Launch_Win
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.004024c3
mov ecx, esi
call fcn.0040a01d
jmp 0x40ab96
cmp eax, 3
jl 0x40ab96
push dword [esi + 8]
push 0xffffffffffffffff
push str.ActionID
push str.Launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x38], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.0044de40
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push dword [esi + 8]
lea eax, [esp + 0x14]
push 0x104
push eax
push 0x47741c
push str.ExtActionUid
mov ebx, str.Event_Launch_Win
push ebx
call edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x58]
call fcn.0040247a
push dword [esi + 8]
lea eax, [esp + 0x14]
push 0x104
push eax
push 0x47741c
push str.ExtActionTypeId
push ebx
call edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x5c]
call fcn.0040247a
xor eax, eax
inc eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044d1dc
mov esp, ebp
pop ebp
ret

Function at 0x40ae09
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48c7d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 4], 0xffffffff
je 0x40ae27
mov dword [esi + 8], ebx
jmp 0x40aead
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
push edi
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0x4e20
mov eax, 0x1000
push eax
push eax
push 0xff
push 4
push 0x40000001
push 0x478ac4
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40aeac
push edi
push edi
push 1
push edi
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push 0x40aeb9
push edi
push edi
call fcn.0044f092
add esp, 0x18
mov dword [esi + 0xc], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d1dc
leave
ret
Function at 0x40aecc
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.00453e70
mov eax, dword [0x48c7d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x2008], eax
mov ebx, 0x28c
mov dword [ebp - 0x2034], edi
xor eax, eax
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2008]
mov dword [ebp - 0x2024], eax
lea eax, [ebp - 0x2034]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov eax, dword [esi + 0x10]
mov edi, dword [ebp - 0x2008]
push 0xffffffffffffffff
mov dword [ebp - 0x2010], eax
push 0
lea eax, [ebp - 0x2014]
push eax
push 2
mov dword [ebp - 0x2014], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x40afce
push eax
lea eax, [ebp - 0x200c]
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40afbe
cmp dword [ebp - 0x200c], ebx
jne 0x40afbe
push ebx
lea eax, [ebp - 0x2004]
push eax
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.0044d23c
add esp, 0x10
lea eax, [ebp - 0x2020]
push eax
push 0
push 0x4a
push dword [esi + 8]
mov dword [ebp - 0x201c], ebx
mov dword [ebp - 0x2018], edi
mov dword [ebp - 0x2020], 4
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
xor edi, edi
jmp 0x40aefc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044d1dc
leave
ret

Function at 0x40b338
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x46b795
call fcn.0045178e
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], edi
je 0x40b3dd
lea eax, [ebp + 8]
lea ecx, [esi + 8]
push eax
call fcn.0040270e
push dword [ebp + 8]
call fcn.004285d5
test eax, eax
mov eax, dword [ebp + 8]
pop ecx
je 0x40b3dd
cmp dword [eax - 0xc], edi
je 0x40b3dd
push 1
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040283c
mov ecx, esi
call fcn.0040b460
mov dword [esi + 0x10], eax
call fcn.0040b3ef
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x18], eax
call ebx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0x40b19a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov dword [esi + 0x14], eax
call fcn.0040285d
xor eax, eax
inc eax
jmp 0x40b3e7
lea ecx, [eax - 0x10]
call fcn.0040285d
xor eax, eax
call fcn.00451866
ret 4
Function at 0x40b460
Capabilities:
Enumerate files on windows

Disassembly:
push 0x264
mov eax, 0x46a86a
call fcn.004517f7
mov esi, ecx
mov dword [ebp - 0x270], esi
lea edi, [esi + 0xb4]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00409e4c
mov dword [ebp - 0x268], ebx
cmp dword [ebp + 0xc], ebx
je 0x40b49b
lea ecx, [esi + 0x24]
call fcn.0042aeae
push 1
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp + 8]
call fcn.0040692c
call fcn.0040b9c1
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
mov bl, al
call fcn.0040285d
test bl, bl
je 0x40b4cf
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040babd
push 0x478af4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004017f8
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.0040285d
cmp ebx, 0xffffffff
je 0x40b5fc
test byte [ebp - 0x260], 0x12
jne 0x40b5df
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.004024c3
push str.desktop.ini
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00408c1b
test eax, eax
je 0x40b5cd
push str.Thumbs.db
lea ecx, [ebp - 0x264]
call fcn.00408c1b
test eax, eax
je 0x40b5cd
push str.__.___
lea ecx, [ebp - 0x264]
call fcn.00408c1b
test eax, eax
je 0x40b5cd
push str.________.___
lea ecx, [ebp - 0x264]
call fcn.00408c1b
test eax, eax
je 0x40b5cd
push str..
lea ecx, [ebp - 0x264]
call fcn.00408c1b
test eax, eax
je 0x40b5cd
push str.fio12_
lea esi, [ebp - 0x264]
call fcn.004068da
cmp eax, 0xffffffff
jne 0x40b5cd
inc dword [ebp - 0x268]
cmp dword [ebp + 0xc], 0
je 0x40b5cd
mov ecx, dword [ebp - 0x270]
mov eax, esi
push eax
add ecx, 0x24
call fcn.0042af5c
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b510
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, dword [ebp - 0x268]
call fcn.0045187a
ret 8
Function at 0x40b61c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x470
mov eax, 0x46a82f
call fcn.004517f7
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp + 8]
call fcn.0040692c
call fcn.0040b9c1
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
mov byte [ebp - 0x46d], al
call fcn.0040285d
cmp byte [ebp - 0x46d], 0
je 0x40b66c
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040babd
push 0x478af4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.004017f8
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
mov dword [ebp - 0x478], eax
call fcn.0040285d
cmp dword [ebp - 0x478], 0xffffffff
je 0x40b84c
test byte [ebp - 0x468], 0x12
jne 0x40b825
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x46c]
call fcn.004024c3
push str.desktop.ini
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 1
call fcn.00408c1b
test eax, eax
je 0x40b813
push str.Thumbs.db
lea ecx, [ebp - 0x46c]
call fcn.00408c1b
test eax, eax
je 0x40b813
push str.__.___
lea ecx, [ebp - 0x46c]
call fcn.00408c1b
test eax, eax
je 0x40b813
push str.________.___
lea ecx, [ebp - 0x46c]
call fcn.00408c1b
test eax, eax
je 0x40b813
push str..
lea ecx, [ebp - 0x46c]
call fcn.00408c1b
test eax, eax
je 0x40b813
push str.fio12_
lea esi, [ebp - 0x46c]
call fcn.004068da
cmp eax, 0xffffffff
jne 0x40b813
lea eax, [ebx + 0xb4]
push eax
call fcn.00409e4c
push 0
push dword [ebp - 0x46c]
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.0042ae75
test eax, eax
jne 0x40b808
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0044de40
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
mov ecx, esi
call fcn.0042af5c
push dword [ebp - 0x46c]
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x477fb8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x474]
call fcn.004024c3
lea edi, [ebp - 0x474]
mov eax, ebx
mov byte [ebp - 4], 2
call fcn.0040b861
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [ebx + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x46c]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b6b5
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285d
xor eax, eax
call fcn.0045187a
ret 4
Function at 0x40b861
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x40b8ad
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b8ad
push ebx
lea ebx, [esi + 0x94]
push ebx
call fcn.00409e4c
mov eax, dword [edi]
push 0
add esi, 0x40
push eax
mov ecx, esi
call fcn.0042ae75
test eax, eax
jne 0x40b8a0
push edi
mov ecx, esi
call fcn.0042af5c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
xor eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push 0x18
mov eax, 0x4698a4
call fcn.0045178e
mov esi, ecx
mov eax, dword [esi + 0x4c]
test eax, eax
jg 0x40b8cd
xor eax, eax
jmp 0x40b9b9
lea ebx, [esi + 0x94]
push ebx
call fcn.00409e4c
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x10]
call fcn.00402773
and dword [ebp - 4], 0
mov edi, dword [esi + 0x44]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], edi
call fcn.00430ec1
mov byte [ebp - 4], 1
test edi, edi
je 0x40b969
lea edi, [esi + 0x40]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00407341
push eax
lea ecx, [ebp - 0x10]
call fcn.0040270e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b963
push 0
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.004312be
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x40b95b
lea ecx, [esi + 0x5c]
call fcn.0042af5c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042af5c
lea ecx, [ebp - 0x24]
call fcn.00430e5b
jmp 0x40b963
lea ecx, [esi + 0x78]
call fcn.0042af5c
cmp dword [ebp - 0x14], 0
jne 0x40b904
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0042aeae
cmp dword [esi + 0x84], 0
jle 0x40b98e
add esi, 0x78
push esi
mov ecx, edi
call fcn.0042af95
mov ecx, esi
call fcn.0042aeae
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0xc], esi
jle 0x40b9a0
inc esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00430f9c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, esi
call fcn.00451866
ret 4

Function at 0x40c3f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c457
cmp dword [ebp + 0xc], 1
je 0x40c42f
cmp dword [ebp + 0xc], 2
je 0x40c42f
push 0xd
pop eax
jmp 0x40c457
mov eax, dword [ebp - 4]
test edi, edi
je 0x40c451
test eax, eax
je 0x40c44c
test al, 1
jne 0x40c42a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40c451
jmp 0x40c42a
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x40f209
Capabilities:
Read .ini file

Disassembly:
push 0x64
mov eax, 0x46bf12
call fcn.004517f7
lea ecx, [ebp - 0x70]
call fcn.0042be99
and dword [ebp - 4], 0
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x50]
call fcn.00402773
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040830b
push str.Epson_SoftwareCommonEventInfo.plg
mov eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.004017f8
add esp, 0xc
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0040270e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.0040285d
mov ebx, dword [ebp - 0x50]
push 0
push ebx
lea ecx, [ebp - 0x70]
call fcn.0042bf31
test eax, eax
jne 0x40f2b2
lea ecx, [ebp - 0x70]
call fcn.0042ba95
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [ebx - 0x10]
call fcn.0040285d
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0042bec2
mov eax, esi
call fcn.0045187a
ret
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402773
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0042bb7b
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.0042c130
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0040270e
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.0040285d
push 4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040692c
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040ad59
push 0x479758
mov ecx, edi
call fcn.00408c1b
test eax, eax
je 0x40f338
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.0040285d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
jmp 0x40f3ac
mov esi, dword [ebp - 0x4c]
push esi
push 0xa
lea eax, [ebp - 0x3c]
push eax
push 0x47741c
push str.EventID
push str.Event
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004024c3
push 0x479780
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00408c1b
test eax, eax
je 0x40f3c0
lea ecx, [ebp - 0x70]
call fcn.0042be5a
test eax, eax
jne 0x40f38f
mov eax, dword [ebp - 0x70]
push 0x10
lea ecx, [ebp - 0x70]
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.0040285d
cmp dword [ebp - 0x58], 0
jne 0x40f2b2
jmp 0x40f289
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [esi - 0x10]
call fcn.0040285d
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [ebx - 0x10]
call fcn.0040285d
xor esi, esi
inc esi
jmp 0x40f29e
Function at 0x410099
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.SoftwareEPSONFastFoto
push SysReAllocString
mov dword [ebp - 0x5c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x410111
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 0x410108
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 0x410119
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 0x410191
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 0x410188
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 0x410199
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x70
mov eax, 0x46bca3
call fcn.0045178e
xor esi, esi
push str.ScanButtonConfig.exe
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00406a1b
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004083f2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00406973
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push str.___DSName:
push eax
call fcn.004069c6
push 0x477f88
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.004017f8
mov ecx, dword [ebp - 0x20]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.0040285d
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.0044de40
push dword [ebp - 0x18]
mov dword [ebp - 0x7c], 0x44
call fcn.0044e885
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 0x41026a
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push edi
call fcn.0044dba4
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285d
call fcn.00451866
ret