Function at 0x10001850
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100036f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x10017440]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100018e0
mov esi, 0x8000ffff
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x10000
push ebx
push str.CLSIDA8E947ED_B6BD_4305_BF09_D02675F32B6E
push 0x80000000
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10001b71
mov ebx, 0x8000ffff
jmp 0x10001b8c
lea eax, [ebp - 0x210]
xor esi, esi
push eax
push 0x20006
push esi
push str.CLSID
push 0x80000000
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call ebx
test eax, eax
je 0x10001912
mov esi, 0x8000ffff
jmp 0x10001958
lea eax, [ebp - 0x214]
push eax
push str.A8E947ED_B6BD_4305_BF09_D02675F32B6E
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10001935
mov esi, 0x8000ffff
jmp 0x10001958
push 0x20
push 0x10014068
push 1
push 0
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 0x8000ffff
cmovne esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1000196f
push eax
call edi
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1000197c
push eax
call edi
test esi, esi
jne 0x100018a9
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
push 0x20006
push esi
push str.CLSIDA8E947ED_B6BD_4305_BF09_D02675F32B6E
push 0x80000000
mov dword [ebp - 0x214], esi
call ebx
test eax, eax
je 0x100019b4
mov esi, 0x8000ffff
jmp 0x10001a1a
lea eax, [ebp - 0x214]
push eax
push str.InprocServer32
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x100019d7
mov esi, 0x8000ffff
jmp 0x10001a1a
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100019e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 0x8000ffff
cmovne esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x10001a31
push eax
call edi
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10001a3e
push eax
call edi
test esi, esi
jne 0x100018a9
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
push 2
push esi
push str.CLSIDA8E947ED_B6BD_4305_BF09_D02675F32B6EInprocServer32
push 0x80000000
call ebx
test eax, eax
je 0x10001a6d
mov esi, 0x8000ffff
jmp 0x10001a93
push 0x14
push str.Apartment
push 1
push 0
push str.ThreadingModel
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 0x8000ffff
cmovne esi, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10001aa0
push eax
call edi
test esi, esi
jne 0x100018a9
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
push 0x20006
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
push 0x80000002
mov dword [ebp - 0x214], esi
call ebx
test eax, eax
je 0x10001ad8
mov esi, 0x8000ffff
jmp 0x10001b1e
lea eax, [ebp - 0x214]
push eax
push str._BackdoorOverlay
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10001afb
mov esi, 0x8000ffff
jmp 0x10001b1e
push 0x4e
push str.A8E947ED_B6BD_4305_BF09_D02675F32B6E
push 1
push 0
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 0x8000ffff
cmovne esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x10001b35
push eax
call edi
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10001b42
push eax
call edi
test esi, esi
jne 0x100018a9
call dword [sym.imp.SHELL32.dll_SHLoadNonloadedIconOverlayIdentifiers]
push esi
push esi
push esi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000216c
mov esp, ebp
pop ebp
ret
push str.InprocServer32
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, 0x8000ffff
cmovne ebx, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10001b99
push eax
call edi
test ebx, ebx
jne 0x10001c5a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push 0x10000
push ebx
push str.CLSID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10001bcf
mov ebx, 0x8000ffff
jmp 0x10001bea
push str.A8E947ED_B6BD_4305_BF09_D02675F32B6E
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, 0x8000ffff
cmovne ebx, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10001bf7
push eax
call edi
test ebx, ebx
jne 0x10001c5a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push 0x10000
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10001c29
mov ebx, 0x8000ffff
jmp 0x10001c44
push str._BackdoorOverlay
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, 0x8000ffff
cmovne ebx, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10001c51
push eax
call edi
test ebx, ebx
jne 0x10001c5a
call fcn.10001e90
call fcn.10001e90
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000216c
mov esp, ebp
pop ebp
ret