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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1002e008]
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 reloc.OLEAUT32.dll_SysReAllocString
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 0x10002266
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 0x1000222b
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 0x10002112
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100020e0
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 0x10002228
jmp 0x1000211c
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 0x10002228
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10002178
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002146
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 0x10002228
jmp 0x10002182
push str.Group
push dword [ebp - 0xc]
call ebx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100021aa
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 0x10002228
jmp 0x100021b4
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 0x100021c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push 0x100256c4
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002228
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push 0x100256d8
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002228
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x100256e4
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10002228
push 0x100256f0
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 0x1000223b
push eax
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10002245
push eax
call edi
pop edi
test ebx, ebx
je 0x1000224f
push dword [ebp - 0x28]
call ebx
test esi, esi
jne 0x10002266
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f349
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f349
mov esp, ebp
pop ebp
ret