Function at 0x10002020
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1002a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x20], eax
mov esi, ecx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServices
push 0x80000002
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002256
push edi
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x1000221b
mov edx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edx, edx
je 0x10002102
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100020d0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DisplayName
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002218
jmp 0x1000210c
push str.DisplayName
push dword [ebp - 0xc]
call ebx
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ErrorControl
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002218
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10002168
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002136
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Group
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002218
jmp 0x10002172
push str.Group
push dword [ebp - 0xc]
call ebx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1000219a
mov eax, dword [ebp + 0x20]
add eax, eax
push eax
push ecx
push 7
push 0
push str.DependOnService
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002218
jmp 0x100021a4
push str.DependOnService
push dword [ebp - 0xc]
call ebx
mov esi, dword [ebp - 0x24]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100021b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push 0x1002267c
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002218
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push 0x10022690
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002218
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1002269c
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002218
push 0x100226a8
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1000222b
push eax
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10002235
push eax
call edi
pop edi
test ebx, ebx
je 0x1000223f
push dword [ebp - 0x28]
call ebx
test esi, esi
jne 0x10002256
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ca39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ca39
mov esp, ebp
pop ebp
ret