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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
test ebx, ebx
je 0x1004e832
test edx, edx
je 0x1004e832
push edi
push 0
lea eax, [ebp - 0x414]
push eax
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1004e3ca
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push str.FltMgr
push 0
push str.FSFilter_Activity_Monitor
lea eax, [ebp - 0x414]
push eax
push 0
push 3
push 2
push 0xf01ff
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x1004e442
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
cmp eax, 0x431
jne 0x1004e42a
call esi
push edi
call esi
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
mov eax, dword [0x100c3120]
mov edx, ebx
mov dword [ebp - 0x1cc], eax
mov esi, edx
mov ax, word [0x100c3124]
movups xmmword [ebp - 0x20c], xmm0
mov word [ebp - 0x1c8], ax
movups xmm0, xmmword [0x100c30f0]
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x100c3100]
movups xmmword [ebp - 0x1ec], xmm0
movups xmm0, xmmword [0x100c3110]
movups xmmword [ebp - 0x1dc], xmm0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e4a2
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1004e4c0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004e4e3
mov eax, dword [str.Instances]
mov dword [ecx], eax
mov eax, dword [0x100c32ec]
mov dword [ecx + 4], eax
mov eax, dword [0x100c32f0]
mov dword [ecx + 8], eax
mov eax, dword [0x100c32f4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x100c32f8]
mov dword [ecx + 0x10], eax
mov ax, word [0x100c32fc]
mov word [ecx + 0x14], ax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0x100c30d8
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004e42f
lea edx, [ebp - 0x20c]
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1004e562
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004e580
mov eax, dword [str._Instance]
mov dword [ecx], eax
mov eax, dword [0x100c3144]
mov dword [ecx + 4], eax
mov eax, dword [0x100c3148]
mov dword [ecx + 8], eax
mov eax, dword [0x100c314c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x100c3150]
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e5c0
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 - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1004e42f
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
mov eax, dword [0x100c3120]
mov edx, ebx
mov dword [ebp - 0x1cc], eax
mov esi, edx
mov ax, word [0x100c3124]
movups xmmword [ebp - 0x20c], xmm0
mov word [ebp - 0x1c8], ax
movups xmm0, xmmword [0x100c30f0]
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x100c3100]
movups xmmword [ebp - 0x1ec], xmm0
movups xmm0, xmmword [0x100c3110]
movups xmmword [ebp - 0x1dc], xmm0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e667
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1004e680
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004e6a3
mov eax, dword [str.Instances_]
mov esi, ebx
mov dword [ecx], eax
mov eax, dword [0x100c312c]
mov dword [ecx + 4], eax
mov eax, dword [0x100c3130]
mov dword [ecx + 8], eax
mov eax, dword [0x100c3134]
mov dword [ecx + 0xc], eax
mov eax, dword [0x100c3138]
mov dword [ecx + 0x10], eax
mov eax, dword [0x100c313c]
mov dword [ecx + 0x14], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1004e6e0
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1004e6f6
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004e720
mov eax, dword [str._Instance]
mov dword [ecx], eax
mov eax, dword [0x100c3144]
mov dword [ecx + 4], eax
mov eax, dword [0x100c3148]
mov dword [ecx + 8], eax
mov eax, dword [0x100c314c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x100c3150]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0x100c30d8
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004e42f
xor ecx, ecx
nop dword [eax]
movzx eax, word [ecx + str.380090]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x1004e790
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e7b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
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.Altitude
push dword [ebp - 0x418]
call esi
test eax, eax
jne 0x1004e42f
push 4
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x418]
call esi
test eax, eax
jne 0x1004e42f
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004e414
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret