Function at 0x511c60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6be8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7badd0], 0
jne 0x511cf2
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x511ce4
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7badd0
sub esp, 0xc
push 0x3f
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentCommonServiceControlHelper.cpp
push 0x48
call fcn.00516700
jmp 0x511ce6
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x7bbce4], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bbce4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bbce4]
mov esi, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x5121cf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.004990b0
test al, al
jne 0x511d4e
push esi
lea ecx, [ebp - 0x14]
call fcn.00498590
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x14]
push esi
push str.__s_:_Terminating_service...
push dword [0x7bbce4]
call edi
add esp, 0xc
add esi, 0xfffffff0
mov dword [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x511d88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x7bbce4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bbce4]
lea ecx, [ecx + 0xd0]
call fcn.00516640
movss xmm3, dword [0x7786b8]
lea ecx, [ebp - 0x70]
movss xmm2, dword [0x7786c8]
sub esp, 0xc
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x78], 0
mov dword [esp + 4], 0x40100000
call fcn.004db8c0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], 0
call fcn.00513480
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
call fcn.00513480
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.00499fa0
push ecx
mov eax, ecx
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x7c]
call fcn.005137e0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
push eax
mov ecx, ebx
call fcn.0050b4c0
mov edi, eax
test edi, edi
jns 0x511ee0
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7badcb], 0
jne 0x511ea4
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x511e99
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7badcb
sub esp, 0xc
push 0x52
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentCommonServiceControlHelper.cpp
push 0x20
call fcn.00516700
jmp 0x511e9b
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [0x7bbcf4], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bbcf4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bbcf4]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
mov esi, dword [esi + 4]
mov ebx, dword [eax + 0x48]
call fcn.00493480
mov ecx, eax
test ecx, ecx
jne 0x5121e3
jmp 0x5121d9
mov byte [ebp - 4], 0x11
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x512271
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x511f10
xor ecx, ecx
jmp 0x511f24
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511f15
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.004999c0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, eax
cmp word [ecx], 0
jne 0x511f45
or ecx, 0xffffffff
jmp 0x511f49
sub ecx, edi
sar ecx, 1
mov eax, dword [edi - 0xc]
lea ebx, [edi - 0x10]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00499370
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x24]
lea esi, [eax - 0x10]
cmp esi, ebx
je 0x511fbc
mov ecx, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x511fad
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x511fad
mov ecx, esi
call fcn.004998f0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x14
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x511fa5
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x511fbc
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.004999c0
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 0x15
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x511fd5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x24], esi
nop
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x20]
call fcn.0050b800
mov ecx, dword [ebp - 0x34]
add esp, 0x1c
xor ebx, ebx
test ecx, ecx
je 0x51206a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
cmp ebx, ecx
jae 0x51227b
test edi, edi
je 0x5121cf
push edi
push dword [eax + 0x10]
call fcn.00678fb9
add esp, 8
test eax, eax
jne 0x512056
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x512056
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x512056
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
inc ebx
mov ecx, dword [ebp - 0x34]
add eax, 0x38
mov dword [ebp - 0x18], eax
cmp ebx, ecx
jb 0x51200e
mov esi, dword [ebp - 0x24]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, 0x64
jb 0x511fe0
add edi, 0xfffffff0
mov byte [ebp - 4], 0x16
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x51209b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call fcn.0067bcf9
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.00512c50
mov dword [ebp - 4], 0x17
cmp byte [ebp - 0x78], 0
je 0x5120c3
lea ecx, [ebp - 0x7c]
call fcn.00513500
lea ecx, [ebp - 0x70]
call fcn.00512c00
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 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.004990b0
test al, al
jne 0x512208
push esi
lea ecx, [ebp - 0x14]
call fcn.00498590
mov byte [ebp - 4], 0xf
mov esi, dword [ebp - 0x14]
push edi
push esi
push str.__s_:_Cannot_query_service_config__hr_x
push dword [0x7bbcf4]
call ebx
add esp, 0x10
add esi, 0xfffffff0
mov byte [ebp - 4], 0x10
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51223d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov ecx, dword [0x7bbcf4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bbcf4]
lea ecx, [ecx + 0xd0]
call fcn.00516640
push edi
push str.Cannot_query_service_config__hr_x_n
call fcn.00511bd0
add esp, 8
push edi
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x80070057
call fcn.00490960
int3