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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4320d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov esi, 0xf
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x40], 0
push 2
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40c2ed
sub esp, 0x18
mov esi, esp
mov ecx, esi
push 0x20
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
call fcn.00401ed0
mov dword [esi + 0x10], 0x16
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.Open_SC_Manager_failed]
push 2
movups xmmword [eax], xmm0
mov ecx, dword [0x429938]
mov dword [eax + 0x10], ecx
mov cx, word [0x42993c]
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0
mov dword [esi], eax
call fcn.0040c510
add esp, 0x1c
xor al, al
jmp 0x40c4ed
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x28]
push eax
call fcn.0040bf30
cmp dword [ebp - 0x18], 0
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 1
mov dword [ebp - 0x64], eax
je 0x40c468
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push str.Service_full_path_
push eax
call fcn.004033a0
add esp, 0xc
push 1
push 0x429940
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402ec0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm1
call fcn.004018e0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov ecx, dword [ebp - 0x60]
cmovae esi, dword [ebp - 0x28]
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x40c381
mov edx, dword [ecx]
mov ecx, edx
jmp 0x40c383
mov edx, ecx
push 0x429584
push 0
push 0x429584
push 0
push 0
push esi
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
sub esp, 0x18
mov dword [ebp - 0x60], eax
mov esi, esp
mov ecx, esi
push 0x20
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
test eax, eax
jne 0x40c41b
call fcn.00401ed0
mov dword [esi + 0x10], 0x1d
mov edx, eax
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.Install_create_service_failed]
push 2
movups xmmword [edx], xmm0
movq xmm0, qword [0x429968]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x429970]
mov dword [edx + 0x18], ecx
mov al, byte [0x429974]
mov byte [edx + 0x1c], al
mov byte [edx + 0x1d], 0
mov dword [esi], edx
call fcn.0040c510
add esp, 0x1c
jmp 0x40c462
call fcn.00401ed0
mov dword [esi + 0x10], 0x16
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str.Create_service_success]
push 0
movups xmmword [eax], xmm0
mov ecx, dword [0x429988]
mov dword [eax + 0x10], ecx
mov cx, word [0x42998c]
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0
mov dword [esi], eax
call fcn.0040c510
add esp, 0x1c
push dword [ebp - 0x60]
call dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x2c]
push edi
call eax
mov ecx, dword [ebp - 0x14]
mov al, 1
mov byte [ebp - 0x59], al
cmp ecx, 0x10
jb 0x40c4a3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c496
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4da
push ecx
push edx
call fcn.0042441b
mov al, byte [ebp - 0x59]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp esi, 0x10
jb 0x40c4ed
mov edx, dword [ebp - 0x40]
lea ecx, [esi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c4e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c4e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042441b
mov al, byte [ebp - 0x59]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424429
mov esp, ebp
pop ebp
ret