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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008023b
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.10054670
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2250], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x224c], xmm0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037b9
cmp word [ebx], 0x7d
je 0x100037a6
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2258], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1008f1b4
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100030f0
test edi, edi
jne 0x100031ff
mov ecx, dword [ebp - 0x2250]
push ebx
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
cmp dword [ebp + 0x10], 0
je 0x100031ff
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2220], 0
test ax, ax
je 0x10003153
nop
cmp ax, 0x5c
je 0x1000314b
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x10003130
jmp 0x10003153
test edx, edx
jne 0x10003796
mov esi, 0x1008f5bc
nop dword [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100031b8
add esi, 4
cmp esi, 0x1008f5ec
jl 0x10003160
mov eax, dword [ebp - 0x2254]
lea ecx, [ebp - 0x2228]
push ebx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
call fcn.100019f0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2220], 0
test edi, edi
jne 0x100031f5
mov edi, dword [ebp - 0x2250]
mov ecx, edi
push ebx
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
push ebx
mov ecx, edi
call fcn.10002a00
mov esi, eax
test esi, esi
js 0x100037a6
mov dword [ebp - 0x2224], 0
jmp 0x1000346f
mov dword [ebp - 0x2224], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2250]
test eax, eax
jne 0x1000322d
push ebx
mov ecx, edi
mov dword [ebp - 0x2258], eax
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
push 0x1008f1ac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100033bb
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
push ebx
mov ecx, edi
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
cmp word [ebx], 0x3d
jne 0x10003796
cmp dword [ebp + 0x10], 0
je 0x10003309
xorps xmm0, xmm0
mov dword [ebp - 0x222c], 0
movq qword [ebp - 0x2234], xmm0
mov eax, dword [ebp - 0x2254]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2230], 0
push eax
mov dword [ebp - 0x222c], 0
call fcn.100024d0
mov esi, eax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
test esi, esi
js 0x100037a6
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x1000346f
cmp dword [ebp + 0x14], 0
jne 0x100033a4
cmp dword [ebp - 0x2258], 0
je 0x100033a4
push 0x20006
push 0
push dword [ebp - 0x2254]
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.10001910
test eax, eax
jne 0x1000377a
mov edi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1000337f
cmp eax, 2
jne 0x10003764
test edi, edi
je 0x10003394
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov edi, dword [ebp - 0x2250]
mov dword [ebp - 0x223c], 0
push ebx
mov ecx, edi
call fcn.10002a00
mov esi, eax
test esi, esi
js 0x100037a6
jmp 0x10003758
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x100033e8
mov edx, ecx
cmp dx, 0x5c
je 0x100033e0
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x100033c7
jmp 0x100033e8
test eax, eax
jne 0x10003796
cmp dword [ebp + 0x10], 0
je 0x100034cc
mov esi, dword [ebp - 0x2254]
lea ecx, [ebp - 0x224c]
push 0x2001f
push ebx
push esi
call fcn.10001910
test eax, eax
je 0x1000343c
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x224c]
call fcn.10001910
test eax, eax
je 0x1000343c
sub esp, 0x14
lea ecx, [ebp - 0x224c]
push ebx
push esi
call fcn.10001820
test eax, eax
jne 0x1000379d
push ebx
mov ecx, edi
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
cmp word [ebx], 0x3d
jne 0x1000346f
push ebx
push 0
lea eax, [ebp - 0x224c]
mov ecx, edi
push eax
call fcn.100024d0
mov esi, eax
test esi, esi
js 0x100037a6
cmp word [ebx], 0x7b
jne 0x10003758
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003480
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10003758
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x224c]
push ebx
call fcn.10003020
mov esi, eax
test esi, esi
js 0x100037a6
push ebx
mov ecx, edi
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
jmp 0x10003758
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x100034ee
push 0x20019
push ebx
push dword [ebp - 0x2254]
lea ecx, [ebp - 0x224c]
call fcn.10001910
mov edi, eax
jmp 0x100034f3
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10058d4c
push eax
call fcn.10001430
mov ecx, dword [ebp - 0x2250]
add esp, 0x14
push ebx
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
mov ecx, dword [ebp - 0x2250]
push ebx
call fcn.10002a00
mov esi, eax
test esi, esi
js 0x100037a6
cmp word [ebx], 0x7b
jne 0x100035ae
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003557
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x100035ae
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2250]
push 0
push dword [ebp - 0x224c]
push ebx
call fcn.10003020
mov esi, eax
test esi, esi
jns 0x10003598
cmp dword [ebp - 0x221c], 0
je 0x100037a6
mov ecx, dword [ebp - 0x2250]
push ebx
call fcn.10002330
mov esi, eax
test esi, esi
js 0x100037a6
cmp edi, 2
je 0x10003758
test edi, edi
je 0x100035cc
cmp dword [ebp + 0x14], 0
jne 0x10003758
mov ecx, edi
jmp 0x1000379f
cmp dword [ebp + 0x14], 0
je 0x10003666
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10003666
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x10003666
mov edi, 0x1008f5bc
nop dword [eax]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10003758
add edi, 4
cmp edi, 0x1008f5ec
jl 0x10003620
cmp dword [ebp - 0x2258], 0
je 0x10003758
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224c]
call fcn.100019f0
jmp 0x10003758
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1000369f
xor edi, edi
jmp 0x100036ab
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x224c]
xor eax, eax
test ecx, ecx
je 0x100036c6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x224c], ecx
mov dword [ebp - 0x2248], 0
test eax, eax
jne 0x1000379d
cmp dword [ebp - 0x2258], eax
je 0x10003758
test edi, edi
jne 0x10003758
cmp byte [0x100a40de], al
jne 0x10003723
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10003715
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100a40e0], eax
mov byte [0x100a40de], 1
jmp 0x10003728
mov eax, dword [0x100a40e0]
mov byte [0x100a40de], 1
jmp 0x10003728
mov eax, dword [0x100a40e0]
test eax, eax
je 0x10003741
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2254]
call eax
jmp 0x10003754
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2254]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1000379d
cmp word [ebx], 0x7d
jne 0x100030c0
jmp 0x100037a6
mov ecx, eax
call fcn.10001520
mov esi, eax
test edi, edi
je 0x100037a6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100037a6
mov ecx, eax
call fcn.10001520
mov esi, eax
mov eax, dword [ebp - 0x2240]
test eax, eax
je 0x100037a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100037a6
mov esi, 0x80020009
jmp 0x100037a6
mov ecx, eax
call fcn.10001520
mov esi, eax
mov eax, dword [ebp - 0x224c]
test eax, eax
je 0x100037b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
ret 0x10