Function at 0x44f920
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bae76
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x44fa1a
call fcn.004508e0
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.main
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], str.ServiceNT
push str.cannot_open_services_manager
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
or esi, 0xffffffff
mov byte [ebp - 4], 2
test ecx, ecx
je 0x44f9dd
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44f9dd
mov dword [ebp - 0x2c], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x44fc5b
lock xadd dword [ecx + 4], esi
dec esi
jne 0x44fc5b
mov dword [ebp - 0x38], 0
mov eax, dword [ecx]
call dword [eax]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp esi, eax
jne 0x44fa36
mov al, 1
jmp 0x44fa44
push 0
push 0x5c763c
mov ecx, esi
call fcn.0044b880
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x44fa60
mov ecx, esi
call fcn.00453230
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x5c763c
mov ecx, dword [ebp + 0xc]
call fcn.00453230
mov ecx, dword [ebp + 8]
mov esi, eax
mov ebx, dword [section..data]
call fcn.00453230
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.00453230
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push 0
push 0
push esi
push 1
push ebx
push 0x10
push 0xf01ff
push edi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x44fc6f
call fcn.004508e0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.cannot_create_service:
push eax
call fcn.00449030
push str.in__
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 5
push eax
call fcn.00448f40
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
cmp eax, edx
je 0x44fb05
mov eax, dword [eax]
test eax, eax
je 0x44fb05
mov dword [ebp - 0x10], eax
lea esi, [eax + 4]
mov edx, dword [esi]
mov eax, edx
lea ecx, [edx + 1]
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x44faf3
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], 1
call fcn.00453a60
push 0x5c7b18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00448f40
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.004516e0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], str.main
mov dword [ebp - 0x3c], 9
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.ServiceNT
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
call fcn.0044ef50
add esp, 0x10
mov ecx, dword [ebp - 0x38]
or esi, 0xffffffff
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x44fba1
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44fba1
mov dword [ebp - 0x38], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x44fbc1
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44fbc1
mov dword [ebp - 0x2c], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x44fbe1
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44fbe1
mov dword [ebp - 0x44], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x44fc01
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44fc01
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x44fc1a
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44fc1a
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x44fc3a
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44fc3a
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x13
test ecx, ecx
je 0x44fc5b
lock xadd dword [ecx + 4], esi
dec esi
jne 0x44fc5b
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx]
call dword [eax]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret