joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a9f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452c5e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor al, al
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xa0], edi
test edi, edi
je 0x42abf1
mov dword [ebp - 0xac], 0
push 0x80
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00437ac0
mov edx, dword [esi + 4]
add esp, 0xc
push dword [ebp - 0xa0]
push ecx
mov ecx, dword [esi]
call fcn.0040b140
mov eax, dword [esi]
add esp, 8
mov dword [esi + 4], eax
xor ebx, ebx
lea eax, [ebp - 0x90]
push 0x40
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x42abef
mov byte [ebp - 0x91], 1
push 0x18
call fcn.004330db
mov edi, eax
add esp, 4
mov dword [ebp - 0xa4], edi
mov byte [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x42aad2
mov eax, dword [edi]
jmp 0x42aad4
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x90], cx
jne 0x42aae6
xor eax, eax
jmp 0x42aaff
lea eax, [ebp - 0x90]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aaf0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.0040cd60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
push edi
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
call fcn.0040b080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x42ab71
mov ecx, dword [esi]
lea edx, [ebp - 0x9c]
cmp ecx, edx
ja 0x42ab71
mov edi, edx
sub edi, ecx
sar edi, 3
cmp eax, dword [esi + 8]
jne 0x42ab63
push ecx
mov ecx, esi
call fcn.004057f0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea eax, [eax + edi*8]
test ecx, ecx
je 0x42ab91
jmp 0x42ab8b
cmp eax, dword [esi + 8]
jne 0x42ab7e
push ecx
mov ecx, esi
call fcn.004057f0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42ab91
lea eax, [ebp - 0x9c]
push eax
call fcn.0040b2c0
add dword [esi + 4], 8
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x42abc4
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x42abc4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x42abc4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x40
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
push ecx
inc ebx
push ebx
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x42aa96
mov al, byte [ebp - 0x91]
jmp 0x42abf1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret 8
Function at 0x42af00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d00
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x68], eax
cmp edi, eax
je 0x42b07d
mov ebx, dword [edi]
mov esi, dword [ebx + 0x54]
mov ebx, dword [ebx + 0x58]
cmp esi, ebx
je 0x42b072
mov ecx, dword [esi]
cmp byte [ecx], 1
jne 0x42b064
lea eax, [ebp - 0x28]
push eax
call fcn.00425ac0
push eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
push dword [edi]
push dword [ebp - 0x64]
call fcn.00429c20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42af96
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
mov ecx, dword [esi]
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00425b00
mov dword [ebp - 0x5c], eax
cmp dword [eax + 0x14], 8
jb 0x42afc3
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x60]
push ecx
push 0x20006
lea eax, [ebp - 0x58]
mov dword [ebp - 0x60], 0
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b01f
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x5c]
push 1
push 0
push str.DATE
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42b034
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040d960
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x42b064
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040d960
add esi, 8
cmp esi, ebx
jne 0x42af54
mov eax, dword [ebp - 0x68]
add edi, 8
cmp edi, eax
jne 0x42af44
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret 8
Function at 0x42c060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452e38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push edx
push 0x80000002
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42c130
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42c127
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42c127
push eax
lea ecx, [ebp - 0x20]
call fcn.00423ed0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub eax, edi
jne 0x42c0f2
push str.invalid_vector_T__subscript
call fcn.004313e7
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42c11f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffffe
add eax, edi
push eax
push edi
call fcn.00423f20
lea ecx, [ebp - 0x20]
call fcn.0040fb20
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x42e620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4530a0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46dcf8]
cmp eax, dword [ecx + 4]
jle 0x42e6af
push 0x46dcf8
call fcn.00433250
add esp, 4
cmp dword [0x46dcf8], 0xffffffff
jne 0x42e6af
xor eax, eax
mov dword [0x46dd10], 7
push 0x454110
mov dword [0x46dd0c], 0
mov word [0x46dcfc], ax
call fcn.004335c4
push 0x46dcf8
call fcn.00433211
add esp, 8
mov dword [ebp - 4], 0
cmp dword [0x46dd0c], 0
jne 0x42e724
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00437ac0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42e724
cmp word [ebp - 0x21c], 0
jne 0x42e6fa
xor ecx, ecx
jmp 0x42e712
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e703
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, 0x46dcfc
push eax
call fcn.0040cd60
push 0xffffffffffffffff
push 0
push 0x46dcfc
mov ecx, 0x46dce0
call fcn.0040cc40
cmp dword [0x46dcf0], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
Function at 0x42e9e0
Capabilities:
Modify service

Disassembly:
push esi
push 0x29
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x42ea47
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
test eax, eax
je 0x42ea40
push edi
push 0x40000000
push str.IJPLMSVC
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x42ea38
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
ret

