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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x30]
push str.system32Drivers_
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x414]
push 0x104
push eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
call fcn.004e7754
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004e8f91
add esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x492880
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [ebp - 0x42c]
lea eax, [ebp - 0x414]
push 0
push ebx
push eax
push 1
push dword [ebp - 0x428]
push 2
push 0xf01ff
push edi
push dword [ebp - 0x424]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x4928c0
push edi
call ebx
push esi
call ebx
push str.SYSTEMCurrentControlSetServices_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e7754
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e8f91
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x418]
add esp, 0x18
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49299d
push str.SYSTEMCurrentControlSetServices
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e7754
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov esi, eax
test esi, esi
jne 0x492c83
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x492c83
push dword [ebp - 0x418]
call ebx
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], esi
jmp 0x4929a3
mov eax, dword [ebp - 0x418]
push str.DeleteFlag
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x428]
push 4
push eax
push 4
push 0
push str.Start
push dword [ebp - 0x418]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
test edi, edi
jne 0x492ac5
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4929f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 7
push 0
push str.ImagePath
push dword [ebp - 0x418]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
mov esi, dword [ebp - 0x430]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492a34
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.Group
push dword [ebp - 0x418]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
mov esi, dword [ebp - 0x42c]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492a72
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 7
push 0
push str.DependOnService
push dword [ebp - 0x418]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
push 4
lea eax, [ebp + 0x2c]
push eax
push 4
push esi
push str.Type
push dword [ebp - 0x418]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
mov esi, dword [ebp - 0x434]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492ad0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.Description
push dword [ebp - 0x418]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
mov esi, dword [ebp - 0x438]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492b10
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.InstallDir
push dword [ebp - 0x418]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x41c]
push eax
push 0xf003f
push esi
push str.Instances
push dword [ebp - 0x418]
call edi
test eax, eax
je 0x492b89
lea eax, [ebp - 0x41c]
push eax
push str.Instances
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x492c7d
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push str._s_Instance
push 0x104
push eax
call fcn.00492cc0
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492bb1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.DefaultInstance
push dword [ebp - 0x41c]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
lea eax, [ebp - 0x420]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call edi
test eax, eax
je 0x492c2a
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x492c7d
push 4
lea eax, [ebp + 0x28]
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x420]
call ebx
mov esi, eax
test esi, esi
jne 0x492c7d
mov esi, dword [ebp - 0x43c]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492c52
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.Altitude
push dword [ebp - 0x420]
call ebx
mov esi, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x492c90
push eax
call ebx
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x492c9d
push eax
call ebx
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x492caa
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret