Function at 0x4a7a60
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532021
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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 0x4a7a9c
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 0x4a7ab4
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push 0x580190
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
call fcn.00452890
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push 0x586be0
lea eax, [ebp - 0x14]
push eax
call fcn.00452890
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4a7f09
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a7f09
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c2218], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x2c], xmm0
jne 0x4a7b76
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4a7b6b
movsd xmm0, qword [ebp - 0x2c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2218
sub esp, 0xc
push 0x1fd
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUIutils_collector.cpp
push 0x48
call fcn.004d0210
jmp 0x4a7b6d
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x5c4af8], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4af8]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4af8]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x24], eax
call fcn.0044d220
mov ecx, eax
test ecx, ecx
je 0x4a7f67
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.00452e50
test al, al
jne 0x4a7bd2
push esi
lea ecx, [ebp + 8]
call fcn.00452330
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
call fcn.0044d220
mov ecx, eax
test ecx, ecx
je 0x4a7f71
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.00452e50
test al, al
jne 0x4a7c0d
push esi
lea ecx, [ebp - 0x1c]
call fcn.00452330
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 [0x5c4af8]
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 0x4a7c45
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 0x4a7c60
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, dword [0x5c4af8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4af8]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
push 0x10
call fcn.004eb06d
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.004a5e00
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 0x4a7dc9
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c2222], 0
jne 0x4a7d4b
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4a7d40
movsd xmm0, qword [ebp - 0x2c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2222
sub esp, 0xc
push 0x202
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUIutils_collector.cpp
push 0x48
call fcn.004d0210
jmp 0x4a7d42
xor eax, eax
mov byte [ebp - 4], 9
mov dword [0x5c4ae4], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4ae4]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov ecx, dword [0x5c4ae4]
push str.Impersonating...
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x5c4ae4]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4ae4]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00487ff0
test al, al
je 0x4a7dcc
or ebx, 0xffffffff
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
cmp esi, eax
je 0x4a7eff
mov ecx, dword [esi]
mov dword [esi], edi
test ecx, ecx
je 0x4a7f0c
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x4a7f0c
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a7ddd
mov dword [eax], esi
call fcn.004d03a0
mov ebx, eax
mov ecx, ebx
call fcn.004d0140
cmp byte [0x5c221b], 0
jne 0x4a7e3a
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4a7e33
movsd xmm0, qword [ebp - 0x2c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c221b
sub esp, 0xc
push 0x20b
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.004d0210
jmp 0x4a7e35
xor eax, eax
mov dword [0x5c4ad0], eax
mov ecx, ebx
call fcn.004d0150
mov ecx, dword [0x5c4ad0]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4ad0]
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.0044f250
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0xc]
push dword [eax]
call fcn.004523d0
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 0x4a7ea5
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 [0x5c4ad0]
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 0x4a7eda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov ecx, dword [0x5c4ad0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4ad0]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
jmp 0x4a7da4
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x4a7f0c
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 0x4a7f31
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 0x4a7f50
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.0044a700
push 0x80004005
call fcn.0044a700
int3