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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587cd9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
push 0x5b95a8
call fcn.00401a30
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x14], 1
push 0x5b95a8
lea ecx, [ebp - 0x10]
add esi, 0x400
call fcn.00401a30
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov edi, dword [ebp + 0xc]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40fd18
push esi
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edi
push esi
push edx
push 0x5b95a8
push eax
push ecx
call ebx
mov edi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005581e8
add esp, 8
test eax, eax
jl 0x40fe3d
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40fe3d
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov word [ecx + eax*2], dx
lea edx, [esi - 2]
cmp edi, edx
jne 0x40fd8f
mov byte [ebp - 4], 3
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 0x40fcde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40fcde
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.00401f40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
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 0x40fde3
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 0x40fe06
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 0x40fe29
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
int3
Function at 0x411190
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5857f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5ef60c]
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 0x4111fb
or ecx, eax
jge 0x4111e8
push 0
lea ecx, [ebp + 8]
call fcn.00401de0
mov edx, dword [ebp + 8]
push 0x100
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
jmp 0x41121d
or ecx, eax
jge 0x41120c
push 0
lea ecx, [ebp + 8]
call fcn.00401de0
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 0x411252
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.0055799e
mov esp, ebp
pop ebp
ret
Function at 0x4113b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587c01
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
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 0x5b95a8
call fcn.00401a30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x4114f0
call fcn.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411422
push 0x80004005
call fcn.00401fd0
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.00401f40
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x4114d0
mov ebx, 0x80
call fcn.004036a0
mov esi, eax
test esi, esi
je 0x4114d0
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x5b95a8
push str.ModelNameI
push str.User_Mode_Printer_Driver_Information
call ebx
test eax, eax
ja 0x4114b3
mov edx, dword [ebp + 0x10]
push edi
push 0x80
push esi
push 0x5b95a8
push str.DeviceName
push edx
call ebx
test eax, eax
ja 0x4114b3
push edi
push 0x80
push esi
push 0x5b95a8
push str.ModelName
push str.CommonDrvInfo
call ebx
test eax, eax
jbe 0x4114bc
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4114d0
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 0x4114f0
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 0x411513
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 0x411536
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 0x412670
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5857c0
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5ef60c]
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.0055b030
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.0055b030
add esp, 0xc
cmp dword [ebp - 0x128], 6
mov dword [ebp - 0x168], 0x3c
mov dword [ebp - 0x160], edi
jb 0x41270d
mov dword [ebp - 0x15c], str.runas
cmp dword [ebp + 0x14], edi
jne 0x412717
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 0x412743
push 0
lea ecx, [ebp + 8]
call fcn.00401de0
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 0x412765
push 0
lea ecx, [ebp + 0xc]
call fcn.00401de0
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 0x4127dc
cmp dword [ebp - 0x148], 0x20
jle 0x4127dc
cmp dword [ebp + 0x10], edi
jne 0x41278e
mov edi, ebx
jmp 0x4127de
cmp dword [ebp - 0x130], edi
je 0x4127de
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 0x4127a8
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x4127de
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 0x412801
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 0x412827
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.0055799e
mov esp, ebp
pop ebp
ret
Function at 0x413290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
call ebx
mov edi, eax
test edi, edi
je 0x413328
push esi
push 0x20a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x413327
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
push 0
push esi
call fcn.0055b030
add esp, 0xc
push 1
push 0x23
push esi
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x41330e
lea edi, [ebp - 4]
mov ecx, 0x105
mov edx, esi
call fcn.00403660
test eax, eax
jge 0x413303
xor ecx, ecx
jmp 0x413306
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x413317
test ecx, ecx
je 0x413317
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call ebx
test eax, eax
je 0x413327
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
pop edi
pop ebx
je 0x41333e
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x416cc0
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 0x416cd6
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 0x416cf4
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 0x5bbb44
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x416ddd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x416ddd
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 0x416ddd
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x416ddd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x416dcc
push edi
push ebx
push eax
call fcn.0055d8d0
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 0x416dc2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ca60
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 0x416dc2
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
jne 0x416db0
lea eax, [edi + 1]
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x416dbf
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 0x4180e0
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 0x418101
push 0x14
push str.http:__www.epson.com
mov ecx, esi
call fcn.00401e90
push 0x3c
lea ecx, [ebp - 0x3c]
push 0
push ecx
call fcn.0055b030
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 0x418148
push 0
mov ecx, esi
call fcn.00401de0
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 0x418b20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589838
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5b95a8
lea ecx, [ebp - 0x10]
or edi, 0xffffffff
call fcn.00401a30
push 0x5b95a8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00401a30
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x418c20
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov esi, esp
push eax
call fcn.00401ff0
add esp, 4
lea ecx, [ebp + 8]
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00419380
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401f40
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418bcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
je 0x418c20
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
call fcn.0040e960
test eax, eax
je 0x418c20
mov edx, dword [ebp - 0x14]
push str..VIF
push edx
call fcn.00558f06
add esp, 8
test eax, eax
jne 0x418c20
mov eax, dword [ebp - 0x10]
push eax
push 0
push str.CopyrightYear
push str.VersionInformation
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x418c20
xor ecx, ecx
cmp eax, 0x7e3
setge cl
mov edi, ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418c45
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 - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418c6b
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
mov esp, ebp
pop ebp
ret 4
Function at 0x418d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5879c6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5ef60c]
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 0x5b95a8
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
call fcn.00401a30
mov byte [ebp - 4], 2
call fcn.0045e972
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x418e00
push 0x80004005
call fcn.00401fd0
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.00418f90
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x418ed1
test eax, eax
jne 0x418ed1
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 0x418ec2
cmp dword [ebp - 0x224], eax
je 0x418ec2
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.00403fe0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x418ec2
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, ebx
call fcn.00401f40
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418edf
push 0
push 0x5b95a8
mov ecx, ebx
call fcn.00401e90
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 0x418eff
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 0x418f25
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 0x418f48
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 0x418f6e
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.0055799e
mov esp, ebp
pop ebp
ret 8
Function at 0x419910
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587cd9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
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 0x5b95a8
call fcn.00401a30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x419a8f
call fcn.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419982
push 0x80004005
call fcn.00401fd0
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 0x4199bc
push 0x5b93a4
push ecx
call fcn.005592d8
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x4199bc
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4199d4
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x10]
push str._s_s
push edx
call fcn.00402810
add esp, 0x10
jmp 0x4199e0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f40
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x419a6f
mov ebx, 0x80
call fcn.004036a0
mov esi, eax
test esi, esi
je 0x419a6f
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x5b95a8
push str.ModelNameI
push str.User_Mode_Printer_Driver_Information
call ebx
test eax, eax
ja 0x419a52
mov ecx, dword [ebp + 0x14]
push edi
push 0x80
push esi
push 0x5b95a8
push str.DeviceName
push ecx
call ebx
test eax, eax
ja 0x419a52
push edi
push 0x80
push esi
push 0x5b95a8
push str.ModelName
push str.CommonDrvInfo
call ebx
test eax, eax
jbe 0x419a5b
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x419a6f
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 0x419a8f
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 0x419ab2
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 0x419ad5
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 0x419af8
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 0x419c50
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.00418f90
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419ccc
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 0x41b7e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5877b1
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
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.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41b82b
push 0x80004005
call fcn.00401fd0
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.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41b85a
push 0x80004005
call fcn.00401fd0
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.0046bbb6
push 0
mov byte [ebp - 4], 2
call fcn.0041bdd0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push 0xffffffffffffffff
mov dword [esi + 0x20], ecx
push 0
mov ecx, ebx
call fcn.0046bc37
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