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

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1000b930
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10010030]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x214]
mov esi, dword [ebp + 0x218]
xor ebx, ebx
push eax
mov edi, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.100022f0
push 0x208
mov dword [ebp - 0x1c], eax
lea eax, [ebp]
push ebx
push eax
call fcn.10003290
push edi
lea ecx, [ebp]
push str.SYSTEMCurrentControlSetServices_sParameters
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebx
je 0x10002179
push 0x1000f1d0
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 0x1000dc93
call fcn.10003798
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002180
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push esi
push 2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.ServiceDll
push eax
call ebx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x100021cb
push 0x1000f1d0
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], str.RegSetValueEx_ServiceDll_
call fcn.10003798
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp]
push 0
push eax
call fcn.10003290
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
lea ecx, [ebp]
push 0x104
push ecx
call fcn.10002fc7
add esp, 0x18
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
lea eax, [ebp]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000222e
push 0x1000f1d0
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], str.RegOpenKeyEx_Svchost_
call fcn.10003798
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002233
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push edi
push 7
push 0
push str.kuaizipupdatesvc
push eax
call ebx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10002296
push 0x1000f1d0
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], str.RegSetValueEx_Svchostkuaizipupdatesvc_
call fcn.10003798
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000228b
cmp byte [eax], 0
je 0x1000228b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x10002291
ret
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [ebp - 0x14], 0
call fcn.10001f10
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100022c0
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 + 0x208]
xor ecx, ebp
call fcn.10002836
add ebp, 0x20c
mov esp, ebp
pop ebp
ret