Function at 0x40e7b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413188
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x41907c]
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]
xor ebx, ebx
mov edi, 7
xor edx, edx
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2c0], ebx
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x2a8], ebx
mov word [ebp - 0x2b8], dx
mov dword [ebp - 4], ebx
push str.kernel32
mov dword [ebp - 0x2bc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40ea00
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40e855
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40ea00
cmp dword [ebp - 0x2bc], 1
jne 0x40ea00
xor ecx, ecx
push 0x10
mov eax, str.UseSTIProxyEvent
lea esi, [ebp - 0x264]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x264], cx
call fcn.004012f0
mov byte [ebp - 4], 1
xor edx, edx
push 1
mov eax, 0x4167cc
lea esi, [ebp - 0x22c]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], dx
call fcn.004012f0
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x248], ax
push 0x25
mov eax, str.SOFTWAREWow6432NodeCanonSateraMFP1
lea esi, [ebp - 0x248]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], ebx
call fcn.004012f0
lea ecx, [ebp - 0x280]
push ecx
lea eax, [ebp - 0x22c]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004033b0
mov ecx, eax
lea edx, [ebp - 0x29c]
push edx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 4
call fcn.004033b0
add esp, 8
mov edi, eax
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 5
call fcn.00401870
mov edi, 8
cmp dword [ebp - 0x288], edi
jb 0x40e93f
mov eax, dword [ebp - 0x29c]
push eax
call fcn.00403d7c
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x28c], ebx
mov word [ebp - 0x29c], cx
cmp dword [ebp - 0x26c], edi
jb 0x40e970
mov edx, dword [ebp - 0x280]
push edx
call fcn.00403d7c
add esp, 4
xor eax, eax
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], ax
cmp dword [ebp - 0x234], edi
jb 0x40e99c
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.00403d7c
add esp, 4
xor edx, edx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], dx
cmp dword [ebp - 0x218], edi
jb 0x40e9c8
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00403d7c
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], cx
cmp dword [ebp - 0x250], edi
jb 0x40eb97
mov edx, dword [ebp - 0x264]
push edx
call fcn.00403d7c
add esp, 4
jmp 0x40eb97
xor eax, eax
mov word [ebp - 0x264], ax
push 0x10
mov eax, str.UseSTIProxyEvent
lea esi, [ebp - 0x264]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], ebx
call fcn.004012f0
mov byte [ebp - 4], 6
xor ecx, ecx
push 1
mov eax, 0x4167cc
lea esi, [ebp - 0x248]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], cx
call fcn.004012f0
mov byte [ebp - 4], 7
xor edx, edx
push 0x19
mov eax, str.SOFTWARECanonSateraMFP1
lea esi, [ebp - 0x22c]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], dx
call fcn.004012f0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x248]
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.004033b0
mov ecx, eax
lea edx, [ebp - 0x280]
push edx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 9
call fcn.004033b0
add esp, 8
mov edi, eax
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 0xa
call fcn.00401870
mov esi, 8
cmp dword [ebp - 0x26c], esi
jb 0x40eadd
mov eax, dword [ebp - 0x280]
push eax
call fcn.00403d7c
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], cx
cmp dword [ebp - 0x288], esi
jb 0x40eb0e
mov edx, dword [ebp - 0x29c]
push edx
call fcn.00403d7c
add esp, 4
xor eax, eax
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x28c], ebx
mov word [ebp - 0x29c], ax
cmp dword [ebp - 0x218], esi
jb 0x40eb3a
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00403d7c
add esp, 4
xor edx, edx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], dx
cmp dword [ebp - 0x234], esi
jb 0x40eb66
mov eax, dword [ebp - 0x248]
push eax
call fcn.00403d7c
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], cx
cmp dword [ebp - 0x250], esi
jb 0x40eb95
mov edx, dword [ebp - 0x264]
push edx
call fcn.00403d7c
add esp, 4
mov edi, esi
mov eax, dword [ebp - 0x2b8]
cmp dword [ebp - 0x2a4], edi
jae 0x40ebab
lea eax, [ebp - 0x2b8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x2c0]
push ecx
push 0x2001f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40eca0
mov eax, dword [ebp - 0x2c4]
cmp dword [eax + 0x14], edi
jb 0x40ebdb
mov eax, dword [eax]
mov edx, dword [ebp - 0x2c0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
push edx
call edi
push 0x1fe
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x210], ax
call fcn.00404910
mov ecx, dword [ebp - 0x2c0]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x210]
push eax
push ebx
push ecx
mov dword [ebp - 0x2c4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40ec9b
mov edx, dword [ebp - 0x2c8]
mov dword [edx], 1
mov dword [ebp - 0x2bc], ebx
call fcn.0040e1b0
cmp eax, 1
jne 0x40ec67
lea eax, [ebp - 0x2bc]
push eax
push 0x2001f
push ebx
push str.SOFTWAREWow6432NodeCanonSateraMFP1
jmp 0x40ec79
lea ecx, [ebp - 0x2bc]
push ecx
push 0x2001f
push ebx
push str.SOFTWARECanonSateraMFP1
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edx, dword [ebp - 0x2bc]
push str.UseSTIProxyEvent
push edx
call edi
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
mov ecx, dword [ebp - 0x2c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x2a4], edi
jb 0x40ecca
mov edx, dword [ebp - 0x2b8]
push edx
call fcn.00403d7c
add esp, 4
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.0040366e
mov esp, ebp
pop ebp
ret