Function at 0x402ee0
Capabilities:
Create service
Delete service
Get common file path
Persist via windows service
Set registry value
Start service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x42503d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push ebp
mov ebp, ecx
mov eax, dword [str.RockVdd.dll]
mov ecx, dword [0x42f224]
push esi
mov dword [esp + 0x40], ecx
mov ecx, dword [0x42f214]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x42f120]
push edi
mov dword [esp + 0x24], ecx
mov edx, dword [0x42f228]
mov ecx, 0xd
mov esi, str.SystemCurrentControlSetServicesROCKEYNTParameters
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [0x42f210]
mov dword [esp + 0x48], edx
mov edx, dword [0x42f218]
mov dword [esp + 0x30], eax
mov al, byte [0x42f21c]
mov dword [esp + 0x38], edx
mov edx, dword [0x42f124]
mov byte [esp + 0x3c], al
mov al, byte [0x42f128]
lea ecx, [esp + 0xa0]
push 0xc8
push ecx
mov dword [esp + 0x30], edx
mov byte [esp + 0x34], al
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ebx, 0xffffffff
lea edi, [esp + 0xa0]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1a0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f178
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1a0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
push 0xf003f
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.drivers_
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xac]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4030d9
mov eax, dword [0x42f4c8]
mov dword [esp + 0x10], eax
mov ebp, dword [ebp + 0x88]
mov dword [esp + 0x2a8], esi
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [esp + 0x10]
lea edx, [ecx*8 + 0xbc5]
push edx
push eax
call fcn.00418ee2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2b8]
add esp, 8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], ebx
call fcn.004199c4
xor eax, eax
jmp 0x4034e4
lea eax, [esp + 0x24]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x403108
lea ecx, [esp + 0x84]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
lea edx, [esp + 0xa0]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00402210
add esp, 8
test eax, eax
jne 0x403196
push esi
call edi
mov ecx, dword [0x42f4c8]
mov dword [esp + 0x10], ecx
mov ebp, dword [ebp + 0x88]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x14]
lea eax, [ebp + ebp*4]
mov dword [esp + 0x2ac], 1
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax*8 + 0xbc4]
push ecx
push edx
call fcn.00418ee2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2bc]
add esp, 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], ebx
call fcn.004199c4
xor eax, eax
jmp 0x4034e4
lea edx, [esp + 0x1a0]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00402210
add esp, 8
test eax, eax
jne 0x40321b
push esi
call edi
mov ecx, dword [0x42f4c8]
mov dword [esp + 0x10], ecx
mov ebp, dword [ebp + 0x88]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x14]
lea eax, [ebp + ebp*4]
mov dword [esp + 0x2ac], 2
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax*8 + 0xbc4]
push ecx
push edx
call fcn.00418ee2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2bc]
add esp, 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], ebx
call fcn.004199c4
xor eax, eax
jmp 0x4034e4
push 0
push 0
push 0
push 0
lea edx, [esp + 0xb0]
push 0
push edx
push 1
push 2
push 1
lea eax, [esp + 0x48]
push 0xf01ff
lea ecx, [esp + 0x4c]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x4c]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4032c6
mov ecx, dword [0x42f4c8]
mov dword [esp + 0x10], ecx
mov ebp, dword [ebp + 0x88]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 3
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0xbd1]
push eax
call fcn.0041e0a8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2b0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], ebx
call fcn.004199c4
xor eax, eax
jmp 0x4034e4
mov eax, dword [ebp + 0x80]
mov ecx, eax
and ecx, 0x100
je 0x4032e2
test ah, 4
jne 0x4032e2
mov ecx, 1
jmp 0x4032f4
test ecx, ecx
jne 0x4032f2
test ah, 4
je 0x4032f2
mov ecx, 2
jmp 0x4032f4
xor ecx, ecx
test al, 0x20
mov dword [esp + 0x14], ecx
je 0x403305
mov ecx, 1
mov dword [esp + 0x14], ecx
mov eax, dword [0x42f4c8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x2a8], 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [ecx + edx*8 + 0xbce]
lea ecx, [esp + 0x18]
push eax
call fcn.0041e0a8
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x2b0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push 0x42f164
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 0x80]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push 4
push edx
push 4
shr ecx, 0xb
push 0
and ecx, 1
push 0x42f158
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
mov eax, dword [esp + 0x10]
push eax
jne 0x40342e
call edi
push esi
call edi
mov ecx, dword [0x42f4c8]
mov dword [esp + 0x10], ecx
mov ebp, dword [ebp + 0x88]
push str.RockeyNT.sys
lea ecx, [esp + 0x14]
mov byte [esp + 0x2ac], 5
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0xbc6]
push eax
push ecx
call fcn.00418ee2
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 4
call fcn.004199c4
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.004199c4
xor eax, eax
jmp 0x4034e4
call edi
push esi
call edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x42f0f8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or esi, 0xffffffff
cmp eax, esi
jne 0x4034cf
mov ecx, dword [0x42f4c8]
mov dword [esp + 0x20], ecx
mov ebp, dword [ebp + 0x88]
push str.RockeyNT.sys
lea ecx, [esp + 0x24]
mov byte [esp + 0x2ac], 6
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0xbc6]
push eax
push ecx
call fcn.00418ee2
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 4
call fcn.004199c4
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a8], esi
call fcn.004199c4
xor eax, eax
jmp 0x4034e4
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a8], esi
call fcn.004199c4
mov eax, 1
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret 4