joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404649
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi + 0x28]
mov dword [edi], vtable.Project.0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [edi + 0x40]
call fcn.00404f15
mov ecx, dword [edi + 0x38]
push 0x10
pop esi
sub ecx, esi
call fcn.004021a7
mov ecx, dword [edi + 0x34]
sub ecx, esi
call fcn.004021a7
mov ecx, dword [edi + 0x30]
sub ecx, esi
call fcn.004021a7
mov ecx, dword [edi + 0x2c]
sub ecx, esi
call fcn.004021a7
mov ecx, dword [edi + 0x28]
sub ecx, esi
call fcn.004021a7
mov ecx, dword [edi + 0x20]
sub ecx, esi
call fcn.004021a7
mov ecx, dword [edi + 0x18]
pop edi
sub ecx, esi
pop esi
jmp fcn.004021a7

Function at 0x40471e
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xc3c
mov eax, 0x5567c1
call fcn.0052faf2
mov eax, dword [ebp + 8]
and dword [ebp - 0xc38], 0
mov esi, ecx
lea edi, [ebp - 0xc38]
mov dword [ebp - 0xc3c], eax
call fcn.004046af
and dword [ebp - 4], 0
call fcn.0042b589
push eax
lea ecx, [ebp - 0xc34]
call fcn.0040217f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.0052bfd0
mov eax, 0x104
push eax
lea ecx, [ebp - 0x628]
push ecx
push eax
lea ecx, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0xc30]
push ecx
push eax
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.0052ca3b
add esp, 0x30
mov eax, edi
push eax
lea ecx, [ebp - 0xc34]
call fcn.00401ee1
push 0x5881b8
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.004016d7
lea ecx, [ebp - 0x218]
push ecx
push eax
lea eax, [ebp - 0xc48]
push eax
mov byte [ebp - 4], 2
call fcn.004016d7
push 0x5881a0
push eax
lea eax, [ebp - 0xc44]
push eax
mov byte [ebp - 4], 3
call fcn.004016d7
add esp, 0x24
push eax
lea ecx, [ebp - 0xc34]
mov byte [ebp - 4], 4
call fcn.00401ee1
mov ecx, dword [ebp - 0xc44]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0xc48]
add ecx, 0xfffffff0
call fcn.004021a7
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc40]
add ecx, 0xfffffff0
call fcn.004021a7
mov esi, dword [ebp - 0xc34]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404875
push esi
push 0x200
lea eax, [ebp - 0xa28]
push eax
push 0x587cac
push 0x5881bc
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa28]
push eax
jmp 0x40487a
push 0x5881dc
mov ecx, dword [ebp - 0xc3c]
call fcn.00401daf
lea ecx, [esi - 0x10]
call fcn.004021a7
mov ecx, dword [ebp - 0xc38]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, dword [ebp - 0xc3c]
call fcn.0052fb75
ret 4
Function at 0x4048a9
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x11c
mov eax, 0x5571e7
call fcn.0052faf2
mov eax, dword [ebp + 8]
and dword [ebp - 0x124], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, ecx
push esi
push 0x80
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x110]
push eax
push 0x587cac
push str.ProjectUid
push str.Launch
call ebx
lea edi, [ebp - 0x11c]
call fcn.004046af
and dword [ebp - 4], 0
push 0x5881b8
mov eax, edi
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004016d7
lea ecx, [ebp - 0x110]
push ecx
push eax
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 4], 1
call fcn.004016d7
push 0x5881a0
push eax
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 2
call fcn.004016d7
add esp, 0x24
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
call fcn.004021a7
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x124]
add ecx, 0xfffffff0
call fcn.004021a7
push dword [ebp - 0x114]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4049cb
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push 0x80
push eax
push 0x587cac
push 0x5881bc
push str.String
call ebx
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push eax
call fcn.00401daf
mov ecx, dword [ebp - 0x114]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, dword [ebp - 0x118]
jmp 0x404a24
lea eax, [ebp - 0x120]
push eax
mov ecx, esi
call fcn.0040471e
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
push eax
call fcn.00401e83
mov esi, dword [ebp - 0x118]
pop ecx
mov ecx, dword [ebp - 0x120]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.004021a7
mov ecx, dword [ebp - 0x114]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, esi
call fcn.0052fb75
ret 4
Function at 0x404f4b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5b3db0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ecx
push 0x80
lea ecx, [ebp - 0x10c]
push ecx
push 0x587cac
push eax
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10c]
push eax
call fcn.0052ba99
pop ecx
test eax, eax
jne 0x404f95
fld qword [ebp + 0xc]
jmp 0x404fbe
fldz
lea eax, [ebp - 0x114]
push eax
fstp qword [ebp - 0x114]
lea eax, [ebp - 0x10c]
push 0x5883d0
push eax
call fcn.0052ccc1
fld qword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0052b424
leave
ret

