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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2a4], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407fd8
xor eax, eax
jmp 0x40825c
push 0x104
lea eax, [ebp - 0x1a0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1a0]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x2a4]
add edx, 4
push edx
mov eax, dword [ebp - 0x2a4]
add eax, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408040
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40825c
push 0x100
push 0
lea eax, [ebp - 0x2a0]
push eax
call fcn.00474130
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0x499e90
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.00474a28
add esp, 0xc
mov edx, dword [ebp - 0x2a4]
add edx, 4
push edx
push 0x80
lea eax, [ebp - 0x2a0]
push eax
call fcn.00476ed7
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x2a0]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4080d5
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40825c
lea edx, [ebp - 0x1a0]
push edx
call fcn.00474a90
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x1a0]
push eax
push 2
push 0
push str.EventMessageFile
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], 7
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.TypesSupported
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
mov edx, dword [ebp - 0x2a4]
add edx, 4
push edx
push 0x64
push 4
mov ecx, dword [ebp - 0x2a4]
call fcn.0042a7b0
push 0x100
push 0
lea eax, [ebp - 0x2a0]
push eax
call fcn.00474130
add esp, 0xc
push 0x499f24
push str.SYSTEMCurrentControlSetServices_
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.00474a28
add esp, 0xc
mov edx, dword [ebp - 0x2a4]
add edx, 4
push edx
push 0x80
lea eax, [ebp - 0x2a0]
push eax
call fcn.00476ed7
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x2a0]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4081d7
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40825c
push 0x50
push 0
lea edx, [ebp - 0x98]
push edx
call fcn.00474130
add esp, 0xc
push 0x499f6c
push 0x499f8c
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00474a28
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
call fcn.00474a90
add esp, 4
push eax
lea edx, [ebp - 0x98]
push edx
push 1
push 0
push str.Description
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret