Function at 0x62a094
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x62a09d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407c84
mov eax, dword [ebp - 8]
call fcn.00407c84
mov eax, dword [ebp - 0xc]
call fcn.00407c84
xor eax, eax
push ebp
push 0x62a3c4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00407d28
push eax
push 1
push 3
push 1
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00407d28
push eax
mov eax, dword [ebp - 4]
call fcn.00407d28
push eax
push ebx
call sub.advapi32.dll_CreateServiceW
push eax
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x62a3e0
call fcn.0066fd3c
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, 0x62a3f0
mov edx, dword [ebp - 4]
mov eax, 0x62a3e0
call fcn.006700f0
xor edx, edx
push ebp
push 0x62a366
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x62a3f0
mov edx, 0x62a420
mov eax, 0x80000002
call fcn.00627864
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x10]
call fcn.00428200
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x62a1a6
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x62a1a6
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00406d4c
mov ebx, eax
test ebx, ebx
je 0x62a1b1
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
sub ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x10]
call fcn.00407320
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 4
call fcn.00407584
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x62a1fd
mov eax, ebx
sub eax, 0xa
cmp word [eax], 1
je 0x62a1fd
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00406d4c
mov ebx, eax
lea eax, [ebp - 0x18]
call fcn.00407318
mov edx, 1
dec edx
test eax, eax
je 0x62a214
cmp edx, dword [eax - 4]
jb 0x62a219
call fcn.00405714
inc edx
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x24]
mov ecx, 4
call fcn.0040452c
xor ebx, ebx
jmp 0x62a266
lea eax, [ebp - 0x38]
push eax
mov esi, ebx
add esi, esi
add esi, esi
inc esi
mov edx, esi
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00407320
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x18]
call fcn.0040721c
jne 0x62a265
mov edx, esi
lea eax, [ebp - 0x10]
mov ecx, 4
call fcn.006704a0
inc ebx
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00406d5c
call fcn.00406ef4
test eax, eax
jns 0x62a27c
add eax, 3
sar eax, 2
dec eax
cmp ebx, eax
jle 0x62a22f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x62a2a3
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x62a2a3
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00406d4c
test eax, eax
je 0x62a2ac
sub eax, 4
mov eax, dword [eax]
test eax, eax
jns 0x62a2b3
add eax, 3
sar eax, 2
inc eax
test eax, eax
jns 0x62a2c0
call fcn.00405714
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 4
call fcn.00407584
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x62a2f3
mov eax, ebx
sub eax, 0xa
cmp word [eax], 1
je 0x62a2f3
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00406d4c
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.00407318
mov edx, 1
dec edx
test eax, eax
je 0x62a30a
cmp edx, dword [eax - 4]
jb 0x62a30f
call fcn.00405714
inc edx
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x20]
mov ecx, 4
call fcn.0040452c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004070e0
push 4
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
call fcn.00429c54
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x62a3f0
mov edx, 0x62a420
mov eax, 0x80000002
call fcn.00627630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x62a384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62a3cb
lea eax, [ebp - 0x48]
call fcn.0042466c
lea eax, [ebp - 0x38]
call fcn.00406b30
lea eax, [ebp - 0x34]
call fcn.0042466c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00406b54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407c94
ret