Function at 0x10004120
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018420
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10021004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004170
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.100055b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x2d
xor eax, eax
mov dword [ebp - 0x18], 0
push str.SystemCurrentControlSetServiceskernelquick
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.100055b0
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100041d6
mov ecx, edi
call fcn.10003bd0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100041d6
push 0x1001ed7c
jmp 0x100043f0
mov esi, dword [ebp + 8]
cmp esi, 6
je 0x100043f9
cmp esi, 7
je 0x100043f9
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp esi, 8
ja case.default.0x1000421e
jmp dword [esi*4 + 0x100044a0]
mov ecx, edi
call fcn.10003bd0
mov edx, 2
mov ecx, eax
call fcn.100022b0
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100043dc
push 0x1001edf0
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100043ce
mov ecx, edi
call fcn.10003bd0
mov edx, 3
mov ecx, eax
call fcn.100022b0
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100043dc
push 0x1001ee20
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100043ce
mov ecx, edi
call fcn.10003bd0
xor edx, edx
mov ecx, eax
call fcn.100022b0
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100043dc
push 0x1001ee50
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100043ce
mov ecx, edi
call fcn.10003bd0
mov edx, 1
mov ecx, eax
call fcn.100022b0
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100043dc
push 0x1001ee80
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100043ce
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.1000c383
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.10003bd0
xor ecx, ecx
mov dword [ebp - 0x34], 6
push ecx
mov word [ebp - 0x30], cx
lea ecx, [ebp - 0x64]
push ecx
push 0x10
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2c], esi
push ecx
push 0xc
lea ecx, [ebp - 0x34]
push ecx
push 0x222120
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1000434a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
shld eax, esi, 1
add esi, esi
jmp 0x100043ce
cmp dword [ebp - 0x64], 0x10
je 0x10004357
mov esi, 0xae
jmp 0x100043ce
mov esi, dword [ebp - 0x5c]
test esi, esi
jns 0x10004368
xor eax, eax
shld eax, esi, 1
add esi, esi
jmp 0x100043ce
mov esi, 1
jmp 0x100043ce
mov ecx, edi
call fcn.10003bd0
mov edx, 6
mov ecx, eax
call fcn.10002440
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100043dc
push 0x1001eeb4
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100043ce
mov ecx, edi
call fcn.10003bd0
mov edx, 8
mov ecx, eax
call fcn.10002440
mov esi, eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100043dc
push str.KernelQuick_HideImages
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100043ce
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x100043dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and esi, 1
or esi, 0
jne 0x100043eb
push 0x1001ef1c
jmp 0x100043f0
push 0x1001ef30
push 2
mov ecx, edi
call fcn.10003900
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000442f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004425
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004496
push edx
push ecx
call fcn.1000673a
add esp, 8
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x10004479
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000446f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000449b
push edx
push ecx
call fcn.1000673a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10006729
mov esp, ebp
pop ebp
ret 8
call fcn.1000c566
call fcn.1000c566
and eax, 0x56100042
inc edx
add byte [eax], dl
xchg dword [edx], eax
adc byte [ebp - 435158974], dh
inc edx
add byte [eax], dl
outsd dx, dword [esi]
inc ebx
add byte [eax], dl
cdq
inc ebx
add byte [eax], dl
cdq
inc ebx
add byte [eax], dl
ret