Function at 0x404fca
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push 0x418
mov eax, 0x554d70
call fcn.0052faf2
xor esi, esi
mov dword [ebp - 0x424], esi
call fcn.0042b589
push eax
lea ecx, [ebp - 0x424]
call fcn.0040217f
push 0x410
lea eax, [ebp - 0x420]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.0052bfd0
mov eax, dword [ebp + 8]
add esp, 0xc
sub eax, esi
je 0x40508b
dec eax
dec eax
lea eax, [ebp - 0x420]
je 0x405025
push eax
push esi
push esi
push 0x8027
jmp 0x405099
push ebx
push 0x104
push eax
push 0x587cac
push str.TargetFolder
push str.Save
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x420]
push eax
je 0x40501c
call fcn.0052ba99
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
call fcn.00401e12
mov esi, dword [ebp - 0x424]
add esi, 0xfffffff0
push esi
call fcn.00401e83
add eax, 0x10
pop ecx
mov dword [edi], eax
mov ecx, esi
jmp 0x4050b7
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push 0x8005
push esi
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
lea eax, [ebp - 0x420]
push eax
mov ecx, edi
call fcn.00401daf
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, edi
call fcn.0052fb75
ret
Function at 0x406620
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x558107
call fcn.0052faf2
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x224], ebx
cmp dword [esi], edi
jne 0x406657
call fcn.0042b589
push eax
mov ecx, ebx
call fcn.0040217f
mov eax, ebx
jmp 0x406832
call fcn.0042b589
push eax
lea ecx, [ebp - 0x228]
call fcn.0040217f
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.0042b589
push eax
lea ecx, [ebp - 0x230]
call fcn.0040217f
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 2
call fcn.00428e77
mov dword [esp], 0x5889c8
push 0x5889e8
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push 0x5889f4
push eax
call fcn.004034f1
add esp, 0x14
push 0x588a04
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004016d7
add esp, 0xc
mov byte [ebp - 4], 3
push dword [ebp - 0x22c]
mov eax, dword [esi]
mov eax, dword [eax + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MajorNum
push eax
call edi
push dword [ebp - 0x22c]
mov dword [ebp - 0x220], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
push 0
push str.MinorNum
push eax
call edi
cmp dword [ebp - 0x220], 2
jne 0x406718
cmp eax, 0x46
jge 0x406721
cmp dword [ebp - 0x220], 3
jl 0x406783
call fcn.0042b589
push eax
lea ecx, [ebp - 0x220]
call fcn.0040217f
mov byte [ebp - 4], 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [eax + 0x14]
sub eax, 0x10
push eax
call fcn.00401e83
add eax, 0x10
mov dword [ebp - 0x248], eax
lea edi, [eax - 0x10]
mov dword [ebp - 0x238], esp
mov ebx, esp
push edi
mov byte [ebp - 4], 5
call fcn.00401e83
pop ecx
push dword [ebp - 0x224]
add eax, 0x10
push esi
mov dword [ebx], eax
call fcn.00406071
mov ecx, edi
call fcn.004021a7
jmp 0x4067f4
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, 0x587cac
push edi
lea ecx, [eax + 8]
call fcn.00401d89
call fcn.0042b589
push eax
lea ecx, [ebp - 0x220]
call fcn.0040217f
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 6
call fcn.004269e9
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 7
mov edx, dword [esi]
push eax
lea ecx, [ebp - 0x244]
call fcn.00426b59
mov ecx, dword [ebp - 0x224]
push edi
call fcn.00401daf
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x234], ebx
mov byte [ebp - 4], 6
call fcn.00426a84
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, dword [ebp - 0x224]
call fcn.0052fb75
ret
Function at 0x406cbf
Capabilities:
Read .ini file

Disassembly:
push 0x22c
mov eax, 0x554c66
call fcn.0052faf2
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
call fcn.00428e50
pop ecx
call fcn.0042b589
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040217f
push str.Resources
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push 0x588938
push eax
mov byte [ebp - 4], 1
call fcn.004034f1
add esp, 0x10
call fcn.0042b589
push eax
lea ecx, [ebp - 0x220]
call fcn.0040217f
mov byte [ebp - 4], 2
call fcn.0042b589
push eax
lea ecx, [ebp - 0x228]
call fcn.0040217f
mov byte [ebp - 4], 3
call fcn.0042b589
push eax
lea ecx, [ebp - 0x224]
call fcn.0040217f
and dword [ebp - 0x234], 0
mov dword [ebp - method.CLcMgrStub.virtual_0], vtable.CLcMgrStub.0
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x21c], esp
push str.string
call fcn.00401daf
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x22c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x230], esp
mov esi, esp
push eax
mov dword [ebp - 0x230], eax
call fcn.00401e83
add eax, 0x10
mov dword [esi], eax
pop ecx
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.0040da1c
push dword [ebp + 8]
lea ebx, [ebp - 0x21c]
call fcn.0040da71
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call fcn.00401ee1
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, dword [edi + 4]
lea esi, [ebp - 0x21c]
call fcn.0040cf83
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x587cac
push str.ProjectAppName
push str.Event_Launch_Win
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push 0x587d38
push eax
call fcn.004034f1
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
add esp, 0xc
call dword [eax + 0x20]
mov eax, dword [eax + 0x18]
cmp dword [eax - 0xc], 0
mov ebx, dword [ebp - 0x228]
je 0x406e5c
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
push dword [eax + 0x18]
jmp 0x406e63
cmp dword [ebx - 0xc], 0
je 0x406e7a
push ebx
push dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push eax
call fcn.004034f1
add esp, 0xc
jmp 0x406eb1
mov eax, dword [edi + 4]
lea esi, [ebp - 0x21c]
call fcn.00416679
mov byte [ebp - 4], 8
push dword [eax]
lea eax, [ebp - 0x224]
push dword [ebp - 0x220]
push eax
call fcn.004034f1
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004021a7
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [ebp - 0x224]
push 0x30
push 0x588afc
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call fcn.0040da0b
lea ecx, [esi - 0x10]
call fcn.004021a7
lea ecx, [ebx - 0x10]
call fcn.004021a7
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x230]
call fcn.004021a7
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021a7
call fcn.0052fb75
ret 4
Function at 0x4079f1
Capabilities:
Read .ini file

Disassembly:
push 0x244
mov eax, 0x554bde
call fcn.0052faf2
mov eax, dword [ebp + 8]
add eax, 0x50
mov ecx, eax
mov dword [ebp - 0x234], eax
call fcn.0042db34
push 0xa
lea ecx, [ebp - 0x250]
call fcn.0042da79
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0042b589
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040217f
mov byte [ebp - 4], 1
call fcn.0042b589
push eax
lea ecx, [ebp - 0x220]
call fcn.0040217f
lea esi, [ebp - 0x228]
mov byte [ebp - 4], 2
call fcn.00407bea
mov byte [ebp - 4], 3
push dword [ebp - 0x228]
mov esi, str.Devices
push edi
push str.SupportedDeviceCount
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x22c], eax
xor eax, eax
cmp dword [ebp - 0x22c], edi
jle 0x407b2f
mov edi, 0x587cac
lea ebx, [eax + 1]
push ebx
lea eax, [ebp - 0x21c]
push str.Device_04d
push eax
call fcn.004034f1
add esp, 0xc
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401daf
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x407b0d
lea ecx, [ebp - 0x224]
call fcn.00407c89
push dword [ebp - 0x224]
lea ecx, [ebp - 0x250]
call fcn.0042dcf9
push edi
mov ecx, eax
call fcn.00401d89
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, ebx
cmp eax, dword [ebp - 0x22c]
jl 0x407a8f
xor edi, edi
lea eax, [ebp - 0x250]
push eax
call fcn.0040787a
mov eax, dword [ebp - 0x244]
neg eax
sbb eax, eax
mov dword [ebp - 0x230], eax
cmp eax, edi
je 0x407ba7
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x250]
call fcn.0042dbbe
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], edi
je 0x407b9f
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], edi
je 0x407b9f
mov ecx, dword [ebp - 0x234]
push eax
call fcn.0042dcf9
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.00401ee1
cmp dword [ebp - 0x230], edi
jne 0x407b4f
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.0042db86
mov al, 1
call fcn.0052fb75
ret 4

Function at 0x407f68
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, eax
mov ecx, esi
call fcn.00408146
test al, al
je 0x407f7a
mov al, 1
pop esi
ret
xor ecx, ecx
cmp byte [esi + 0x10], cl
je 0x407f89
cmp dword [esi + 0x1c], ecx
pop esi
setne al
ret
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 8]
push eax
push ecx
push str.ModelDependency
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x407ff4
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x554b7f
call fcn.0052faf2
xor esi, esi
inc esi
push esi
push 0x23
xor eax, eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x230], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00401daf
and dword [ebp - 4], 0
mov eax, dword [ebx + 8]
sub eax, 0x10
push eax
mov dword [ebp - 0x230], esi
call fcn.00401e83
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], esi
mov dword [esp], 0x587b60
push str.Model
lea ecx, [ebp - 0x21c]
call fcn.004087b6
push str.ScanSmart.ini
lea ecx, [ebp - 0x224]
call fcn.004070b3
push str.epsonEpson_Scan_2Models_
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.004070b3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.00401680
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 4
call fcn.00401680
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 5
call fcn.00401680
add esp, 0x24
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00401ee1
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, edi
call fcn.0052fb75
ret
Function at 0x408146
Capabilities:
Check if file exists
Check os version
Read .ini file

Disassembly:
push 0x128
mov eax, 0x5565f5
call fcn.0052faf2
mov edi, 0x114
push edi
xor esi, esi
lea eax, [ebp - 0x124]
push esi
push eax
mov ebx, ecx
call fcn.0052bfd0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 7
jb 0x408192
xor al, al
jmp 0x40828e
cmp dword [ebp - 0x120], 6
jne 0x4081a4
cmp dword [ebp - 0x11c], 1
jae 0x40818b
lea edi, [ebp - 0x128]
call fcn.00407ff4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004021a7
cmp edi, esi
je 0x408282
lea edi, [ebp - 0x134]
call fcn.00407ff4
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.004082b9
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.buttonNumbers
push eax
call esi
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004021a7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.004021a7
test edi, edi
jle 0x408282
lea edi, [ebp - 0x130]
call fcn.00407ff4
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
push ebx
mov dword [ebp - 4], 1
call fcn.004082b9
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push 0
push str.category
push eax
call esi
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021a7
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
call fcn.004021a7
cmp esi, 0x15
je 0x40827e
cmp esi, 0x16
jne 0x408282
mov al, 1
jmp 0x40828e
mov eax, ebx
call fcn.00408294
test al, al
setne al
call fcn.0052fb75
ret

Function at 0x40830c
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x557011
call fcn.0052fa89
mov ebx, ecx
call fcn.00408146
test al, al
je 0x40837a
mov eax, ebx
call fcn.00408294
test al, al
je 0x408333
push 4
pop eax
jmp 0x40839a
lea edi, [ebp - 0x14]
call fcn.00407ff4
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004082b9
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push 0
push str.buttonNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021a7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021a7
mov eax, esi
jmp 0x40839a
cmp byte [ebx + 0x10], 0
je 0x408385
mov eax, dword [ebx + 0x18]
jmp 0x40839a
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
push eax
push 0
push str.NumJobEvents
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call fcn.0052fb61
ret
Function at 0x4083a0
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x557011
call fcn.0052fa89
mov ebx, ecx
call fcn.00408146
test al, al
je 0x40840b
lea edi, [ebp - 0x14]
call fcn.00407ff4
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004082b9
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push 0
push str.buttonNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021a7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021a7
xor eax, eax
cmp esi, 1
setne al
lea eax, [eax*4 + 2]
jmp 0x40842b
cmp byte [ebx + 0x10], 0
je 0x408416
mov eax, dword [ebx + 0x14]
jmp 0x40842b
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
push eax
push 0
push str.JobDeviceType
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call fcn.0052fb61
ret

Function at 0x408431
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b3db0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0052bfd0
add esp, 0xc
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x587cac
push str.ShortTranslation
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00401daf
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.0052b424
leave
ret

Function at 0x4084a7
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x55706a
call fcn.0052faf2
and dword [ebp - 0x224], 0
mov ebx, ecx
mov esi, edx
call fcn.00408146
test al, al
je 0x408537
lea edi, [ebp - 0x21c]
call fcn.00407ff4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
push ebx
call fcn.004082b9
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push 0
push str.buttonNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004021a7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, esi
cmp edi, 1
jne 0x408530
push str.ModelMF0A
call fcn.004070b3
jmp 0x408595
push str.ModelMF16
jmp 0x408529
cmp byte [ebx + 0x10], 0
je 0x408547
lea eax, [ebx + 0x14]
call fcn.00401662
jmp 0x408595
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0052bfd0
add esp, 0xc
push dword [ebx + 0xc]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x587cac
push str.DeviceSettingAlias
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401daf
mov eax, esi
call fcn.0052fb75
ret