Function at 0x501a90
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x619cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov dword [ebp - 0x17c], ecx
mov ecx, dword [ebp - 0x17c]
call fcn.00502790
lea eax, [ebp - 0xed]
mov dword [ebp - 0xec], eax
push 0
push 0
lea ecx, [ebp - 0x60]
call fcn.00404d80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x17c]
push edx
call fcn.00568610
add esp, 8
lea eax, [ebp - 0xf9]
mov dword [ebp - 0xf8], eax
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.00404d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00568610
add esp, 8
lea eax, [ebp - 0x105]
mov dword [ebp - 0x104], eax
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00404d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00568610
add esp, 8
lea eax, [ebp - 0x28]
push eax
push 0x654e14
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00502b90
add esp, 0xc
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 3
push 0x654e14
mov eax, dword [ebp - 0x184]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00408ce0
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
cmp dword [edx + 0x18], 8
jb 0x501bb2
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x188], ecx
jmp 0x501bc1
mov edx, dword [ebp - 0x10c]
add edx, 4
mov dword [ebp - 0x188], edx
cmp dword [ebp - 0x2c], 8
jb 0x501bd2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18c], eax
jmp 0x501bdb
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18c], ecx
cmp dword [ebp - 0x48], 8
jb 0x501bec
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x190], edx
jmp 0x501bf5
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x190], eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x188]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ecx, dword [ebp - 0x17c]
mov dword [ecx + 0x20], eax
push 0
push 1
lea ecx, [ebp - 0x98]
call fcn.00404d80
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00404d80
mov edx, dword [ebp - 0x17c]
cmp dword [edx + 0x20], 0
jne 0x501d25
lea eax, [ebp - 0x125]
mov dword [ebp - 0x124], eax
push 0
push 0
lea ecx, [ebp - 0xe4]
call fcn.004028c0
mov dword [ebp - 0x194], str.cannot_register_service
mov ecx, dword [ebp - 0x194]
add ecx, 1
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x194]
mov al, byte [edx]
mov byte [ebp - 0x199], al
add dword [ebp - 0x194], 1
cmp byte [ebp - 0x199], 0
jne 0x501c9b
mov ecx, dword [ebp - 0x194]
sub ecx, dword [ebp - 0x198]
mov dword [ebp - 0x1a0], ecx
mov edx, dword [ebp - 0x1a0]
push edx
push str.cannot_register_service
lea ecx, [ebp - 0xe4]
call fcn.00402910
mov byte [ebp - 4], 4
push 0
mov eax, dword [ebp - 0x17c]
push eax
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00564230
push 0x6a3798
lea edx, [ebp - 0xc8]
push edx
call fcn.005ecf53
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0xe4]
call fcn.004028c0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00404d80
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00404d80
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.00404d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8