joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409430
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x49d2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
mov eax, dword [ebx + 0x5c]
push eax
lea edi, [ebx + 0xc8]
push ebx
mov ecx, edi
mov edx, ebp
call fcn.0040a280
cmp eax, 3
mov dword [ebx + 0x78], eax
jne 0x409490
mov eax, 2
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x44
ret 8
cmp eax, 1
je 0x409512
mov ecx, dword [ebx + 0x5c]
mov edx, ebp
call fcn.00413000
xor ebp, ebp
push ebp
push 0x4a9c14
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], bp
call fcn.00401c20
mov dword [esp + 0x50], ebp
mov eax, dword [ebx + 0x78]
mov dword [ebx + 0x70], eax
add eax, 0xfffffffe
cmp eax, 0xa
ja 0x4094e4
mov ecx, esi
push ecx
lea edx, [ebx + 0x118]
push edi
mov ecx, eax
call fcn.0040d380
cmp dword [esp + 0x28], 8
jb 0x4094f8
mov edx, dword [esp + 0x14]
push edx
call fcn.0045a870
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x44
ret 8
lea ecx, [ebx + 0x100]
call fcn.00419360
mov ecx, dword [ebx + 0x5c]
mov dword [ebx + 0x114], eax
mov eax, dword [ebx + 0x6c]
push eax
push ebp
push ecx
lea esi, [esp + 0x1c]
call fcn.00413740
add esp, 0xc
push 0xffffffffffffffff
xor esi, esi
push esi
lea ecx, [ebx + 0xac]
mov dword [esp + 0x58], 1
call fcn.00401b70
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x40956c
mov eax, dword [esp + 0x14]
push eax
call fcn.0045a870
add esp, 4
mov ecx, dword [0x4c83fc]
cmp ecx, esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
je 0x409595
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x4c83fc], esi
mov edx, dword [esp + 0x5c]
lea ecx, [ebx + 0xe4]
push ecx
push edx
mov ecx, ebx
call fcn.0040a0d0
cmp eax, 7
mov dword [ebx + 0x74], eax
jne 0x409621
mov ecx, dword [ebx + 0x5c]
mov edx, ebp
call fcn.00413000
mov edx, 0x4a9c14
lea eax, [esp + 0x2c]
call fcn.004015e0
mov dword [esp + 0x50], 2
mov eax, dword [ebx + 0x74]
lea ecx, [eax - 2]
cmp ecx, 0xa
mov dword [ebx + 0x70], eax
ja 0x4095ef
lea eax, [esp + 0x2c]
push eax
lea edx, [ebx + 0x118]
push edi
call fcn.0040d380
cmp dword [esp + 0x44], 8
jb 0x4094f8
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0045a870
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x44
ret 8
cmp eax, 1
jne 0x409651
lea ecx, [ebx + 0x100]
call fcn.00419360
add dword [ebx + 0x114], eax
mov eax, 6
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x44
ret 8
mov eax, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x44
ret 8
Function at 0x411e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49db73
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x74]
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x24], vtable.CAUUCDiffList.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], ebx
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x411e66
call fcn.00478a25
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x411e73
call fcn.00478a25
cmp edi, esi
je 0x411f79
cmp edi, dword [ebp + 8]
jb 0x411e85
call fcn.00478a25
cmp dword [edi + 0xe4], 1
jne 0x411f64
cmp edi, dword [ebp + 8]
jb 0x411e9c
call fcn.00478a25
push 0xffffffffffffffff
mov esi, vtable.CAUVersion.0
push ebx
lea eax, [edi + 0x3c]
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00401b70
mov byte [esp + 0x64], 1
cmp edi, dword [ebp + 8]
jb 0x411ede
call fcn.00478a25
cmp edi, dword [ebp + 8]
jb 0x411ede
call fcn.00478a25
push 0x7c
mov dword [esp + 0x20], vtable.CAUUCDiffItem.0
call fcn.0045a845
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x64], 2
je 0x411f16
mov edx, dword [esp + 0x78]
push 1
lea ecx, [esp + 0x3c]
push ecx
push edx
lea ecx, [edi + 0x1c]
push ecx
push edi
push eax
call fcn.00415d70
jmp 0x411f18
xor eax, eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x64], 4
cmp dword [esp + 0x54], 8
mov dword [esp + 0x38], esi
jb 0x411f39
mov edx, dword [esp + 0x40]
push edx
call fcn.0045a870
add esp, 4
lea eax, [esp + 0x1c]
lea esi, [esp + 0x28]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
call fcn.004131b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], bl
call fcn.00415d50
cmp edi, dword [ebp + 8]
jb 0x411f6e
call fcn.00478a25
add edi, 0x104
jmp 0x411e66
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x84]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x38]
push ebp
push edx
mov edx, dword [esp + 0x94]
call fcn.00412010
add esp, 0x1c
test al, al
je 0x411fd8
mov eax, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x28]
call fcn.00412cd0
mov esi, dword [esp + 0x78]
add esp, 4
jmp 0x411fdd
mov esi, 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x64], 0xffffffff
call fcn.004160a0
mov eax, esi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x412ac0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49d9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x58], eax
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], eax
mov word [esp + 0x50], ax
mov byte [esp + 0x74], 1
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x412b40
call fcn.00478a25
mov ebp, edi
mov dword [esp + 0x20], ebp
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [esp + 0x28], eax
jbe 0x412b57
call fcn.00478a25
test ebp, ebp
je 0x412b5f
cmp ebp, edi
je 0x412b64
call fcn.00478a25
cmp esi, dword [esp + 0x28]
je 0x412c7a
test ebp, ebp
jne 0x412b77
call fcn.00478a25
cmp esi, dword [ebp + 8]
jb 0x412b81
call fcn.00478a25
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push ebx
push edx
mov ecx, esi
call fcn.00412e30
add esp, 0xc
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 2
call fcn.00401b70
mov ebp, 8
mov byte [esp + 0x74], 1
cmp dword [esp + 0x48], ebp
jb 0x412bc5
mov eax, dword [esp + 0x34]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x50]
jae 0x412bd3
lea ebp, [esp + 0x50]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412bee
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
cmp al, 1
jne 0x412c08
mov ecx, dword [esp + 0x20]
cmp esi, dword [ecx + 8]
jb 0x412bfc
call fcn.00478a25
mov ebp, dword [esp + 0x20]
add esi, 0x1c
jmp 0x412b46
push 0x94
call fcn.0045a845
add esp, 4
test eax, eax
je 0x412c22
call fcn.00443f10
mov ebp, eax
jmp 0x412c24
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x14], edi
push ebp
lea eax, [esp + 0x50]
mov byte [esp + 0x78], 3
call fcn.00444010
test eax, eax
jne 0x412c47
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x20]
cmp esi, dword [edx + 8]
jb 0x412c55
call fcn.00478a25
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
mov eax, esi
call fcn.00401b70
test edi, edi
je 0x412c93
mov esi, edi
call fcn.00443f60
push edi
call fcn.0045a870
add esp, 4
jmp 0x412c93
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
mov eax, ebx
call fcn.00401b70
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
cmp dword [esp + 0x64], 8
jb 0x412ca7
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00478599
add esp, 0x68
ret
Function at 0x416120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49b398
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov esi, ecx
mov ebx, dword [esi + 8]
add esi, 4
cmp ebx, dword [esi + 8]
jbe 0x41615d
call fcn.00478a25
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x41616a
call fcn.00478a25
mov dword [esp + 0x1c], edi
mov edi, edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x41617d
call fcn.00478a25
cmp esi, esi
je 0x416186
call fcn.00478a25
cmp ebx, edi
je 0x4161f4
cmp ebx, dword [esi + 8]
jb 0x416194
call fcn.00478a25
mov ecx, dword [ebx + 4]
add dword [ecx + 0x78], 1
mov dword [esp + 0x20], vtable.CAUUCDiffItem.0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], 0
cmp dword [ebp + 0x18], 8
mov edi, dword [ebp + 0x14]
jb 0x4161bd
mov eax, dword [ebp + 4]
jmp 0x4161c0
lea eax, [ebp + 4]
push eax
mov eax, dword [ecx + 0x14]
call fcn.0040e760
test eax, eax
jne 0x4161d1
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esi + 8]
jb 0x4161db
call fcn.00478a25
lea ecx, [esp + 0x20]
add ebx, 8
mov dword [esp + 0x34], 0xffffffff
call fcn.00415d50
jmp 0x416170
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x416201
call fcn.00478a25
mov ebx, esi
test ebx, ebx
je 0x41620b
cmp ebx, esi
je 0x416210
call fcn.00478a25
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x416262
mov eax, dword [esp + 0x44]
cmp dword [eax + 0x18], 8
mov edi, dword [eax + 0x14]
jb 0x41622a
mov eax, dword [eax + 4]
jmp 0x41622d
add eax, 4
push eax
mov eax, dword [ebp + 0x14]
mov ecx, ebp
call fcn.0040e760
test eax, eax
jne 0x416257
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x416249
call fcn.00478a25
mov eax, dword [esp + 0x3c]
push edi
push esi
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x416291
mov eax, dword [esp + 0x3c]
call fcn.004131b0
jmp 0x416298
test ebx, ebx
mov dword [esp + 0x24], eax
jne 0x41626f
call fcn.00478a25
mov edi, dword [esp + 0x1c]
add edi, 8
cmp edi, dword [ebx + 8]
ja 0x416280
cmp edi, dword [ebx + 4]
jae 0x416285
call fcn.00478a25
mov edx, dword [esp + 0x3c]
push edi
push ebx
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, esi
call fcn.00413250
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x416630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49fad8
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 0xffffffffffffffff
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esi + 0xc]
call fcn.00401b70
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x68]
cmp edi, ecx
mov dword [esp + 0x24], ebx
je 0x416690
cmp ecx, ebx
je 0x416690
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x6c]
mov dword [esi + 0x68], edi
call fcn.00401b70
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x88], ecx
mov ecx, dword [0x4c8544]
cmp ecx, ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x30], 6
mov dword [esi + 0x8c], edx
jne 0x4166ed
push 4
call fcn.0045a845
add esp, 4
cmp eax, ebx
je 0x4166e3
mov dword [eax], vtable.CWinAUSystemUtil.0
jmp 0x4166e5
xor eax, eax
mov ecx, eax
mov dword [0x4c8544], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push esi
push 0x416730
call edx
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x41aa70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49b29b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, 7
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], bx
call fcn.00401b70
mov eax, dword [esp + 0x40]
mov byte [esp + 0x30], 1
mov ecx, edi
lea edx, [esp + 0xc]
mov dword [esi + 0x38], 4
mov dword [esi + 0x3c], eax
call fcn.00432a50
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.00401b70
cmp dword [esp + 0x24], 8
jb 0x41ab08
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0045a870
add esp, 4
cmp edi, 0x87
mov byte [esi + 0x40], bl
mov eax, esi
jne 0x41ab19
mov byte [esi + 0x40], 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0xc

