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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x407a21
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push str.FltMgr
push 0
push str.FSFilter_Activity_Monitor
push str.system32driversJKSvarer.sys
push 1
push 1
push 2
push 0xf01ff
push str.JKSvarer
push str.JKSvarer
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x407a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
cmp eax, 0x431
jne 0x407a76
call esi
push edi
call esi
jmp 0x407ce3
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
push str.SYSTEMControlSet001Services_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d443
push str.JKSvarer
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d4a7
push str.Instances
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d4a7
add esp, 0x24
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0xf003f
push 0
push 0x5d78a0
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x407a7b
push str.JKSvarer
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d443
push str._Instance
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d4a7
lea ecx, [ebp - 0x20c]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407b50
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.DefaultInstance
push dword [ebp - 0x214]
call esi
test eax, eax
jne 0x407a7b
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SYSTEMControlSet001Services_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d443
push str.JKSvarer
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d4a7
push str.Instances_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d4a7
push str.JKSvarer
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d4a7
push str._Instance
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d4a7
add esp, 0x3c
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0xf003f
push 0
push 0x5d78a0
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x407a7b
push str.382631
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044d443
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c70
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.Altitude
push dword [ebp - 0x214]
call esi
test eax, eax
jne 0x407a7b
push 4
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x214]
call esi
test eax, eax
jne 0x407a7b
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.004273c3
mov esp, ebp
pop ebp
ret