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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 6
push 0x40
mov dword [ebp - 8], 0
mov edi, 3
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40792e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push esi
call fcn.005440c0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea ecx, [edi - 2]
cmp ecx, ebx
jne 0x407937
push esi
add edi, 0x400
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [edi + edi]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4078e5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x40794b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40793b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.005440c0
add esp, 0xc
test ebx, ebx
jle 0x4079ee
mov eax, esi
cmp word [eax], 0
jne 0x407986
inc dword [ebp - 8]
cmp word [eax + 2], 0
je 0x40798b
add eax, 2
jmp 0x407976
cmp dword [ebp - 8], 0
jle 0x4079ee
mov dword [ebp - 4], esi
mov ebx, esi
mov ecx, dword [ebp - 4]
cmp word [ecx], 0
jne 0x4079e8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.005440c0
mov edx, dword [ebp - 4]
sub edx, ebx
add esp, 0xc
sar edx, 1
inc edx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push edi
call fcn.00542142
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ebx, dword [ebp - 4]
add esp, 0x10
push edi
push eax
add ebx, 2
call fcn.00454685
cmp word [ebx], 0
je 0x4079ee
add dword [ebp - 4], 2
jmp 0x407996
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ecx + 8]
je 0x407a08
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5701b9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407a60
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 0x14], 1
mov edi, 0x400
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407b3d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
mov eax, dword [esi - 8]
mov ebx, dword [ebp + 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x407ac4
push edi
lea ecx, [ebp - 0x10]
call fcn.00401db0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push edi
push esi
push 0x5a04b0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005412d0
add esp, 8
test eax, eax
jl 0x407bf2
cmp eax, dword [esi - 8]
jg 0x407bf2
xor ecx, ecx
lea edx, [edi - 2]
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp ebx, edx
jne 0x407b47
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407b2a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x400
call fcn.00447edb
test eax, eax
jne 0x407a91
push 0x80004005
call fcn.00401fc0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.00401f10
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x407b75
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fc0
int3
Function at 0x408c10
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e838
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5d1614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
cmp dword [ebp + 0xc], 0
je 0x408c7b
or ecx, eax
jge 0x408c68
push 0
lea ecx, [ebp + 8]
call fcn.00401db0
mov edx, dword [ebp + 8]
push 0x100
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
jmp 0x408c9d
or ecx, eax
jge 0x408c8c
push 0
lea ecx, [ebp + 8]
call fcn.00401db0
mov edx, dword [ebp + 8]
push 0x101
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [ebp - 0x2c4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408cd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00540a86
mov esp, ebp
pop ebp
ret
Function at 0x408e80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570521
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x5a04b0
call fcn.00401a30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x408fc0
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408ef2
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401f10
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x408fa0
mov ebx, 0x80
call fcn.00403690
mov esi, eax
test esi, esi
je 0x408fa0
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x5a04b0
push str.ModelNameI
push str.User_Mode_Printer_Driver_Information
call ebx
test eax, eax
ja 0x408f83
mov edx, dword [ebp + 0x10]
push edi
push 0x80
push esi
push 0x5a04b0
push str.DeviceName
push edx
call ebx
test eax, eax
ja 0x408f83
push edi
push 0x80
push esi
push 0x5a04b0
push str.ModelName
push str.CommonDrvInfo
call ebx
test eax, eax
jbe 0x408f8c
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x408fa0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408fc0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409006
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a140
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5d1614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
xor edi, edi
lea eax, [ebp - 0x12c]
push edi
mov ebx, 1
push eax
mov dword [ebp - 4], ebx
call fcn.005440c0
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x38
lea edx, [ebp - 0x164]
push edi
push edx
call fcn.005440c0
add esp, 0xc
cmp dword [ebp - 0x128], 6
mov dword [ebp - 0x168], 0x3c
mov dword [ebp - 0x160], edi
jb 0x40a1dd
mov dword [ebp - 0x15c], str.runas
cmp dword [ebp + 0x14], edi
jne 0x40a1e7
mov dword [ebp - 0x15c], str.open
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x164], 0x440
mov ecx, dword [edx - 8]
mov eax, ebx
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40a213
push 0
lea ecx, [ebp + 8]
call fcn.00401db0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x158], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx - 8]
mov eax, ebx
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40a235
push 0
lea ecx, [ebp + 0xc]
call fcn.00401db0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x154], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a2ac
cmp dword [ebp - 0x148], 0x20
jle 0x40a2ac
cmp dword [ebp + 0x10], edi
jne 0x40a25e
mov edi, ebx
jmp 0x40a2ae
cmp dword [ebp - 0x130], edi
je 0x40a2ae
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esi], 0x103
mov ecx, dword [ebp - 0x130]
push 0x1f4
push ecx
call edi
mov edx, dword [ebp - 0x130]
push esi
push edx
call ebx
cmp dword [esi], 0x103
je 0x40a278
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40a2ae
xor edi, edi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a2d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a2f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00540a86
mov esp, ebp
pop ebp
ret
Function at 0x40eca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 4]
push ebx
push edi
xor edi, edi
cmp ecx, edi
je 0x40ecb6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
cmp eax, edi
je 0x40ecd4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], edi
mov ecx, dword [ebp + 8]
push 0x5a0afc
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40edbd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40edbd
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40edbd
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x40edbd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40edac
push edi
push ebx
push eax
call fcn.00546940
mov eax, dword [esi + 8]
add esp, 0xc
lea edx, [ebp + 8]
push edx
xor edi, edi
push edi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40eda2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404da0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40eda2
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
jne 0x40ed90
lea eax, [edi + 1]
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x40ed9f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 4], edi
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x410130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x78]
sub esp, 0x3c
cmp dword [eax - 0xc], 0
push esi
lea esi, [ebx + 0x78]
jne 0x410151
push 0x14
push str.http:__www.epson.com
mov ecx, esi
call fcn.00401e60
push 0x3c
lea ecx, [ebp - 0x3c]
push 0
push ecx
call fcn.005440c0
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 1
mov edx, 1
sub edx, dword [eax + 0xc]
add esp, 0xc
or edx, dword [eax + 8]
jge 0x410198
push 0
mov ecx, esi
call fcn.00401db0
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebx + 0x7c], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5702d6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d1614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor esi, esi
push 0x5a04b0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
call fcn.00401a30
mov byte [ebp - 4], 2
call fcn.00447edb
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x411e70
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
mov esi, dword [ebp + 8]
push ecx
call fcn.00412000
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x411f41
test eax, eax
jne 0x411f41
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x224]
push edx
push eax
push eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call esi
test eax, eax
jne 0x411f32
cmp dword [ebp - 0x224], eax
je 0x411f32
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edx
push eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00403fd0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x411f32
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, ebx
call fcn.00401f10
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411f4f
push 0
push 0x5a04b0
mov ecx, ebx
call fcn.00401e60
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00540a86
mov esp, ebp
pop ebp
ret 8
Function at 0x412940
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5701b9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
push 0x5a04b0
call fcn.00401a30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x412abf
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4129b2
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
jl 0x4129ec
push 0x5a02d4
push ecx
call fcn.00542215
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x4129ec
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x412a04
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x10]
push str._s_s
push edx
call fcn.00402800
add esp, 0x10
jmp 0x412a10
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f10
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x412a9f
mov ebx, 0x80
call fcn.00403690
mov esi, eax
test esi, esi
je 0x412a9f
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x5a04b0
push str.ModelNameI
push str.User_Mode_Printer_Driver_Information
call ebx
test eax, eax
ja 0x412a82
mov ecx, dword [ebp + 0x14]
push edi
push 0x80
push esi
push 0x5a04b0
push str.DeviceName
push ecx
call ebx
test eax, eax
ja 0x412a82
push edi
push 0x80
push esi
push 0x5a04b0
push str.ModelName
push str.CommonDrvInfo
call ebx
test eax, eax
jbe 0x412a8b
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x412a9f
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x412abf
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ae2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov dword [ebp - 4], 0
call fcn.00412000
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20006
push eax
push 0
push 0
push 0
push str.SoftwareEPSONDownload_Navigator_
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412cfc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push esi
push edx
push eax
push 1
push 0
push str.Directory
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8
Function at 0x414ae0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570091
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CLangControl.0
lea edi, [esi + 4]
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414b2b
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414b5a
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
lea ebx, [esi + 0xc]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004542b8
push 0
mov byte [ebp - 4], 2
call fcn.004150e0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push 0xffffffffffffffff
mov dword [esi + 0x20], ecx
push 0
mov ecx, ebx
call fcn.00454339
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4