Function at 0x41adb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49c2a8
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
push edi
mov edx, ebx
mov ecx, ebp
call fcn.0041b870
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x18], 0
je 0x41ae1c
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push edi
push ebp
push ebx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esi + 4]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push eax
call fcn.0041aef0
add esp, 0x1c
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x41ae32
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x420ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49c089
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov word [esi + 4], bx
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push str.SOFTWARECanon_Inc_ICAuto_Update_Service_SharedInstall
mov dword [esp + 0x3c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x420ffa
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push str.Diff_Updater_exe_path
push edx
mov dword [esp + 0x2c], ebx
call ebp
cmp eax, ebx
jne 0x420fef
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a875
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push ebx
push edi
call fcn.0047dfc0
mov edx, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push ebx
push str.Diff_Updater_exe_path
push edx
call ebp
cmp eax, ebx
jne 0x420fe6
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420fd0
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401c20
push edi
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x421010
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49c089
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov word [esi + 4], bx
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push str.SOFTWARECanon_Inc_ICAuto_Update_Service_SharedInstall
mov dword [esp + 0x3c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42111a
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push str.AUWrapper_exe_path
push edx
mov dword [esp + 0x2c], ebx
call ebp
cmp eax, ebx
jne 0x42110f
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a875
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push ebx
push edi
call fcn.0047dfc0
mov edx, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push ebx
push str.AUWrapper_exe_path
push edx
call ebp
cmp eax, ebx
jne 0x421106
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4210f0
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401c20
push edi
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4268d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4268e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x426924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x426920
lea ebx, [ebx]
cmp esi, eax
jae 0x426924
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x426910
cmp esi, eax
jb 0x42692a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x42a900
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49a718
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0045acd4
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
call edi
push 0x21
mov ebp, eax
call edi
push 0x21
mov dword [esp + 0x18], eax
call edi
push 4
mov ebx, eax
call edi
mov ecx, dword [esp + 0x14]
add ebx, eax
push 1
lea ecx, [ebx + ecx + 0xbe]
push ecx
lea eax, [ebp + ebp + 0x14a]
push eax
push 0
push 0
mov ecx, esi
call fcn.004607d0
push 0
mov ecx, esi
call fcn.0045d325
cmp dword [esi + 0xfc], 8
jb 0x42a98f
mov eax, dword [esi + 0xe8]
jmp 0x42a995
lea eax, [esi + 0xe8]
push eax
mov ecx, esi
call fcn.00460774
push 0x3fb
mov ecx, esi
call fcn.00460672
lea ebp, [esi + 0x100]
test ebp, ebp
mov edi, eax
jne 0x42a9b9
xor eax, eax
jmp 0x42a9bc
mov eax, dword [ebp + 4]
mov edx, dword [edi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push edx
call ebx
push 1
push 0x1b
push 0xfc
push 0x36
push 0x27
mov ecx, edi
call fcn.004607d0
cmp dword [esi + 0xe0], 8
jb 0x42a9f2
mov eax, dword [esi + 0xcc]
jmp 0x42a9f8
lea eax, [esi + 0xcc]
push eax
mov ecx, edi
call fcn.00460774
push 2
mov ecx, esi
call fcn.00460672
test ebp, ebp
mov edi, eax
je 0x42aa12
mov ebp, dword [ebp + 4]
mov eax, dword [edi + 0x20]
push 1
push ebp
push 0x30
push eax
call ebx
push 1
push 0x17
push 0x4b
push 0x8c
push 0xc5
mov ecx, edi
call fcn.004607d0
mov ecx, 0x75
lea edx, [esp + 0x18]
call fcn.00432a50
xor ebp, ebp
mov dword [esp + 0x40], ebp
cmp dword [eax + 0x18], 8
jb 0x42aa53
mov eax, dword [eax + 4]
jmp 0x42aa56
add eax, 4
push eax
mov ecx, edi
call fcn.00460774
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x42aa7a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0045a870
add esp, 4
lea edi, [esi + 0x74]
mov ecx, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], bp
call fcn.004606ec
push 1
push 0x14
push 0xfe
push 0x63
push 0x27
mov ecx, edi
call fcn.004607d0
push 7
push 8
push ebp
mov ecx, edi
call fcn.00460720
mov edx, dword [esi + 0x94]
push 0x64
push 1
push 0x40a
push edx
call ebx
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d130
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
sub esp, 0x34
test eax, eax
push edi
jne 0x42d202
mov eax, dword [esp + 0x3c]
push 0x2c
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esi + 4], eax
call fcn.0047dfc0
add esp, 0xc
push 0x4abde8
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x14], 0x42d280
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], str.Canon.IC.AutoUpdate.StartUpdateChecker
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x42d1e5
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push 0
push 0
push 0xfffffffffffffffd
push SysReAllocStringLen
push SysReAllocStringLen
push 0x11
call edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10
call edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x8000000
push 0
push str.Canon.IC.AutoUpdate.StartUpdateChecker
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
mov dword [esi], eax
jne 0x42d1ee
mov eax, dword [esp + 0x1c]
push eax
push str.Canon.IC.AutoUpdate.StartUpdateChecker
call dword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
pop edi
add esp, 0x34
ret 4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi]
pop edi
add esp, 0x34
ret 4

Function at 0x42d610
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor esi, esi
push esi
mov ebp, 1
push 0xd
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0xc], eax
je 0x42d6ad
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edx, dword [edi]
push edx
call ebx
test eax, eax
je 0x42d69a
push 0x1c
lea eax, [esp + 0x14]
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
push 0
push esi
call ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [edi]
push ecx
call ebx
test eax, eax
je 0x42d6c4
push 0x1c
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.USER32.dll_SendInput]
pop esi
pop ebp
pop ebx
add esp, 0x20
ret