Function at 0x1007f2e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e41d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.10080a60
mov ecx, esi
call fcn.1007f2c0
mov edi, dword [ebp - 0x28]
mov esi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
cmp esi, dword [ebp - 0x24]
je 0x1007f4ac
cmp dword [ecx + 0x14], 0xf
xorps xmm0, xmm0
mov edi, dword [ecx + 0x10]
mov edx, 0x16
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov eax, ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x14], ecx
jbe 0x1007f375
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp edi, 0x7fffffff
ja 0x1007f740
cmp edi, 0xf
ja 0x1007f399
movups xmm0, xmmword [eax]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0xf
movups xmmword [ebp - 0x58], xmm0
jmp 0x1007f409
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1007f3bd
mov eax, closesocket
mov esi, closesocket
push eax
call fcn.1004b7b0
add esp, 4
mov ecx, eax
jmp 0x1007f3ed
cmp esi, 0x16
cmovb esi, edx
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x1007f3da
push eax
call fcn.1004b7b0
add esp, 4
mov ecx, eax
jmp 0x1007f3ed
test eax, eax
je 0x1007f3eb
push eax
call fcn.10062e70
add esp, 4
mov ecx, eax
jmp 0x1007f3ed
xor ecx, ecx
lea eax, [edi + 1]
mov dword [ebp - 0x58], ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x48], edi
push ecx
mov dword [ebp - 0x44], esi
call fcn.100847e0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push 1
push 0x101f1170
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.100530d0
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1007f426
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.100530d0
mov ecx, dword [ebp - 0x10]
push dword [ecx + 0x24]
movzx eax, byte [ecx + 0x20]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ecx]
lea ecx, [ebp - 0x80]
call fcn.1007f200
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.1007f2e0
lea ecx, [ebp - 0x80]
call fcn.1007f260
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x1007f497
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f48d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f70c
push ecx
push edx
call fcn.100632cf
add esp, 8
mov ecx, dword [ebp - 0x1c]
add esi, 0x18
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x24]
jne 0x1007f348
mov edi, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.1006a550
mov esi, dword [ebp - 0x10]
add esp, 8
cmp dword [esi + 0x24], 0
je 0x1007f650
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x1007f642
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x1007f642
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push 0
cmova ecx, dword [ebp - 0x40]
push dword [eax + 0x24]
push ecx
push dword [eax]
call edx
test eax, eax
jne 0x1007f711
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x1007f578
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f56e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f70c
push ecx
push edx
call fcn.100632cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test edi, edi
je 0x1007f632
mov eax, dword [ebp - 0x24]
mov esi, edi
cmp esi, eax
je 0x1007f5ee
nop dword [eax]
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1007f5d6
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1007f5c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f70c
mov eax, edx
push ecx
push eax
call fcn.100632cf
mov eax, dword [ebp - 0x24]
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, eax
jne 0x1007f5a0
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1007f628
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f70c
push ecx
push edi
call fcn.100632cf
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1007f745
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x1007f6a2
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f698
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f70c
push ecx
push edx
call fcn.100632cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test edi, edi
je 0x1007f632
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push edi
call fcn.10056d10
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1007f628
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007f628
call fcn.1008eccf
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.10080500
push 0
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.10066e20
push 0x101f7b64
lea eax, [ebp - 0x84]
push eax
call fcn.10084766
call fcn.1004b5c0
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.10080500
push 0
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.10066e20
push 0x101f7b64
lea eax, [ebp - 0x84]
push eax
call fcn.10084766
int3