joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416790
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.unknown]
push ebx
push edi
push 0x1fa
xor edi, edi
lea eax, [ebp - 0x200]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x224], ebx
movups xmmword [ebp - 0x210], xmm0
call fcn.00437ab0
add esp, 0xc
mov dword [ebp - 0x218], 0xffffffff
test ebx, ebx
jne 0x4167f2
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433092
mov esp, ebp
pop ebp
ret
push esi
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x4168c8
lea eax, [ebp - 0x21c]
push eax
push 0x1000
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4168c1
mov ebx, dword [ebp - 0x21c]
xor edi, edi
shr ebx, 2
test ebx, ebx
je 0x4168bf
nop
push dword [esi + edi*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4168b4
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41688a
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push str.explorer.exe
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4168db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x214]
inc edi
cmp edi, ebx
jb 0x416840
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00433092
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
test eax, eax
jne 0x416901
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x214]
jmp 0x4168bf
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x224]
push 1
push 2
push 0
push 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x218]
mov edi, eax
call ebx
mov esi, dword [ebp - 0x214]
jmp 0x4168c1

Function at 0x416a10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x416a5c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetPLIdataW
push ebx
call esi
push str.GetNEWROMW
push ebx
mov dword [edi], eax
call esi
push str.SavePLIdataW
push ebx
mov dword [edi + 4], eax
call esi
push str.MakePLIdataW
push ebx
mov dword [edi + 8], eax
call esi
push str.MakeNPLIdataW
push ebx
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
pop esi
cmp dword [edi], 0
je 0x416a81
cmp dword [edi + 4], 0
je 0x416a81
cmp dword [edi + 8], 0
je 0x416a81
cmp dword [edi + 0xc], 0
je 0x416a81
cmp dword [edi + 0x10], 0
je 0x416a81
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x416b00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x416b6d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.pu2Open
push ebx
call esi
push str.pu2Close
push ebx
mov dword [edi], eax
call esi
push str.pu2SetIF
push ebx
mov dword [edi + 4], eax
call esi
push str.pu2SetPrinterName
push ebx
mov dword [edi + 8], eax
call esi
push str.pu2SetUrl
push ebx
mov dword [edi + 0xc], eax
call esi
push str.pu2SetIP
push ebx
mov dword [edi + 0x10], eax
call esi
push str.pu2SetMasterPortOption
push ebx
mov dword [edi + 0x14], eax
call esi
push str.pu2Read
push ebx
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
pop esi
cmp dword [edi], 0
je 0x416ba4
cmp dword [edi + 4], 0
je 0x416ba4
cmp dword [edi + 8], 0
je 0x416ba4
cmp dword [edi + 0x10], 0
je 0x416ba4
cmp dword [edi + 0xc], 0
je 0x416ba4
cmp dword [edi + 0x14], 0
je 0x416ba4
cmp dword [edi + 0x18], 0
je 0x416ba4
cmp dword [edi + 0x1c], 0
je 0x416ba4
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x416bb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x416c28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PDQuerySupportService
push ebx
call esi
push str.PDReleaseSupportService
push ebx
mov dword [edi], eax
call esi
push str.PDGetMacAddress
push ebx
mov dword [edi + 4], eax
call esi
push str.PDReleaseMacAddress
push ebx
mov dword [edi + 8], eax
call esi
push str.PDGetCapabilities
push ebx
mov dword [edi + 0xc], eax
call esi
push str.PDReleaseIString
push ebx
mov dword [edi + 0x10], eax
call esi
push str.PDGetConfiguration
push ebx
mov dword [edi + 0x14], eax
call esi
push str.PDSetConfiguration
push ebx
mov dword [edi + 0x18], eax
call esi
push str.PDGetDeviceUniqueId
push ebx
mov dword [edi + 0x1c], eax
call esi
mov dword [edi + 0x20], eax
pop esi
cmp dword [edi], 0
je 0x416c47
cmp dword [edi + 4], 0
je 0x416c47
cmp dword [edi + 8], 0
je 0x416c47
cmp dword [edi + 0xc], 0
je 0x416c47
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x416c50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x416cd3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.pipsQueryPLIType
push ebx
call esi
push str.pipsQueryEncryptType
push ebx
mov dword [edi], eax
call esi
push str.pipsGetPLI
push ebx
mov dword [edi + 4], eax
call esi
push str.pipsPLIUnobfuscate
push ebx
mov dword [edi + 8], eax
call esi
push str.pipsPLIFreeRecord
push ebx
mov dword [edi + 0xc], eax
call esi
push str.pipsPLIFreeHint
push ebx
mov dword [edi + 0x10], eax
call esi
push str.pipsFreePLIType
push ebx
mov dword [edi + 0x14], eax
call esi
push str.pipsPliSendQuestionnaireData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.pipsPliGetCapabilities
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.pipsPliFreeCapabilities
push ebx
mov dword [edi + 0x20], eax
call esi
mov dword [edi + 0x24], eax
pop esi
cmp dword [edi], 0
je 0x416d16
cmp dword [edi + 4], 0
je 0x416d16
cmp dword [edi + 8], 0
je 0x416d16
cmp dword [edi + 0xc], 0
je 0x416d16
cmp dword [edi + 0x10], 0
je 0x416d16
cmp dword [edi + 0x14], 0
je 0x416d16
cmp dword [edi + 0x18], 0
je 0x416d16
cmp dword [edi + 0x1c], 0
je 0x416d16
cmp dword [edi + 0x20], 0
je 0x416d16
cmp dword [edi + 0x24], 0
je 0x416d16
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x41a4c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4505a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004330cb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00431cee
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x42a9e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452c4e
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 0x42abe1
mov dword [ebp - 0xac], 0
push 0x80
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00437ab0
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 0x42abdf
mov byte [ebp - 0x91], 1
push 0x18
call fcn.004330cb
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 0x42aac2
mov eax, dword [edi]
jmp 0x42aac4
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x90], cx
jne 0x42aad6
xor eax, eax
jmp 0x42aaef
lea eax, [ebp - 0x90]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aae0
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 0x42ab61
mov ecx, dword [esi]
lea edx, [ebp - 0x9c]
cmp ecx, edx
ja 0x42ab61
mov edi, edx
sub edi, ecx
sar edi, 3
cmp eax, dword [esi + 8]
jne 0x42ab53
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 0x42ab81
jmp 0x42ab7b
cmp eax, dword [esi + 8]
jne 0x42ab6e
push ecx
mov ecx, esi
call fcn.004057f0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42ab81
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 0x42abb4
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x42abb4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x42abb4
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 0x42aa86
mov al, byte [ebp - 0x91]
jmp 0x42abe1
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.00433092
mov esp, ebp
pop ebp
ret 8
Function at 0x42aef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452cf0
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 0x42b06d
mov ebx, dword [edi]
mov esi, dword [ebx + 0x54]
mov ebx, dword [ebx + 0x58]
cmp esi, ebx
je 0x42b062
mov ecx, dword [esi]
cmp byte [ecx], 1
jne 0x42b054
lea eax, [ebp - 0x28]
push eax
call fcn.00425aa0
push eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
push dword [edi]
push dword [ebp - 0x64]
call fcn.00429c10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42af86
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.00425ae0
mov dword [ebp - 0x5c], eax
cmp dword [eax + 0x14], 8
jb 0x42afb3
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 0x42b00f
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 0x42b024
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 0x42b054
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040d960
add esi, 8
cmp esi, ebx
jne 0x42af44
mov eax, dword [ebp - 0x68]
add edi, 8
cmp edi, eax
jne 0x42af34
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.00433092
mov esp, ebp
pop ebp
ret 8
Function at 0x42c050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452e28
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 0x42c120
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 0x42c117
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42c117
push eax
lea ecx, [ebp - 0x20]
call fcn.00423eb0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub eax, edi
jne 0x42c0e2
push str.invalid_vector_T__subscript
call fcn.004313d7
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 0x42c10f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffffe
add eax, edi
push eax
push edi
call fcn.00423f00
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 0x42e610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453090
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 0x42e69f
push 0x46dcf8
call fcn.00433240
add esp, 4
cmp dword [0x46dcf8], 0xffffffff
jne 0x42e69f
xor eax, eax
mov dword [0x46dd10], 7
push 0x454100
mov dword [0x46dd0c], 0
mov word [0x46dcfc], ax
call fcn.004335b4
push 0x46dcf8
call fcn.00433201
add esp, 8
mov dword [ebp - 4], 0
cmp dword [0x46dd0c], 0
jne 0x42e714
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00437ab0
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 0x42e714
cmp word [ebp - 0x21c], 0
jne 0x42e6ea
xor ecx, ecx
jmp 0x42e702
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e6f3
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.00433092
mov esp, ebp
pop ebp
ret
Function at 0x42e9d0
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 0x42ea37
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
test eax, eax
je 0x42ea30
push edi
push 0x40000000
push 0x462a74
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x42ea28
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 0x42ebe0
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.00437ab0
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 0x42ec6a
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 0x42ed4d
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x42ed4c
push esi
mov esi, 2
call fcn.00430980
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 0x462a74
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x42ed48
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 0x42ed45
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.00433092
mov esp, ebp
pop ebp
ret
Function at 0x42ed60
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 0x42edf7
push esi
push 0x10024
push 0x462a74
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42edef
push 0x46d4a4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42ede1
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 0x42ede0
nop
cmp dword [0x46d4a8], 3
jne 0x42ede0
push 0x3e8
call ebx
push 0x46d4a4
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42edc0
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 0x42ee00
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 0x42ef59
push 0x53c
push 0
push esi
call fcn.00437ab0
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 0x42ef59
call fcn.00430bf0
mov word [esi + 0x538], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push esi
push 0x42eac0
push 0x462a74
mov word [esi + 0x53a], ax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [esi + 0x414], eax
test eax, eax
je 0x42ef59
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 0x42ef59
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push 0
push 0
push 0x23
push 0
call edi
test eax, eax
js 0x42ef59
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.CanonIJPLM
push esi
call ebx
test eax, eax
je 0x42ef59
mov ecx, esi
call fcn.00430b70
test eax, eax
je 0x42ef59
lea eax, [esi + 0x20a]
push eax
push 0
push 0
push 0x26
push 0
call edi
test eax, eax
js 0x42ef59
push str.CanonIJPLMIJPLMUI.EXE
lea eax, [esi + 0x20a]
push eax
call ebx
test eax, eax
je 0x42ef59
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x418], eax
test eax, eax
je 0x42ef59
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov ecx, esi
call fcn.0042ef70
pop edi
pop esi
xor eax, eax
pop ebx
ret