Function at 0x10040680
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2254]
mov eax, 0x2254
call fcn.100da550
push 0xffffffffffffffff
push 0x100ea2d8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp + 0x2250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2260]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x225c]
movq qword [ebp], xmm0
mov dword [ebp], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
cmp word [edi], 0x7d
je 0x10040e83
nop dword [eax + eax]
push str.Delete
push edi
mov dword [ebp + 0xc], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x10107408
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10040750
test ebx, ebx
je 0x10040860
mov ecx, dword [ebp - 0x10]
push edi
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
cmp dword [ebp + 0x2264], 0
je 0x10040860
xorps xmm0, xmm0
mov dword [ebp + 0x40], 0
movq qword [ebp + 0x38], xmm0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x100407c7
mov edx, eax
cmp dx, 0x5c
je 0x100407bf
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x100407a4
jmp 0x100407c7
test ecx, ecx
jne 0x10040ddf
mov esi, 0x1010dbc0
nop dword [eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004081a
add esi, 4
cmp esi, 0x1010dbf0
jl 0x100407d0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x38]
push edi
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
call fcn.1003ef30
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
test ebx, ebx
je 0x10040855
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040df4
push edi
mov ecx, ebx
call fcn.100400a0
mov esi, eax
test esi, esi
js 0x10040df4
mov byte [ebp - 4], 0
mov dword [ebp + 0x3c], 0
jmp 0x10040b57
mov byte [ebp - 4], 0
mov dword [ebp + 0x3c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x10]
test eax, eax
jne 0x10040888
push edi
mov ecx, ebx
mov dword [ebp + 0xc], eax
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
push 0x10107400
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100409f8
lea eax, [ebp + 0x48]
mov ecx, ebx
push eax
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
push edi
mov ecx, ebx
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
cmp word [edi], 0x3d
jne 0x10040dea
cmp dword [ebp + 0x2264], 0
je 0x10040951
xorps xmm0, xmm0
mov dword [ebp + 0x34], 0
movq qword [ebp + 0x2c], xmm0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x2c], eax
lea eax, [ebp + 0x48]
push edi
push eax
lea eax, [ebp + 0x2c]
mov dword [ebp + 0x30], 0
push eax
mov dword [ebp + 0x34], 0
call fcn.1003fb20
mov esi, eax
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
test esi, esi
js 0x10040e04
mov byte [ebp - 4], 0
mov dword [ebp + 0x30], 0
jmp 0x10040b57
cmp dword [ebp + 0x2268], 0
jne 0x100409e1
cmp dword [ebp + 0xc], 0
je 0x100409e1
xorps xmm0, xmm0
mov dword [ebp + 0x28], 0
movq qword [ebp + 0x20], xmm0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
push 0x20006
push 0
push dword [ebp - 0x14]
call fcn.1003ee60
test eax, eax
jne 0x10040e39
mov ebx, dword [ebp + 0x20]
lea eax, [ebp + 0x48]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100409c1
cmp eax, 2
jne 0x10040e11
mov byte [ebp - 4], 0
test ebx, ebx
je 0x100409d7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x20], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x24], 0
push edi
mov ecx, ebx
call fcn.100400a0
mov esi, eax
test esi, esi
js 0x10040e83
jmp 0x10040dd0
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x10040a27
mov edx, eax
cmp dx, 0x5c
je 0x10040a1f
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10040a04
jmp 0x10040a27
test ecx, ecx
jne 0x10040dea
cmp dword [ebp + 0x2264], 0
je 0x10040bb2
mov esi, dword [ebp - 0x14]
lea ecx, [ebp]
push 0x2001f
push edi
push esi
call fcn.1003ee60
test eax, eax
je 0x10040b27
push 0x20019
push edi
push esi
lea ecx, [ebp]
call fcn.1003ee60
test eax, eax
je 0x10040b27
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x10040acc
cmp dword [esi], 0
je 0x10040abf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10040a8e
mov eax, 1
jmp 0x10040aeb
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10040ac5
push 0
push dword [esi]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x14]
call eax
jmp 0x10040aeb
cmp dword [esi + 4], 0
jne 0x10040acc
mov eax, 1
jmp 0x10040aeb
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10040e7a
mov ecx, dword [ebp]
test ecx, ecx
je 0x10040b08
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp], 0
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 4], 0
mov dword [ebp], ebx
mov dword [ebp + 4], 0
test eax, eax
jne 0x10040e7a
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
cmp word [edi], 0x3d
jne 0x10040b57
push edi
push 0
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.1003fb20
mov esi, eax
test esi, esi
js 0x10040e83
cmp word [edi], 0x7b
jne 0x10040dd0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040b66
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10040dd0
push 0
push dword [ebp + 0x2264]
mov ecx, ebx
push dword [ebp]
push edi
call fcn.10040680
mov esi, eax
test esi, esi
js 0x10040e83
push edi
mov ecx, ebx
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
jmp 0x10040dd0
mov esi, dword [ebp + 0x2268]
test esi, esi
jne 0x10040bd1
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.1003ee60
mov ebx, eax
jmp 0x10040bd6
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp + 0x44], eax
lea eax, [ebp + 0x2048]
push 0x104
push eax
call fcn.100cac2d
push eax
call fcn.1003e960
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
mov ecx, dword [ebp - 0x10]
push edi
call fcn.100400a0
mov esi, eax
test esi, esi
js 0x10040e83
cmp word [edi], 0x7b
jne 0x10040c7b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040c33
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10040c7b
push dword [ebp + 0x44]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp]
push edi
call fcn.10040680
mov esi, eax
test esi, esi
jns 0x10040c68
cmp dword [ebp + 0x44], 0
je 0x10040e83
mov ecx, dword [ebp - 0x10]
push edi
call fcn.1003f970
mov esi, eax
test esi, esi
js 0x10040e83
cmp ebx, 2
je 0x10040dd0
test ebx, ebx
je 0x10040c9c
cmp dword [ebp + 0x2268], 0
jne 0x10040dd0
mov ecx, ebx
jmp 0x10040e7c
cmp dword [ebp + 0x2268], 0
je 0x10040d20
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x44]
mov dword [ebp + 0x44], 0
push eax
push 0
push 0
push 0
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10040d20
cmp dword [ebp + 0x44], eax
jbe 0x10040d20
mov ebx, 0x1010dbc0
nop dword [eax + eax]
push dword [ebx]
lea eax, [ebp + 0x2048]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10040dd0
add ebx, 4
cmp ebx, 0x1010dbf0
jl 0x10040ce0
cmp dword [ebp + 0xc], 0
je 0x10040dd0
lea eax, [ebp + 0x2048]
push eax
lea ecx, [ebp]
call fcn.1003ef30
jmp 0x10040dd0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x44]
mov dword [ebp + 0x44], 0
push eax
push 0
push 0
push 0
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10040d50
xor ebx, ebx
jmp 0x10040d59
xor eax, eax
cmp eax, dword [ebp + 0x44]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp]
xor eax, eax
test ecx, ecx
je 0x10040d6e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp], ecx
mov dword [ebp + 4], 0
test eax, eax
jne 0x10040e7a
cmp dword [ebp + 0xc], eax
je 0x10040dd0
test ebx, ebx
jne 0x10040dd0
xorps xmm0, xmm0
mov dword [ebp + 0x1c], ebx
movq qword [ebp + 0x14], xmm0
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x2048]
push eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
call fcn.1003ed80
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
test eax, eax
jne 0x10040e64
mov byte [ebp - 4], al
mov dword [ebp + 0x18], eax
cmp word [edi], 0x7d
jne 0x10040720
jmp 0x10040e83
mov byte [ebp - 4], 0
mov dword [ebp + 0x3c], 0
mov esi, 0x80020009
jmp 0x10040e83
mov byte [ebp - 4], 0
mov dword [ebp + 0x3c], 0
jmp 0x10040e83
mov byte [ebp - 4], 0
mov dword [ebp + 0x30], 0
jmp 0x10040e83
mov ecx, eax
call fcn.1003eab0
mov esi, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10040e5b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
jmp 0x10040e83
mov ecx, eax
call fcn.1003eab0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10040e5b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
jmp 0x10040e83
mov ecx, eax
call fcn.1003eab0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp + 0x18], 0
jmp 0x10040e83
mov ecx, eax
call fcn.1003eab0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp]
test eax, eax
je 0x10040e9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp], 0
mov eax, esi
mov dword [ebp + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2250]
xor ecx, ebp
call fcn.100bcc77
lea esp, [ebp + 0x2254]
pop ebp
ret 0x10