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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x658bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 2
push 0
push 0
mov dword [ebp - 0x10], esi
mov byte [esi + 0x54], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4517ae
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c61f7
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x48], 0x10
push edi
lea edi, [esi + 0x34]
mov ecx, edi
jb 0x4517bc
mov ecx, dword [edi]
push ebx
push 0x10
push ecx
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
call eax
mov ebx, eax
test ebx, ebx
jne 0x4518a9
cmp dword [esi + 0x18], 0x10
lea ebx, [esi + 4]
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x18], eax
mov eax, ebx
jb 0x4517ee
mov eax, dword [ebx]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x45184a
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x451847
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 8], eax
jne 0x451847
mov esi, dword [ebp - 0x10]
mov al, 1
jmp 0x45184c
mov esi, dword [ebp - 0x10]
xor al, al
mov byte [esi + 0x57], al
cmp dword [ebx + 0x14], 0x10
jb 0x451857
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x451861
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
push 3
push 1
push 0x10
push 0x63f7d5
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
test ebx, ebx
jne 0x4518a5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c61f7
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x4518ab
mov al, 1
push 0
push 0
push ebx
mov byte [esi + 0x55], al
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x451966
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x451966
push ebx
call esi
cmp dword [edi + 0x14], 0x10
jb 0x4518e3
mov edi, dword [edi]
push 0x12
push edi
push dword [ebp - 0xc]
call dword [ebp - 0x20]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
mov ebx, eax
push 0xffffffffffffffff
push ebx
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.00461590
push 0x4472c0
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 0x461da0
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_____]
test edi, edi
je 0x451960
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ecx, dword [ebp - 0x10]
test eax, eax
setne al
mov byte [ecx + 0x56], al
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005c61f7
mov esp, ebp
pop ebp
ret