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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x228
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esp], 0x1001a0a0
call ebx
sub esp, 4
test esi, esi
je 0x1000f408
cmp dword [0x10021004], esi
jb 0x1000f408
mov eax, dword [0x10021008]
mov esi, dword [eax + esi*4 - 4]
mov dword [esp], 0x1001a0a0
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [ebp - 0x220], eax
call eax
sub esp, 4
test esi, esi
je 0x1000f418
mov dword [ebp - 0x218], 0x104
mov esi, dword [esi]
test esi, esi
je 0x1000f418
mov dword [esp], 0x1001a060
call ebx
xor edx, edx
mov eax, esi
sub esp, 4
call fcn.1000b060
mov ebx, eax
test eax, eax
je 0x1000f274
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
test edx, edx
je 0x1000f180
test ecx, ecx
je 0x1000f448
lea esi, [esi]
mov eax, edx
mov edx, dword [edx + 4]
test edx, edx
jne 0x1000f168
mov edx, dword [eax]
jmp 0x1000f44a
mov edx, dword [eax]
test ecx, ecx
je 0x1000f44a
test edx, edx
je 0x1000f438
cmp eax, dword [edx + 4]
je 0x1000f670
mov dword [edx + 8], ecx
mov eax, ebx
mov edx, dword [eax]
mov dword [ecx], edx
test byte [eax + 0xc], 1
jne 0x1000f470
mov dword [ebp - 0x228], 0
cmp ebx, eax
je 0x1000f226
mov edi, dword [ebx]
mov dword [eax], edi
mov dword [ebp - 0x224], edi
mov edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ebx + 8]
mov dword [eax + 8], edi
mov edi, dword [ebx + 0xc]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x1000f5e0
mov edi, dword [ebp - 0x224]
cmp ebx, dword [edi + 4]
je 0x1000f660
mov edi, dword [ebp - 0x224]
mov dword [edi + 8], eax
mov edi, dword [eax + 8]
test edi, edi
je 0x1000f207
mov dword [edi], eax
mov edi, dword [eax + 4]
test edi, edi
je 0x1000f5f0
mov dword [edi], eax
cmp ebx, edx
je 0x1000f5f8
mov eax, dword [ebp - 0x228]
test eax, eax
jne 0x1000f248
test edx, edx
je 0x1000f783
test ecx, ecx
je 0x1000f490
test byte [ecx + 0xc], 1
je 0x1000f490
and dword [ecx + 0xc], 0xfffffffe
lea esi, [esi]
mov eax, dword [0x1001a024]
test eax, eax
je 0x1000f255
and dword [eax + 0xc], 0xfffffffe
lock sub dword [ebx + 0x14], 1
jne 0x1000f274
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], 0x1001a060
mov eax, dword [ebp - 0x220]
lea edi, [ebp - 0x21c]
call eax
mov ebx, dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov dword [esp], 0x80000002
call ebx
sub esp, 0xc
test eax, eax
je 0x1000f3d8
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov dword [esp], 0x80000001
call ebx
sub esp, 0xc
test eax, eax
je 0x1000f3a8
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionPrinterPorts
mov dword [esp], 0x80000001
call ebx
sub esp, 0xc
test eax, eax
je 0x1000f378
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x218]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.10003310
lea edx, [ebp - 0x214]
sub esp, 8
test eax, eax
jne 0x1000f330
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 4], esi
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x1000f317
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov dword [esp], 0x80000001
call ebx
sub esp, 0xc
test eax, eax
je 0x1000f610
mov dword [esp], 0
call sym.winspool.drv_SetDefaultPrinterW
sub esp, 4
jmp 0x1000f317
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x21c]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000f2f2
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x21c]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000f2d2
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov eax, dword [ebp - 0x21c]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000f2b2
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 6
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [0x1001a024], ecx
jmp 0x1000f19e
mov edx, dword [eax]
mov ecx, dword [eax + 8]
test edx, edx
je 0x1000f778
cmp eax, dword [edx + 4]
je 0x1000f648
mov dword [edx + 8], ecx
mov edx, dword [eax]
test ecx, ecx
je 0x1000f1a4
jmp 0x1000f1a0
mov dword [ebp - 0x228], 1
cmp ebx, eax
jne 0x1000f1bc
jmp 0x1000f248
mov eax, dword [edx + 4]
cmp eax, ecx
je 0x1000f680
test eax, eax
je 0x1000f801
mov ecx, dword [eax + 0xc]
test cl, 1
je 0x1000f4e6
and ecx, 0xfffffffe
mov dword [eax + 0xc], ecx
mov ecx, dword [edx]
or dword [edx + 0xc], 1
mov eax, dword [edx + 4]
test ecx, ecx
je 0x1000f7b3
cmp dword [ecx + 4], edx
je 0x1000f7cc
mov dword [ecx + 8], eax
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
test ecx, ecx
je 0x1000f4da
mov dword [ecx], edx
mov dword [eax + 8], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov eax, dword [edx + 4]
mov edi, dword [eax + 4]
test edi, edi
je 0x1000f550
test byte [edi + 0xc], 1
je 0x1000f550
mov ecx, dword [eax + 0xc]
mov edi, dword [edx + 0xc]
and ecx, 0xfffffffe
and edi, 1
or ecx, edi
mov dword [eax + 0xc], ecx
and dword [edx + 0xc], 0xfffffffe
mov eax, dword [eax + 4]
test eax, eax
je 0x1000f513
and dword [eax + 0xc], 0xfffffffe
mov ecx, dword [edx]
mov eax, dword [edx + 4]
test ecx, ecx
je 0x1000f650
cmp dword [ecx + 4], edx
je 0x1000f7a0
mov dword [ecx + 8], eax
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
test ecx, ecx
je 0x1000f538
mov dword [ecx], edx
mov dword [eax + 8], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
jmp 0x1000f248
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1000f5c0
test byte [ecx + 0xc], 1
je 0x1000f5c0
test edi, edi
jne 0x1000f790
and dword [ecx + 0xc], 0xfffffffe
mov ecx, dword [eax]
or dword [eax + 0xc], 1
mov edi, dword [eax + 8]
test ecx, ecx
je 0x1000f7a8
cmp eax, dword [ecx + 4]
je 0x1000f7bd
mov dword [ecx + 8], edi
mov ecx, dword [edi + 4]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x1000f592
mov dword [ecx], eax
mov dword [edi + 4], eax
mov ecx, dword [eax]
mov dword [edi], ecx
mov dword [eax], edi
mov eax, dword [edx + 4]
jmp 0x1000f4f3
mov edi, dword [eax + 8]
test edi, edi
je 0x1000f5c0
test byte [edi + 0xc], 1
jne 0x1000f6ea
lea esi, [esi]
or dword [eax + 0xc], 1
mov ecx, edx
mov eax, dword [edx]
test eax, eax
je 0x1000f240
mov edx, eax
jmp 0x1000f236
mov dword [0x1001a024], eax
jmp 0x1000f1fe
cmp ebx, edx
jne 0x1000f21c
mov edx, dword [ebp - 0x228]
test edx, edx
jne 0x1000f248
mov edx, eax
jmp 0x1000f22e
mov dword [esp + 4], str.device
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x21c]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000f361
mov dword [edx + 4], ecx
jmp 0x1000f461
mov dword [0x1001a024], eax
jmp 0x1000f52c
mov dword [edi + 4], eax
jmp 0x1000f1fe
mov dword [edx + 4], ecx
jmp 0x1000f19e
mov eax, dword [edx + 8]
test eax, eax
je 0x1000f801
mov ecx, dword [eax + 0xc]
test cl, 1
je 0x1000f6ce
and ecx, 0xfffffffe
mov dword [eax + 0xc], ecx
mov ecx, dword [edx]
or dword [edx + 0xc], 1
mov eax, dword [edx + 8]
test ecx, ecx
je 0x1000f7e7
cmp dword [ecx + 4], edx
je 0x1000f7f9
mov dword [ecx + 8], eax
mov ecx, dword [eax + 4]
mov dword [edx + 8], ecx
test ecx, ecx
je 0x1000f6c2
mov dword [ecx], edx
mov dword [eax + 4], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov eax, dword [edx + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1000f5a8
test byte [ecx + 0xc], 1
je 0x1000f5a8
mov edi, dword [eax + 8]
test edi, edi
je 0x1000f6f0
test byte [edi + 0xc], 1
jne 0x1000f729
and dword [ecx + 0xc], 0xfffffffe
mov ecx, dword [eax]
or dword [eax + 0xc], 1
mov edi, dword [eax + 4]
test ecx, ecx
je 0x1000f7dc
cmp eax, dword [ecx + 4]
je 0x1000f7f1
mov dword [ecx + 8], edi
mov ecx, dword [edi + 8]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x1000f71d
mov dword [ecx], eax
mov dword [edi + 8], eax
mov ecx, dword [eax]
mov dword [edi], ecx
mov dword [eax], edi
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xc]
mov edi, dword [edx + 0xc]
and ecx, 0xfffffffe
and edi, 1
or ecx, edi
mov dword [eax + 0xc], ecx
and dword [edx + 0xc], 0xfffffffe
mov eax, dword [eax + 8]
test eax, eax
je 0x1000f749
and dword [eax + 0xc], 0xfffffffe
mov ecx, dword [edx]
mov eax, dword [edx + 8]
test ecx, ecx
je 0x1000f7c5
cmp dword [ecx + 4], edx
je 0x1000f7d4
mov dword [ecx + 8], eax
mov ecx, dword [eax + 4]
mov dword [edx + 8], ecx
test ecx, ecx
je 0x1000f766
mov dword [ecx], edx
mov dword [eax + 4], edx
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
jmp 0x1000f248
mov dword [0x1001a024], ecx
jmp 0x1000f461
test ecx, ecx
je 0x1000f248
jmp 0x1000f240
test byte [edi + 0xc], 1
je 0x1000f565
jmp 0x1000f4f3
mov dword [ecx + 4], eax
jmp 0x1000f52c
mov dword [0x1001a024], edi
jmp 0x1000f586
mov dword [0x1001a024], eax
jmp 0x1000f4ce
mov dword [ecx + 4], edi
jmp 0x1000f586
mov dword [0x1001a024], eax
jmp 0x1000f75a
mov dword [ecx + 4], eax
jmp 0x1000f4ce
mov dword [ecx + 4], eax
jmp 0x1000f75a
mov dword [0x1001a024], edi
jmp 0x1000f711
mov dword [0x1001a024], eax
jmp 0x1000f6b6
mov dword [ecx + 4], edi
jmp 0x1000f711
mov dword [ecx + 4], eax
jmp 0x1000f6b6
mov eax, dword [4]
ud2