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

Disassembly:
sub esp, 0x110
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
mov edi, dword [esp + 0x124]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0
test esi, esi
jne 0x42275c
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004f6592
add esp, 0x110
ret
push 0
push str.FltMgr
push 0
push str.FSFilter_Activity_Monitor
push edi
push 0
push 1
push 2
push 0xf01ff
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x4227b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4227b4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004f6592
add esp, 0x110
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebp
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4227d7
lea edi, [esp + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4227e7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x422802
mov ecx, dword [str.Instances]
mov edx, dword [0x53eac4]
mov dword [eax], ecx
mov cx, word [0x53eac8]
mov dword [eax + 4], edx
mov dl, byte [0x53eaca]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0x539408
push 0
lea edx, [esp + 0x30]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esp + 0x14]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x422861
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422872
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.DefaultInstance
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebp
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4228c5
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4228d5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4228f0
mov ecx, dword [str.Instances_]
mov edx, dword [0x53eaa8]
mov dword [eax], ecx
mov ecx, dword [0x53eaac]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, ebp
mov ecx, ebp
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x422916
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x422926
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
and ecx, 3
push 0x539408
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x34]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4229d3
mov edx, dword [esp + 0x10]
push 6
push str.370250
push 1
push eax
push str.Altitude
push edx
call ebx
test eax, eax
mov eax, dword [esp + 0x10]
je 0x42299e
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4229f2
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.Flags
push eax
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x4229d7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4229f2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x11c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004f6592
add esp, 0x110
ret