Function at 0x42ebf0
Capabilities:
Create service
Modify service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00437ac0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42ec7a
push 8
lea eax, [ebp - 0x414]
push eax
push 0xb
push 0
push str.InstallDate
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
mov ebx, str.Canon_Inkjet_Printer_Scanner_Fax_Extended_Survey_Program
and ax, cx
mov ecx, str.Canon___
cmp ax, 0x11
lea eax, [ebp - 0x404]
push 0x200
push eax
push 0
cmove ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42ed5d
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x42ed5c
push esi
mov esi, 2
call fcn.00430990
test eax, eax
mov ecx, 3
lea eax, [ebp - 0x404]
push eax
cmovne esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0
push 0
push 0x4625c4
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 1
push esi
push 0x10
push 0xf01ff
push ebx
push str.IJPLMSVC
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x42ed58
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], str.Collects_log_data_from_the_IJ_printer_and_manages_data_transmission.
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42ed55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
push edi
call ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004330a2
mov esp, ebp
pop ebp
ret
Function at 0x42ed70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x42ee07
push esi
push 0x10024
push str.IJPLMSVC
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42edff
push 0x46d4a4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42edf1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
push 0x46d4a4
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42edf0
nop
cmp dword [0x46d4a8], 3
jne 0x42edf0
push 0x3e8
call ebx
push 0x46d4a4
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42edd0
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
ret

