Function at 0x47e4d0
Capabilities:
Check os version
Delete file
Delete registry value
Get common file path
Persist via windows service
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f55b
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x654], eax
xor ebx, ebx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp eax, 0x80000000
jae 0x47e52d
call esi
cmp al, 5
jae 0x47e534
xor eax, eax
jmp 0x47e990
push ebx
lea ecx, [ebp - 0x644]
push ecx
push 0xb8
mov edx, dword [0x5c0834]
push edx
call fcn.004c6aa0
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x47e983
mov eax, dword [ebp - 0x644]
inc eax
push eax
call fcn.004fc6be
mov dword [ebp - 0x650], eax
mov ecx, dword [ebp - 0x644]
push ecx
push esi
push eax
call fcn.004fe210
add esp, 0x10
mov edx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x650]
mov byte [eax + edx], bl
push eax
lea ecx, [ebp - 0x63c]
call fcn.004c1780
mov byte [ebp - 4], 1
mov byte [ebp - 0x224], bl
push 0x103
push ebx
lea eax, [ebp - 0x223]
push eax
call fcn.004ff6f0
mov byte [ebp - 0x328], bl
push 0x103
push ebx
lea ecx, [ebp - 0x327]
push ecx
call fcn.004ff6f0
mov byte [ebp - 0x42c], bl
push 0x103
push ebx
lea edx, [ebp - 0x42b]
push edx
call fcn.004ff6f0
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.004ff6f0
push 0x104
push edi
lea ecx, [ebp - 0x328]
push ecx
call fcn.004bf0a0
push 0x5c
lea edx, [ebp - 0x328]
push edx
call fcn.004ff460
add esp, 0x44
cmp eax, ebx
je 0x47e626
mov byte [eax], bl
push 0x104
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.004bf0a0
lea ecx, [ebp - 0x224]
push ecx
call fcn.004c9100
add esp, 0x10
lea edx, [ebp - 0x224]
push edx
push str.xxprodxx
lea ecx, [ebp - 0x63c]
call fcn.004c0a50
lea eax, [ebp - 0x328]
push eax
push str.xxdestdirxx
lea ecx, [ebp - 0x63c]
call fcn.004c0a50
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ecx
push str._msfile_X.inf
lea edx, [ebp - 0x42c]
push edx
call fcn.004ff1e4
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x120]
push ecx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x42c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x47e6c0
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x120]
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x47e6d2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47e966
mov eax, dword [ebp - 0x63c]
mov ecx, dword [eax - 8]
push ebx
lea edx, [ebp - 0x65c]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xf
mov esi, str.rundll32.exe_setupapi_InstallHinfSection_DefaultInstall_128
lea edi, [ebp - 0x530]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x120]
mov ecx, eax
jmp 0x47e750
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x47e750
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x530]
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x47e762
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
mov dword [ebp - 0x658], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp eax, 0x80000000
jae 0x47e8bb
call esi
cmp al, 6
jb 0x47e8bb
mov dword [ebp - 0x64c], 0xff
lea eax, [ebp - 0x64c]
push eax
call fcn.004c4c20
add esp, 4
test eax, eax
je 0x47e8bb
cmp dword [ebp - 0x64c], ebx
jne 0x47e8bb
mov dword [ebp - 0x658], ebx
push 0x2710
push 5
push ebx
push edi
lea edx, [ebp - 0x530]
push edx
push ebx
call fcn.004ca0a0
add esp, 0x18
lea eax, [ebp - 0x224]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x634]
push ecx
call fcn.004ff1e4
add esp, 0xc
lea edx, [ebp - 0x638]
push edx
push 0xf003f
push ebx
lea eax, [ebp - 0x634]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e93f
mov dword [ebp - 0x640], ebx
push 4
lea ecx, [ebp - 0x640]
push ecx
push 4
push ebx
push 0x56e730
mov edx, dword [ebp - 0x638]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call esi
call fcn.0047e450
test eax, eax
je 0x47e89f
mov eax, dword [str.Filter]
mov dword [ebp - 0x1c], eax
mov cx, word [0x56e72c]
mov word [ebp - 0x18], cx
mov dl, byte [0x56e72e]
mov byte [ebp - 0x16], dl
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x47e880
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push str.Group
mov ecx, dword [ebp - 0x638]
push ecx
call esi
cmp dword [0x5bdba4], ebx
je 0x47e8d6
push str.Flags
mov edx, dword [ebp - 0x638]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x47e8f6
push ebx
push 0x2710
lea ecx, [ebp - 0x530]
push ecx
push ebx
call fcn.004c9f20
add esp, 0x10
jmp 0x47e7ec
mov dword [ebp - 0x640], edi
push 4
lea eax, [ebp - 0x640]
push eax
push 4
push ebx
push str.Flags
mov ecx, dword [ebp - 0x638]
push ecx
call esi
mov edx, dword [ebp - 0x654]
mov ecx, dword [edx + 0x60]
add ecx, 0x17ac
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x47e910
sub eax, edi
inc eax
push eax
push ecx
push 1
push ebx
push str.ObjectPath
mov eax, dword [ebp - 0x638]
push eax
call esi
mov ecx, dword [ebp - 0x638]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
mov dword [ebp - 0x648], edi
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x47e966
push ebx
lea eax, [ebp - 0x120]
push eax
call fcn.004cabd0
add esp, 8
mov ecx, dword [ebp - 0x650]
push ecx
call fcn.004fedfc
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x63c]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x648]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret