Function at 0x10016f0a
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x1002d200]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x1002d204], 0xa
setl al
or al, cl
push eax
sub esp, 0x208
mov esi, esp
test al, al
je 0x10016f2e
push eax
mov edi, esp
push 1
push str.USBSafeManager
call fcn.10007e22
add esp, 8
cmp dword [0x1002d204], 0xa
mov dword [ebp - 0x10], edi
jl 0x10016fc7
mov ecx, dword [0x1002d200]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x10016fc7
xor ebx, ebx
inc ebx
mov edi, str.USBSafeManager
push ebx
push edi
call fcn.10007e22
add esp, 8
push ebx
push edi
call fcn.10007e22
add esp, 8
cmp dword [0x1002d204], 0xa
jl 0x10016f9e
mov eax, dword [0x1002d200]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, ebx
jne 0x10016f72
push 1
push str.USBSafeManager
call fcn.10007e22
add esp, 8
cmp dword [0x1002d204], 0xa
jl 0x10016fc7
mov ecx, dword [0x1002d200]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
jne 0x10016f72
test eax, eax
je 0x100171d3
cmp dword [0x1002cd84], 0
je 0x100170aa
xor ebx, ebx
push 0x10027898
push ebx
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push str._s_s_c_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov edi, dword [ebp - 0x10]
mov dword [edi], ebx
cmp dword [0x1002d204], 0xa
jl 0x1001701b
mov eax, dword [0x1002d200]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x10017061
sub esp, 0x24
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x10024360]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], VariantClear
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [0x1002d204], 0xa
jl 0x10017091
mov ecx, dword [0x1002d200]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x10017091
sub esp, 0x24
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x10024360]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], VariantClear
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x1001701b
test eax, eax
jne 0x100170aa
push str.USBSafeManager
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.USBSafeManagerGrp
push 0x5c
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push str._s_s_c_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [0x1002d204], 0xa
jl 0x10017119
mov eax, dword [0x1002d200]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10017119
push 0x10027898
push str.USBSafeManager
push str.Services_
push str.SYSTEMCurrentControlSet_s_s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x10027898
push str.USBSafeManager
push str.Services_
push str.SYSTEMCurrentControlSet_s_s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [0x1002d204], 0xa
jl 0x100171d3
mov eax, dword [0x1002d200]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x100171d3
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 0x10027898
push eax
mov eax, str.USBSafeManager
push eax
mov eax, str.Services_
push eax
mov eax, str.SYSTEMCurrentControlSet_s_s_s
push eax
push esi
call edi
add esp, 0x14
push esi
mov eax, 0x80000002
push eax
call ebx
mov eax, 0x10027898
push eax
mov eax, str.USBSafeManager
push eax
mov eax, str.Services_
push eax
mov eax, str.SYSTEMCurrentControlSet_s_s_s
push eax
push esi
call edi
add esp, 0x14
push esi
mov eax, 0x80000002
push eax
call ebx
cmp dword [0x1002d204], 0xa
jl 0x100171d3
mov eax, dword [0x1002d200]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x1001716c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret