Function at 0x427fa0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a42ae
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b0], ecx
call fcn.00401ff0
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x42803e
push 0
movzx eax, byte [0x623349]
push eax
mov ecx, dword [ebp - 0x160]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x160]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x42803e
push str.CServiceModule::RegisterService
push 0x5e93dc
push 0xbf
push 0x5e93ec
push 0
movzx edx, byte [0x623349]
push edx
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x160]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x427fd1
mov ecx, dword [ebp - 0x1b0]
call fcn.004283e0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4280df
call fcn.00401ff0
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x4280d4
push 4
movzx edx, byte [0x623349]
push edx
mov eax, dword [ebp - 0x164]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x164]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x4280d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e9400
push 0xc5
push 0x5e9424
push 4
movzx edx, byte [0x623349]
push edx
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x164]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x428065
xor eax, eax
jmp 0x4283be
mov byte [ebp - 0x15c], 0
push 0x103
push 0
lea edx, [ebp - 0x15b]
push edx
call fcn.004ce490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x15c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00403100
mov dword [ebp - 4], 0
push 0
push 0x5e9438
lea ecx, [ebp - 0x4c]
call fcn.00403250
cmp eax, dword [0x5f0818]
je 0x4281cd
lea edx, [ebp - 0x4c]
push edx
push 0x5e9440
lea eax, [ebp - 0x188]
push eax
call fcn.00426690
add esp, 0xc
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b8], ecx
mov byte [ebp - 4], 1
push 0x5e943c
mov edx, dword [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x1a4]
push eax
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c0]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004031a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.00403180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x188]
call fcn.00403180
push 0x5e9444
lea ecx, [ebp - 0x4c]
call fcn.00409380
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00403210
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x62add8
push 0x62aef8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4282bd
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.00401ff0
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
je 0x428295
push 4
movzx edx, byte [0x623349]
push edx
mov eax, dword [ebp - 0x168]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x168]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x428295
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_create_service:_d_n
push 0xda
push 0x5e9474
push 4
movzx edx, byte [0x623349]
push edx
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x428226
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00403180
mov eax, dword [ebp - 0x1a8]
jmp 0x4283be
mov dword [ebp - 0x28], 0x62acd8
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x42834b
call fcn.00401ff0
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x428347
push 4
movzx ecx, byte [0x623349]
push ecx
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x16c]
mov edx, dword [eax + 0xc]
call edx
movzx eax, al
test eax, eax
je 0x428347
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig2_DESCRIPTION_failed_d_n
push 0xe6
push 0x5e94b4
push 4
movzx ecx, byte [0x623349]
push ecx
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x16c]
push ecx
mov edx, dword [eax + 0x10]
call edx
add esp, 0x1c
xor eax, eax
jne 0x4282d8
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0x1388
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x24]
push edx
push 2
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00403180
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret