Function at 0x41f390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e91f
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4ba070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x71], cl
mov dword [ebp - 0xac], 0
call fcn.00452480
mov esi, eax
mov ecx, esi
call fcn.00452220
cmp byte [0x4be4f0], 0
xorps xmm0, xmm0
movsd qword [ebp - 0xa8], xmm0
jne 0x41f43c
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41f42e
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be4f0
sub esp, 0xc
push 0x63
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.004522f0
jmp 0x41f430
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4bf1d0], eax
mov ecx, esi
call fcn.00452230
mov ecx, dword [0x4bf1d0]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov edx, dword [0x4bf1d0]
mov eax, dword [edx]
mov ecx, dword [eax + 0x48]
movzx eax, byte [ebp - 0x71]
push eax
push str.Initiate_self_removing_process__d
push edx
call ecx
mov ecx, dword [0x4bf1d0]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf1d0]
lea ecx, [ecx + 0xd0]
call fcn.00452230
call fcn.00452480
mov esi, eax
mov ecx, esi
call fcn.00452220
cmp byte [ebp - 0x71], 0
je 0x41f548
cmp byte [0x4be53a], 0
jne 0x41f4fc
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x41f4ee
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be53a
sub esp, 0xc
push 0x66
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.004522f0
jmp 0x41f4f0
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4bf254], eax
mov ecx, esi
call fcn.00452230
mov ecx, dword [0x4bf254]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov eax, dword [0x4bf254]
push str.Self_removing_process_canceled
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x4bf254]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf254]
lea ecx, [ecx + 0xd0]
call fcn.00452230
jmp 0x41fc7e
cmp byte [0x4be583], 0
jne 0x41f5a1
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x41f593
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be583
sub esp, 0xc
push 0x6a
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.004522f0
jmp 0x41f595
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4bf07c], eax
mov ecx, esi
call fcn.00452230
mov ecx, dword [0x4bf07c]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov ecx, dword [0x4bf07c]
push str.DeinstallServiceInProc_entry
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x4bf07c]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf07c]
add ecx, 0xd0
call fcn.00452230
mov dword [ebp - 0xa0], vtable.ATL::CAccessToken.0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
push ecx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 3
call fcn.0041c7c0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x41f76b
call fcn.00452480
mov esi, eax
mov ecx, esi
call fcn.00452220
cmp byte [0x4be546], 0
jne 0x41f68f
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x41f688
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be546
sub esp, 0xc
push 0x6e
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x20
call fcn.004522f0
jmp 0x41f68a
xor eax, eax
mov dword [0x4bf0f0], eax
mov ecx, esi
call fcn.00452230
mov ecx, dword [0x4bf0f0]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov eax, dword [0x4bf0f0]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.00418c90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
push dword [eax]
call fcn.0041ae90
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
add edx, 0xfffffff0
mov dword [ebp - 0xac], 1
or esi, 0xffffffff
mov byte [ebp - 4], 7
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41f70d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 5
push dword [eax]
push str.GetEffectiveToken___failed___s_
push dword [0x4bf0f0]
call dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41f746
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, dword [0x4bf0f0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf0f0]
lea ecx, [ecx + 0xd0]
call fcn.00452230
jmp 0x41fc27
xorps xmm0, xmm0
mov dword [ebp - 0x108], 0
lea ecx, [ebp - 0xb4]
movlpd qword [ebp - 0x100], xmm0
movlpd qword [ebp - 0xf8], xmm0
movlpd qword [ebp - 0xf0], xmm0
movlpd qword [ebp - 0xe8], xmm0
movlpd qword [ebp - 0xe0], xmm0
movlpd qword [ebp - 0xd8], xmm0
movlpd qword [ebp - 0xd0], xmm0
mov dword [ebp - 0x10c], 0x44
mov dword [ebp - 0x104], str.WinSta0Default
movups xmmword [ebp - 0xc8], xmm0
call fcn.00418ac0
mov esi, eax
push 0x4a3b80
mov byte [ebp - 4], 9
call fcn.0044c8a0
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.0041b170
push str.AuxiliaryService.exe
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8c]
call fcn.0041b170
push 0x4a5458
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x90]
call fcn.0041b170
push esi
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x84]
call fcn.00427120
add esp, 0x10
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0xf
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f858
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x8c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f879
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f89a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x15
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f8bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov edi, dword [ebp - 0x84]
cmp dword [edi - 4], 1
jle 0x41f8df
push dword [edi - 0xc]
lea ecx, [ebp - 0x84]
call fcn.0041b620
mov edi, dword [ebp - 0x84]
lea ecx, [ebp - 0x70]
call fcn.0041c410
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0xb8]
push ecx
push 4
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], eax
push ecx
push 8
push eax
mov dword [ebp - 0x88], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41f926
lea ecx, [ebp - 0x70]
call fcn.00417a10
xor al, al
jmp 0x41f9ea
cmp dword [ebp - 0x88], 1
je 0x41f961
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push 1
push 2
push 0
push 0xb
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x41f961
lea ecx, [ebp - 0x70]
call fcn.00417a10
xor al, al
jmp 0x41f9ea
push 0
push dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x41f980
lea ecx, [ebp - 0x70]
call fcn.00417a10
xor al, al
jmp 0x41f9ea
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push dword [ebp - 0x80]
push 0x428
push 0
push 0
push 0
push edi
push 0
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x88], 1
mov dword [ebp - 0x7c], eax
je 0x41f9c7
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x80]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
lea ecx, [ebp - 0x70]
setne byte [ebp - 0x71]
call fcn.00417a10
mov al, byte [ebp - 0x71]
mov byte [ebp - 4], 0x14
test al, al
jne 0x41fb1c
call fcn.00452480
mov edi, eax
mov ecx, edi
call fcn.00452220
cmp byte [0x4be4e2], 0
jne 0x41fa56
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x41fa4f
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be4e2
sub esp, 0xc
push 0x7e
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x20
call fcn.004522f0
jmp 0x41fa51
xor eax, eax
mov dword [0x4bf140], eax
mov ecx, edi
call fcn.00452230
mov ecx, dword [0x4bf140]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov eax, dword [0x4bf140]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x7c]
call fcn.00418c90
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x78]
push dword [eax]
call fcn.0041ae90
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
add edx, 0xfffffff0
mov dword [ebp - 0xac], 2
mov byte [ebp - 4], 0x1a
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41fac8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 0x18
push dword [eax]
push str.CreateProcessAsUser___failed___s_
push dword [0x4bf140]
call edi
mov edx, dword [ebp - 0x78]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1b
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fafc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov ecx, dword [0x4bf140]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf140]
lea ecx, [ecx + 0xd0]
call fcn.00452230
mov esi, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], esi
mov edi, dword [ebp - 0xc4]
mov dword [ebp - 0xb4], edi
mov byte [ebp - 4], 0x1d
call fcn.00452480
mov ecx, eax
mov dword [ebp - 0x7c], eax
call fcn.00452220
cmp byte [0x4be581], 0
jne 0x41fba0
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0x1e
test eax, eax
je 0x41fb95
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be581
sub esp, 0xc
push 0x81
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.004522f0
jmp 0x41fb97
xor eax, eax
mov byte [ebp - 4], 0x1d
mov dword [0x4bf288], eax
mov ecx, dword [ebp - 0x7c]
call fcn.00452230
mov ecx, dword [0x4bf288]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov ecx, dword [0x4bf288]
push str.DeinstallServiceInProc_exit
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x4bf288]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf288]
lea ecx, [ecx + 0xd0]
call fcn.00452230
test edi, edi
je 0x41fbf8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x41fbfe
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41fc05
push esi
call edi
mov edx, dword [ebp - 0x84]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1f
or esi, 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41fc27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], vtable.ATL::CAccessToken.0
test ecx, ecx
je 0x41fc5d
test eax, eax
je 0x41fc53
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x98], 0
test eax, eax
je 0x41fc6e
push eax
call edi
mov dword [ebp - 0x9c], 0
push 4
push dword [ebp - 0x94]
call fcn.00455e65
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045561a
mov esp, ebp
pop ebp
ret