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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x14]
xor edi, edi
call fcn.004022b0
mov dword [ebp - 4], edi
or ebx, 0xffffffff
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
je 0x401b67
push 0x5c
push eax
call fcn.00406084
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x401941
mov eax, dword [ebp - 0x14]
sub ecx, eax
sar ecx, 1
cmp ecx, ebx
je 0x401941
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x14]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push eax
call fcn.004021e0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401941
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x15
push str.CortexLauncherService
mov ecx, 0x4278ec
call fcn.004023f0
call fcn.00401620
mov ecx, eax
test ecx, ecx
jne 0x401967
push 0x80004005
call fcn.00401360
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
test esi, esi
jne 0x40197e
xor ecx, ecx
jmp 0x401992
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401983
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004023f0
lea eax, [ebp - 0x10]
mov edi, 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], edi
call fcn.00401e50
mov byte [ebp - 4], 7
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00401f60
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov esi, dword [ebp - 0x10]
lea eax, [edx - 0x10]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x401a24
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x401a15
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x401a15
mov ecx, dword [ebp - 0x20]
call fcn.00402390
mov dword [ebp - 0x20], eax
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x401a0a
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
add esi, 0x10
mov dword [ebp - 0x10], esi
jmp 0x401a24
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004023f0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401a42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401a60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x401b4c
mov edi, 0xa
mov eax, dword [0x4278ec]
push 0
push 0
push 0
push 0
push 0
push esi
push 1
push 2
push 0x10
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
mov dword [ebp - 0x20], eax
cmp eax, 0x430
jne 0x401adb
push edi
push 0x422c00
call fcn.00403530
add esp, 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x18]
test edi, edi
jg 0x401a81
mov eax, dword [ebp - 0x20]
push eax
push str.Create_service_return:_d
call fcn.00403530
add esp, 8
cmp dword [ebp - 0x20], 0x431
jne 0x401b28
push 0xf01ff
push dword [0x4278ec]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x401b38
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 1
push 2
push 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x401b2b
mov eax, dword [ebp - 0x1c]
test ebx, ebx
mov ecx, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push dword [ebp - 0x18]
call edi
mov edi, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x401b67
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x401b86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret