Function at 0x451730
Capabilities:
Create service
Modify service
Start service
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x65ebc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov ebx, ecx
push 0
push 0
mov byte [ebx + 0x54], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x45176f
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005caad7
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x48], 0xf
lea eax, [ebx + 0x34]
jbe 0x45177a
mov eax, dword [eax]
push edi
push 0x10
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov dword [ebp - 0x1c], eax
call eax
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x451866
cmp dword [ebx + 0x18], 0xf
lea edi, [ebx + 4]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, edi
jbe 0x4517ad
mov eax, dword [edi]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x451809
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x451806
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jne 0x451806
mov esi, dword [ebp - 0x10]
mov al, 1
jmp 0x45180b
mov esi, dword [ebp - 0x10]
xor al, al
mov byte [ebx + 0x57], al
cmp dword [edi + 0x14], 0xf
jbe 0x451816
mov edi, dword [edi]
cmp dword [ebx + 0x48], 0xf
lea eax, [ebx + 0x34]
jbe 0x451821
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 3
push 1
push 0x10
push 0x644805
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x451862
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005caad7
mov esp, ebp
pop ebp
ret
xor cl, cl
jmp 0x451868
mov cl, 1
push 0
push 0
push eax
mov byte [ebx + 0x55], cl
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x451945
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xc]
cmp eax, 0x422
jne 0x45192a
push esi
call edi
cmp dword [ebx + 0x48], 0xf
lea eax, [ebx + 0x34]
jbe 0x4518a6
mov eax, dword [eax]
push 0x12
push eax
push dword [ebp - 0x10]
call dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.GLE_
mov edi, eax
call fcn.004655a0
push 0x4472f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x465db0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [ebp - 0xc]
test edi, edi
je 0x451924
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne al
mov byte [ebx + 0x56], al
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005caad7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
jmp 0x45192a