Function at 0x4edca0
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b62f1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 - 0x1c], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4edcdc
mov dword [eax], 0
lea eax, [ecx + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [eax], 0
test ecx, ecx
je 0x4edcf4
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push 0x770210
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
call fcn.00498af0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push 0x776d80
lea eax, [ebp - 0x14]
push eax
call fcn.00498af0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4ee149
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4ee149
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8acf], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x2c], xmm0
jne 0x4eddb6
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4eddab
movsd xmm0, qword [ebp - 0x2c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8acf
sub esp, 0xc
push 0x1fd
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIutils_collector.cpp
push 0x48
call fcn.00516700
jmp 0x4eddad
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x7bb3d4], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb3d4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb3d4]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x24], eax
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4ee1a7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004990b0
test al, al
jne 0x4ede12
push esi
lea ecx, [ebp + 8]
call fcn.00498590
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4ee1b1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004990b0
test al, al
jne 0x4ede4d
push esi
lea ecx, [ebp - 0x1c]
call fcn.00498590
mov byte [ebp - 4], 6
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
push edi
push esi
push str.Logging:_user___s___domain___s_...
push dword [0x7bb3d4]
call dword [ebp - 0x24]
add esp, 0x10
add esi, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ede85
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 8
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4edea0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, dword [0x7bb3d4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb3d4]
lea ecx, [ecx + 0xd0]
call fcn.00516640
push 0x10
call fcn.00669f3d
mov edx, eax
mov dword [ebp - 0x1c], 1
add esp, 4
mov dword [ebp + 8], edx
mov dword [ebp - 0x24], edx
mov dword [edx], vtable.ATL::CAccessToken.0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ecx]
mov ecx, edx
mov byte [ebp - 4], 0xa
call fcn.004ec030
mov byte [ebp - 4], 9
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
push 9
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x4ee009
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8ad9], 0
jne 0x4edf8b
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4edf80
movsd xmm0, qword [ebp - 0x2c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8ad9
sub esp, 0xc
push 0x202
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIutils_collector.cpp
push 0x48
call fcn.00516700
jmp 0x4edf82
xor eax, eax
mov byte [ebp - 4], 9
mov dword [0x7bb3c0], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb3c0]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov ecx, dword [0x7bb3c0]
push str.Impersonating...
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x7bb3c0]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb3c0]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004ce220
test al, al
je 0x4ee00c
or ebx, 0xffffffff
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
cmp esi, eax
je 0x4ee13f
mov ecx, dword [esi]
mov dword [esi], edi
test ecx, ecx
je 0x4ee14c
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x4ee14c
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ee01d
mov dword [eax], esi
call fcn.00516890
mov ebx, eax
mov ecx, ebx
call fcn.00516630
cmp byte [0x7b8ad2], 0
jne 0x4ee07a
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4ee073
movsd xmm0, qword [ebp - 0x2c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8ad2
sub esp, 0xc
push 0x20b
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.00516700
jmp 0x4ee075
xor eax, eax
mov dword [0x7bb3ac], eax
mov ecx, ebx
call fcn.00516640
mov ecx, dword [0x7bb3ac]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb3ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp + 0x10], eax
mov edx, esi
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 8]
call fcn.004954b0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0xc]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0x1c], 3
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0xf
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4ee0e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
push dword [esi]
push str.GetLogonToken_failed:__s
push dword [0x7bb3ac]
call dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 0x10
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ee11a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov ecx, dword [0x7bb3ac]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb3ac]
lea ecx, [ecx + 0xd0]
call fcn.00516640
jmp 0x4edfe4
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x4ee14c
mov esi, dword [ebp - 0x20]
cmp dword [esi], 0
mov edx, dword [ebp - 0x14]
setne byte [ebp + 0x13]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ee171
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0x12
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4ee190
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
int3