Function at 0x42ee10
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
push edi
push 0x53c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42ef69
push 0x53c
push 0
push esi
call fcn.00437ac0
add esp, 0xc
mov dword [esi + 0x41c], 0x11c
lea ecx, [esi + 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42ef69
call fcn.00430c00
mov word [esi + 0x538], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push esi
push 0x42ead0
push str.IJPLMSVC
mov word [esi + 0x53a], ax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [esi + 0x414], eax
test eax, eax
je 0x42ef69
mov eax, dword [0x46b8d0]
mov dword [0x46d4b8], eax
inc eax
push 0x46d4a4
mov dword [0x46d4a4], 0x10
mov dword [0x46d4b4], 0
mov dword [0x46d4ac], 0
mov dword [0x46d4a8], 2
mov dword [0x46d4b0], 0
mov dword [0x46d4bc], 0xbb8
push dword [esi + 0x414]
mov dword [0x46b8d0], eax
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x42ef69
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push 0
push 0
push 0x23
push 0
call edi
test eax, eax
js 0x42ef69
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.CanonIJPLM
push esi
call ebx
test eax, eax
je 0x42ef69
mov ecx, esi
call fcn.00430b80
test eax, eax
je 0x42ef69
lea eax, [esi + 0x20a]
push eax
push 0
push 0
push 0x26
push 0
call edi
test eax, eax
js 0x42ef69
push str.CanonIJPLMIJPLMUI.EXE
lea eax, [esi + 0x20a]
push eax
call ebx
test eax, eax
je 0x42ef69
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x418], eax
test eax, eax
je 0x42ef69
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov ecx, esi
call fcn.0042ef80
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x42f6f0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x46b070]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [esi + 0x38]
shr eax, 1
test al, 1
jne 0x42f804
push 0
push 0x1e
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00433a60
mov ebx, eax
mov eax, edx
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42f746
cmp ebx, 1
jbe 0x42f804
push 0
push 0x1e
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00433a60
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
cmp ecx, edx
jb 0x42f787
ja 0x42f76b
cmp ebx, eax
jb 0x42f787
mov edx, ebx
mov eax, ecx
add edx, 0xffffffff
adc eax, 0xffffffff
cmp eax, dword [esp + 0x10]
jb 0x42f804
ja 0x42f787
cmp edx, dword [esp + 0x14]
jbe 0x42f804
mov eax, dword [esi + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x24], eax
xor eax, eax
mov word [esp + 0x18], ax
test ecx, ecx
jne 0x42f7a3
cmp ebx, 0x78
jb 0x42f7d0
push 0x462cdc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 8]
test eax, eax
je 0x42f7d0
push 0
push 0
push 0
push 0
push 0
push 0x40000004
push 0
push 4
push eax
call edi
mov eax, dword [esi + 8]
test eax, eax
je 0x42f7ed
push 0
push 0
push 0
push 0
push 0
push 0x40000003
push 0
push 4
push eax
call edi
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push 0
add ecx, 0x20a
call fcn.00416520
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x42f821
push 0
push 0
push 0
push 0
push 0
push 0x400003e8
push 0
push 4
push eax
call edi
cmp dword [esi + 0x3c], 1
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x30], 0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
jne 0x42f894
cmp dword [esi + 0x108], 0
jne 0x42f886
cmp dword [esi + 0x120], 0
jne 0x42f886
cmp dword [esi + 0x138], 0
mov eax, 3
mov ecx, 6
cmovne eax, ecx
mov dword [esi + 0x34], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov dword [esi + 0x34], 2
call fcn.0042f8b0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
Function at 0x42f8b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0xa
jae 0x42f923
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea eax, [esi + 0x50]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x38]
shr eax, 1
test al, 1
je 0x42f8e2
mov eax, dword [esi + 0x140]
jmp 0x42f8e4
xor eax, eax
push eax
lea eax, [esi + 0x110]
push eax
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041c560
test al, al
je 0x42f91b
cmp dword [esi + 0x30], 0
jne 0x42f911
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
mov eax, 1
mov dword [esi + 0x30], eax
jmp 0x42f93a
mov eax, dword [esi + 0x30]
mov dword [esi + 0x30], eax
jmp 0x42f93a
cmp dword [esi + 0x48], 0xa
jae 0x42f932
cmp dword [esi + 0x138], 0
jne 0x42f93a
lea ecx, [esi + 0x50]
call fcn.00416f30
cmp dword [esi + 0x108], 0
jne 0x42f955
cmp dword [esi + 0x120], 0
jne 0x42f955
cmp dword [esi + 0x138], 0
je 0x42f997
cmp dword [esi + 0x30], 0
je 0x42f96b
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x18]
jne 0x42f997
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x1c]
jne 0x42f997
push 0
push 0x1e
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.0044f1a0
test edx, edx
jne 0x42f997
cmp eax, 0x1d
jae 0x42f997
cmp dword [esi + 0x138], edx
je 0x42f9bf
mov dword [esi + 0x34], 6
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [esi + 0x34], 3
test eax, eax
je 0x42f9bf
push 0
push 0
push 0
push 0
push 0
push 0x400003fc
push 0
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42faa0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x46b070]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov esi, ecx
push 0
push 0x1e
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00433a60
mov ebx, edx
mov edi, eax
test ebx, ebx
jne 0x42fadb
cmp edi, 1
jb 0x42faf2
push 0
push 0x1e
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00433a60
cmp edi, eax
jne 0x42fb00
cmp ebx, edx
jne 0x42fb00
mov eax, dword [esi + 0x38]
shr eax, 2
test al, 1
je 0x42fba6
push 0x1fe
lea eax, [esp + 0x16]
push 0
push eax
call fcn.00437ac0
mov eax, dword [esi + 0x10]
add esp, 0xc
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x24], eax
xor eax, eax
mov word [esp + 0x10], ax
test ebx, ebx
jne 0x42fb30
cmp edi, 0x78
jb 0x42fb61
push 0x462cdc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 8]
test eax, eax
je 0x42fb61
push 0
push 0
push 0
push 0
push 0
push 0x40000004
push 0
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [esi + 8]
test eax, eax
je 0x42fb82
push 0
push 0
push 0
push 0
push 0
push 0x40000003
push 0
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push 0
add ecx, 0x20a
call fcn.00416520
add esp, 4
test eax, eax
je 0x42fbc9
test ebx, ebx
jne 0x42fbc2
cmp edi, 0x78
jae 0x42fbc2
mov dword [esi + 0x34], 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x34], 5
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
Function at 0x42fd50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xf8]
push eax
push str.CanonPortO
call fcn.00430580
lea eax, [esi + 0x110]
push eax
push str.CanonPortN
call fcn.00430580
lea eax, [esi + 0x128]
push eax
push str.CanonPort
call fcn.00430580
mov eax, dword [esi + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42fde8
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.Retreive
push dword [esp + 0x20]
call edi
push dword [esp + 0xc]
call ebx
mov eax, dword [esi + 0x34]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fe33
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.Mode
push dword [esp + 0x20]
call edi
push dword [esp + 0xc]
call ebx
mov eax, dword [esi + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fe7e
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.ExtFlag
push dword [esp + 0x20]
call edi
push dword [esp + 0xc]
call ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fed0
push 8
lea eax, [esp + 0x14]
push eax
push 0xb
push 0
push str.BeforeDate
push dword [esp + 0x20]
call edi
push dword [esp + 0xc]
call ebx
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ff22
push 8
lea eax, [esp + 0x14]
push eax
push 0xb
push 0
push str.RetreiveDate
push dword [esp + 0x20]
call edi
push dword [esp + 0xc]
call ebx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ff74
push 8
lea eax, [esp + 0x14]
push eax
push 0xb
push 0
push str.BeforeSendDate
push dword [esp + 0x20]
call edi
push dword [esp + 0xc]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret