Function at 0x402b30
Capabilities:
Get common file path
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x424fe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [0x42f1b0]
push edi
mov dword [esp + 0x24], ecx
mov ecx, 0xb
mov esi, 0x42f17c
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [str.Rockey9x.vxd]
mov edx, dword [0x42f1b4]
movsw word es:[edi], word [esi]
mov dword [esp + 0x20], eax
mov al, byte [0x42f1b8]
lea ecx, [esp + 0x60]
push 0xc8
push ecx
mov dword [esp + 0x30], edx
mov byte [esp + 0x34], al
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x42f178
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x64]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
push eax
push 0xc0000000
push str..ROCKEY9X
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x402c27
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x80]
or al, 8
mov dword [ebp + 0x80], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x20]
push 0xe
push edx
push 1
push 0
push str.StaticVxd
push eax
call esi
mov eax, dword [ebp + 0x80]
mov ecx, eax
and ecx, 0x100
je 0x402c75
test ah, 4
jne 0x402c75
mov ecx, 1
jmp 0x402c87
test ecx, ecx
jne 0x402c85
test ah, 4
je 0x402c85
mov ecx, 2
jmp 0x402c87
xor ecx, ecx
test al, 0x10
mov dword [esp + 0x10], ecx
je 0x402c98
mov ecx, 1
mov dword [esp + 0x10], ecx
mov edx, dword [0x42f4c8]
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x168], 0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8 + 0xbce]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041e0a8
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x170]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edx
push edi
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x42f164
push ecx
call esi
mov edx, dword [ebp + 0x80]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 4
push eax
push 4
shr edx, 0xb
push 0
and edx, 1
push 0x42f158
push ecx
mov dword [esp + 0x28], edx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00402210
add esp, 8
test eax, eax
jne 0x402dae
mov edx, dword [0x42f4c8]
mov dword [esp + 0x1c], edx
mov ebp, dword [ebp + 0x88]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x16c], 1
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [esp + 0x20]
lea edx, [ecx*8 + 0xbc4]
push edx
push eax
call fcn.00418ee2
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push edi
call ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 0
call fcn.004199c4
lea ecx, [esp + 0x18]
mov dword [esp + 0x168], 0xffffffff
call fcn.004199c4
xor eax, eax
jmp 0x402dc7
lea ecx, [esp + 0x18]
mov dword [esp + 0x168], 0xffffffff
call fcn.004199c4
mov eax, 1
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 4