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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
jmp 0x1009779
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001334
push edi
call esi
mov ebx, eax
neg ebx
push 0x1001358
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x10093cc
test ebx, ebx
je 0x1009450
mov ecx, dword [ebp - 4]
push edi
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x100979e
cmp dword [ebp + 0x10], 0
je 0x1009450
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.010084c7
test eax, eax
jne 0x1009791
mov ecx, dword [ebp - 4]
push edi
call fcn.010087c8
test eax, eax
je 0x1009419
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.010092ed
and dword [ebp + 8], 0
test ebx, ebx
je 0x1009448
mov ecx, dword [ebp - 4]
push edi
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x10097c5
mov ecx, dword [ebp - 4]
push edi
call fcn.0100889f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.010080e5
jmp 0x1009743
lea ecx, [ebp + 8]
call fcn.010080e5
push 0x1001344
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1009476
mov ecx, dword [ebp - 4]
and dword [ebp - 0x10], eax
push edi
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x100979e
push 0x1001370
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100954d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x21c]
push eax
call fcn.01008535
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x100979e
mov ecx, dword [ebp - 4]
push edi
call fcn.01008535
mov esi, eax
cmp esi, ebx
jl 0x100979e
cmp word [edi], 0x3d
jne 0x1009799
cmp dword [ebp + 0x10], ebx
je 0x10094f5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01008627
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.010080e5
cmp esi, ebx
jmp 0x1009745
cmp dword [ebp + 0x14], ebx
jne 0x100953b
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0100814a
cmp eax, ebx
jne 0x10097b7
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x1009533
cmp eax, 2
jne 0x10097b5
lea ecx, [ebp + 8]
call fcn.010080e5
mov ecx, dword [ebp - 4]
push edi
call fcn.0100889f
mov esi, eax
cmp esi, ebx
jmp 0x1009783
push 0x5c
push edi
call fcn.010084c7
test eax, eax
jne 0x1009799
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10095db
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0100814a
test eax, eax
je 0x10095aa
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0100814a
test eax, eax
je 0x10095aa
xor eax, eax
push eax
push eax
push esi
push eax
push eax
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.010080fc
test eax, eax
jne 0x1009799
mov ecx, dword [ebp - 4]
push edi
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x100979e
cmp word [edi], 0x3d
jne 0x1009747
mov ecx, dword [ebp - 4]
push edi
push 0
lea eax, [ebp - 8]
push eax
call fcn.01008627
jmp 0x1009741
cmp dword [ebp + 0x14], esi
jne 0x10095fc
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0100814a
test eax, eax
je 0x10095fc
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0xc], esi
jne 0x100960e
mov eax, 0x208
call fcn.0100a870
mov dword [ebp - 0xc], esp
push 0x104
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], esi
jne 0x1009644
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.010087f4
test eax, eax
jne 0x1009644
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.01008829
test eax, eax
je 0x10096fc
mov ecx, dword [ebp - 4]
push edi
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x100979e
mov ebx, dword [ebp - 4]
push edi
mov ecx, ebx
call fcn.0100889f
mov esi, eax
test esi, esi
jl 0x100979e
cmp word [edi], 0x7b
jne 0x10096b7
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 8]
push edi
call fcn.01009377
mov esi, eax
test esi, esi
jl 0x100979e
cmp dword [ebp + 0x14], 0
je 0x10096c4
mov eax, dword [ebp - 0x14]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x100979e
push edi
mov ecx, ebx
call fcn.0100889f
jmp 0x100977f
cmp dword [ebp + 0x14], 0
jne 0x1009785
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, ebx
call fcn.010087f4
test eax, eax
je 0x10096f2
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.010087c8
test eax, eax
je 0x10096eb
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.010092ed
mov ecx, ebx
jmp 0x1009779
cmp dword [ebp + 0x14], 0
jne 0x1009785
lea ecx, [ebp - 8]
call fcn.010080e5
test eax, eax
jne 0x1009799
cmp dword [ebp - 0x10], eax
je 0x1009729
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.010080e5
mov ecx, dword [ebp - 4]
push edi
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x100979e
mov ecx, dword [ebp - 4]
push edi
call fcn.0100889f
mov esi, eax
test esi, esi
jl 0x100979e
cmp dword [ebp + 0x10], 0
je 0x1009785
cmp word [edi], 0x7b
jne 0x1009785
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1009785
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
call fcn.01009377
mov esi, eax
test esi, esi
jl 0x100979e
mov ecx, dword [ebp - 4]
push edi
call fcn.01008535
mov esi, eax
test esi, esi
jl 0x100979e
cmp word [edi], 0x7d
jne 0x10093a3
jmp 0x100979e
lea ecx, [ebp + 8]
call fcn.010080e5
mov esi, 0x80020009
lea ecx, [ebp - 8]
call fcn.010080e5
mov eax, esi
lea esp, [ebp - 0x228]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x10097c3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.010080e5
jmp 0x100979e