Function at 0x4bf3b0
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x73e344
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x108
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
je 0x4bfaef
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4bfaef
push dword [ebp - 0x44]
push 0
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
test eax, eax
jne 0x4bf54d
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
mov dword [ebp - 0x1c], eax
je 0x4bf46e
cmp byte [0x8f028c], 0
je 0x4bf46e
test cl, cl
je 0x4bf53e
cmp cl, 6
jb 0x4bf53e
shr ecx, 8
cmp cl, 1
jb 0x4bf53e
jmp 0x4bf476
test cl, cl
je 0x4bf53e
mov dword [ebp - 0x18], 0x1163301
mov esi, dword [ebp - 0x18]
push 0
sub esi, 0xa05759
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0056bc00
add esp, 0xc
mov ecx, eax
mov eax, dword [0x83f0d0]
mov edx, esi
mov dword [ebp - 0x28], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bf4b6
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4bf4c9
mov edi, dword [ecx]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov eax, esp
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x58]
push edx
push esi
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x50], edi
push dword [ebp - 0x28]
mov dword [eax], 0xd2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00513f20
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4bf53e
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bf534
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bfc13
push edx
push ecx
call fcn.00512900
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 0
jmp 0x4bfacf
mov edi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [ebp - 0x48]
push eax
push 0
push 1
push 0
call edi
mov esi, dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x4bf991
lea eax, [ebp - 0x48]
push eax
push 0
push 1
push esi
call edi
test eax, eax
je 0x4bf991
push 0
push 0
push 4
lea eax, [ebp - 0x5c]
push eax
push 0x20000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x4bf6cb
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
mov dword [ebp - 0x1c], eax
je 0x4bf5f5
cmp byte [0x8f028c], 0
je 0x4bf5f5
test cl, cl
je 0x4bfab1
cmp cl, 6
jb 0x4bfab1
shr ecx, 8
cmp cl, 1
jb 0x4bfab1
jmp 0x4bf5fd
test cl, cl
je 0x4bfab1
mov dword [ebp - 0x28], 0x11ddb6b
mov esi, dword [ebp - 0x28]
push 0
sub esi, 0xa7ff2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0056bc00
add esp, 0xc
mov ecx, eax
mov eax, dword [0x83f0d0]
mov edx, esi
mov dword [ebp - 0x50], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], eax
lea edi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bf640
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4bf653
mov edi, dword [ecx]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, esp
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x40]
push edx
push esi
push 1
push dword [ebp - 0x28]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x50]
mov dword [eax], 0xd2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00513f20
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4bfaae
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bfaa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bfc18
jmp 0x4bfaa4
xorps xmm0, xmm0
mov dword [ebp - 0xbc], esi
movlpd qword [ebp - 0xfc], xmm0
movlpd qword [ebp - 0xf4], xmm0
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xc4], xmm0
mov dword [ebp - 0x100], 0x48
movups xmmword [ebp - 0x84], xmm0
mov byte [ebp - 4], 6
call fcn.00486340
mov edi, dword [eax]
call fcn.004be840
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4bf73f
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, esp
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], edi
push 5
mov dword [eax], 0xcd
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x9c]
push 0x759c28
push eax
call fcn.0048bbe0
add esp, 0x1c
cmp dword [ebp - 0x88], 8
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 7
push ecx
push 0
push 0
push 0x80010
push 0
push 0
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4bf94c
mov ecx, dword [0x83f0d0]
cmp byte [0xa902b2], al
je 0x4bf7fa
cmp byte [0x8f028c], al
je 0x4bf7fa
test cl, cl
je 0x4bf946
cmp cl, 6
jb 0x4bf946
shr ecx, 8
cmp cl, 1
jb 0x4bf946
jmp 0x4bf802
test cl, cl
je 0x4bf946
mov dword [ebp - 0x4c], 0x124a9cb
mov edi, dword [ebp - 0x4c]
sub edi, 0xaecd3b
push 0
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0056bc00
mov esi, eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00514b50
add esp, 0x14
mov edx, eax
mov eax, dword [0x83f0d0]
mov ecx, edi
mov dword [ebp - 0x20], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], eax
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf860
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4bf873
mov edi, dword [edx]
cmp dword [esi + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov edx, esi
mov dword [ebp - 0x4c], eax
jb 0x4bf883
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov esi, dword [ebp - 0x4c]
push 1
sub esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, esp
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], edi
lea edx, [ebp - 0x40]
mov dword [ebp - 0x3c], esi
push ecx
push dword [ebp - 0x28]
mov dword [eax], 0xdd
push 1
push dword [ebp - 0x30]
mov dword [eax + 4], 0
push dword [ebp - 0x20]
mov dword [eax + 8], edx
call fcn.00513f20
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4bf8f7
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bf8ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bfc1d
push edx
push ecx
call fcn.00512900
add esp, 8
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp edx, 0x10
jb 0x4bf943
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bf939
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bfc1d
push edx
push ecx
call fcn.00512900
add esp, 8
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x11], 0
jmp 0x4bf950
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x9c]
call fcn.00481f60
mov eax, dword [ebp - 0x84]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4bf976
push eax
call edi
test eax, eax
je 0x4bfc22
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4bfabb
push eax
call edi
test eax, eax
je 0x4bfc35
jmp 0x4bfabb
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
mov dword [ebp - 0x1c], eax
je 0x4bf9d0
cmp byte [0x8f028c], 0
je 0x4bf9d0
test cl, cl
je 0x4bfab1
cmp cl, 6
jb 0x4bfab1
shr ecx, 8
cmp cl, 1
jb 0x4bfab1
jmp 0x4bf9d8
test cl, cl
je 0x4bfab1
mov dword [ebp - 0x1c], 0x11a740b
mov esi, dword [ebp - 0x1c]
push 0
sub esi, 0xa49823
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0056bc00
add esp, 0xc
mov ecx, eax
mov eax, dword [0x83f0d0]
mov edx, esi
mov dword [ebp - 0x30], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], eax
lea edi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bfa20
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4bfa33
mov edi, dword [ecx]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
mov eax, esp
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x40]
push edx
push esi
push 1
push dword [ebp - 0x1c]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x30]
mov dword [eax], 0xd2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00513f20
mov edx, dword [ebp - 0xa0]
add esp, 0x28
cmp edx, 0x10
jb 0x4bfaae
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bfaa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bfc48
push edx
push ecx
call fcn.00512900
add esp, 8
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 0
test esi, esi
je 0x4bfacf
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4bfad9
push eax
call edi
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
mov dword [ebp - 0x1c], eax
je 0x4bfb2e
cmp byte [0x8f028c], 0
je 0x4bfb2e
test cl, cl
je 0x4bfbfe
cmp cl, 6
jb 0x4bfbfe
shr ecx, 8
cmp cl, 1
jb 0x4bfbfe
jmp 0x4bfb36
test cl, cl
je 0x4bfbfe
mov dword [ebp - 0x1c], 0x112cbc1
mov esi, dword [ebp - 0x1c]
push 0
sub esi, 0x9cf051
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0056bc00
add esp, 0xc
mov edx, eax
mov eax, dword [0x83f0d0]
mov ecx, esi
mov dword [ebp - 0x30], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bfb80
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4bfb93
mov edi, dword [edx]
mov eax, dword [edx + 0x10]
lea edx, [ebp - 0x50]
push 1
sub esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, esp
mov dword [ebp - 0x50], edi
push ecx
push esi
push 1
push dword [ebp - 0x1c]
mov dword [eax], 0xd
push dword [ebp - 0x30]
mov dword [eax + 4], 0
mov dword [eax + 8], edx
call fcn.00513f20
mov edx, dword [ebp - 0x104]
add esp, 0x28
cmp edx, 0x10
jb 0x4bfbfe
mov ecx, dword [ebp - 0x118]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bfbf4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bfc4d
push edx
push ecx
call fcn.00512900
add esp, 8
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0070b6e4
call fcn.0070b6e4
call fcn.0070b6e4
mov eax, dword [ebx + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00478d80
mov eax, dword [ebx + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00478d80
call fcn.0070b6e4
call fcn.0070b6e4
int3