Function at 0x41f030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e54f
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4b9070]
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.004520f0
mov esi, eax
mov ecx, esi
call fcn.00451e90
cmp byte [0x4bd4f0], 0
xorps xmm0, xmm0
movsd qword [ebp - 0xa8], xmm0
jne 0x41f0dc
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41f0ce
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd4f0
sub esp, 0xc
push 0x63
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.00451f60
jmp 0x41f0d0
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4be1b4], eax
mov ecx, esi
call fcn.00451ea0
mov ecx, dword [0x4be1b4]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov edx, dword [0x4be1b4]
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 [0x4be1b4]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be1b4]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
call fcn.004520f0
mov esi, eax
mov ecx, esi
call fcn.00451e90
cmp byte [ebp - 0x71], 0
je 0x41f1e8
cmp byte [0x4bd53a], 0
jne 0x41f19c
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x41f18e
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd53a
sub esp, 0xc
push 0x66
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.00451f60
jmp 0x41f190
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4be238], eax
mov ecx, esi
call fcn.00451ea0
mov ecx, dword [0x4be238]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov eax, dword [0x4be238]
push str.Self_removing_process_canceled
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x4be238]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be238]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
jmp 0x41f91e
cmp byte [0x4bd583], 0
jne 0x41f241
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x41f233
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd583
sub esp, 0xc
push 0x6a
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.00451f60
jmp 0x41f235
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4be060], eax
mov ecx, esi
call fcn.00451ea0
mov ecx, dword [0x4be060]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov ecx, dword [0x4be060]
push str.DeinstallServiceInProc_entry
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x4be060]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be060]
add ecx, 0xd0
call fcn.00451ea0
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.0041c460
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x41f40b
call fcn.004520f0
mov esi, eax
mov ecx, esi
call fcn.00451e90
cmp byte [0x4bd546], 0
jne 0x41f32f
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x41f328
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd546
sub esp, 0xc
push 0x6e
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x20
call fcn.00451f60
jmp 0x41f32a
xor eax, eax
mov dword [0x4be0d4], eax
mov ecx, esi
call fcn.00451ea0
mov ecx, dword [0x4be0d4]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov eax, dword [0x4be0d4]
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.00418920
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
push dword [eax]
call fcn.0041ab30
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 0x41f3ad
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 [0x4be0d4]
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 0x41f3e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, dword [0x4be0d4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be0d4]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
jmp 0x41f8c7
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.00418750
mov esi, eax
push 0x4a2b80
mov byte [ebp - 4], 9
call fcn.0044c510
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.0041ae10
push str.AuxiliaryService.exe
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8c]
call fcn.0041ae10
push 0x4a4440
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x90]
call fcn.0041ae10
push esi
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x84]
call fcn.00426da0
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 0x41f4f8
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 0x41f519
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 0x41f53a
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 0x41f55b
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 0x41f57f
push dword [edi - 0xc]
lea ecx, [ebp - 0x84]
call fcn.0041b2c0
mov edi, dword [ebp - 0x84]
lea ecx, [ebp - 0x70]
call fcn.0041c0b0
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 0x41f5c6
lea ecx, [ebp - 0x70]
call fcn.004176a0
xor al, al
jmp 0x41f68a
cmp dword [ebp - 0x88], 1
je 0x41f601
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 0x41f601
lea ecx, [ebp - 0x70]
call fcn.004176a0
xor al, al
jmp 0x41f68a
push 0
push dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x41f620
lea ecx, [ebp - 0x70]
call fcn.004176a0
xor al, al
jmp 0x41f68a
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 0x41f667
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.004176a0
mov al, byte [ebp - 0x71]
mov byte [ebp - 4], 0x14
test al, al
jne 0x41f7bc
call fcn.004520f0
mov edi, eax
mov ecx, edi
call fcn.00451e90
cmp byte [0x4bd4e2], 0
jne 0x41f6f6
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x41f6ef
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd4e2
sub esp, 0xc
push 0x7e
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x20
call fcn.00451f60
jmp 0x41f6f1
xor eax, eax
mov dword [0x4be124], eax
mov ecx, edi
call fcn.00451ea0
mov ecx, dword [0x4be124]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov eax, dword [0x4be124]
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.00418920
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x78]
push dword [eax]
call fcn.0041ab30
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 0x41f768
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 [0x4be124]
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 0x41f79c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov ecx, dword [0x4be124]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be124]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
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.004520f0
mov ecx, eax
mov dword [ebp - 0x7c], eax
call fcn.00451e90
cmp byte [0x4bd581], 0
jne 0x41f840
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0x1e
test eax, eax
je 0x41f835
movsd xmm0, qword [ebp - 0xa8]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd581
sub esp, 0xc
push 0x81
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.00451f60
jmp 0x41f837
xor eax, eax
mov byte [ebp - 4], 0x1d
mov dword [0x4be26c], eax
mov ecx, dword [ebp - 0x7c]
call fcn.00451ea0
mov ecx, dword [0x4be26c]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov ecx, dword [0x4be26c]
push str.DeinstallServiceInProc_exit
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x4be26c]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be26c]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
test edi, edi
je 0x41f898
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x41f89e
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41f8a5
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 0x41f8c7
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 0x41f8fd
test eax, eax
je 0x41f8f3
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 0x41f90e
push eax
call edi
mov dword [ebp - 0x9c], 0
push 4
push dword [ebp - 0x94]
call fcn.00455ac5
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.0045527a
mov esp, ebp
pop ebp
ret