Function at 0x77c1026e
Capabilities:
Create process on windows

Disassembly:
push 0xa4
push 0x77be4578
call fcn.77c07420
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
cmp dword [ebp + 8], ebx
je 0x77c10622
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x77c10622
mov ax, word [esi]
cmp ax, 0x77
je 0x77c102ae
cmp ax, 0x72
jne 0x77c10622
mov ax, word [esi + 2]
cmp ax, 0x74
jne 0x77c102bf
mov ecx, 0x4000
jmp 0x77c102ca
cmp ax, 0x62
jne 0x77c102ca
mov ecx, 0x8000
or ecx, 0x80
push ecx
push 0x400
lea eax, [ebp - 0x3c]
push eax
call sym.msvcrt.dll__pipe
add esp, 0xc
cmp eax, 0xffffffff
je 0x77c10622
xor edi, edi
cmp word [esi], 0x77
jne 0x77c102ff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
inc edi
mov dword [ebp - 0x24], edi
jmp 0x77c1030c
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
inc edi
push 9
call fcn.77c0a535
pop ecx
test eax, eax
jne 0x77c10331
push dword [ebp - 0x3c]
call sym.msvcrt.dll__close
push dword [ebp - 0x38]
call sym.msvcrt.dll__close
pop ecx
pop ecx
xor eax, eax
jmp 0x77c10625
push 9
call sym.msvcrt.dll__lock
pop ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
call dword [sym.imp._CKERNEL.dll_GetCurrentProcess]
mov dword [ebp - 0x54], eax
mov esi, dword [ebp - 0x28]
lea esi, [ebp + esi*4 - 0x3c]
mov eax, dword [esi]
push 2
push edi
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x54]
mov ecx, eax
sar ecx, 5
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
push dword [ecx + eax*4]
push dword [ebp - 0x54]
call dword [sym.imp._CKERNEL.dll_DuplicateHandle]
test eax, eax
je 0x77c105ed
push dword [esi]
call sym.msvcrt.dll__close
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x50], ebx
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
push dword [ebp + eax*4 - 0x3c]
call sym.msvcrt.dll__wfdopen
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x77c105ed
xor edi, edi
call fcn.77c0f238
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x77c105da
push 0x77be1f84
call sym.msvcrt.dll__wgetenv
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x77c103fe
call sym.msvcrt.dll__errno
cmp dword [eax], 2
je 0x77c103e8
call sym.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x77c103fe
test byte [0x77c31a19], 0x80
mov eax, 0x77be1f64
jne 0x77c103fb
mov eax, 0x77be1f54
mov dword [ebp - 0x1c], eax
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], 0x100
mov eax, dword [sym.msvcrt.dll___pioinfo]
cmp dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x2c]
je 0x77c1042e
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0x2c]
je 0x77c1043d
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x78], ecx
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x1c]
call sym.msvcrt.dll_wcslen
mov edi, eax
push dword [ebp + 8]
call sym.msvcrt.dll_wcslen
add edi, eax
mov esi, 0x77be456c
push esi
call sym.msvcrt.dll_wcslen
add edi, eax
lea eax, [edi + edi + 2]
push eax
call sym.msvcrt.dll_malloc
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x48], edi
cmp edi, ebx
je 0x77c105da
push dword [ebp - 0x1c]
push edi
call sym.msvcrt.dll_wcscpy
push esi
push edi
call sym.msvcrt.dll_wcscat
push dword [ebp + 8]
push edi
call sym.msvcrt.dll_wcscat
push ebx
push dword [ebp - 0x1c]
call sym.msvcrt.dll__waccess
add esp, 0x20
cmp eax, 0xffffffff
je 0x77c104cf
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp._CKERNEL.dll_CreateProcessW]
mov dword [ebp - 0x30], eax
jmp 0x77c105a6
push 0x77be1f48
call sym.msvcrt.dll__wgetenv
mov dword [ebp - 0x40], eax
mov dword [esp], 0x208
call sym.msvcrt.dll_malloc
pop ecx
mov esi, eax
mov dword [ebp - 0x5c], esi
cmp esi, ebx
jne 0x77c104fe
push edi
call sym.msvcrt.dll_free
pop ecx
jmp 0x77c105da
push 0x103
push esi
push dword [ebp - 0x40]
call fcn.77c07740
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x77c1059c
cmp word [esi], bx
je 0x77c1059c
push esi
call sym.msvcrt.dll_wcslen
pop ecx
lea eax, [esi + eax*2 - 2]
mov dword [ebp - 0x70], eax
mov ax, word [eax]
cmp ax, 0x5c
je 0x77c10549
cmp ax, 0x2f
je 0x77c10549
push 0x77be1f44
push esi
call sym.msvcrt.dll_wcscat
pop ecx
pop ecx
push dword [ebp - 0x1c]
call sym.msvcrt.dll_wcslen
mov edi, eax
push esi
call sym.msvcrt.dll_wcslen
pop ecx
pop ecx
add edi, eax
cmp edi, 0x104
jae 0x77c1059c
push dword [ebp - 0x1c]
push esi
call sym.msvcrt.dll_wcscat
push ebx
push esi
call sym.msvcrt.dll__waccess
add esp, 0x10
cmp eax, 0xffffffff
je 0x77c104fe
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x48]
push esi
call dword [sym.imp._CKERNEL.dll_CreateProcessW]
mov dword [ebp - 0x30], eax
push esi
call sym.msvcrt.dll_free
pop ecx
mov edi, dword [ebp - 0x48]
push edi
call sym.msvcrt.dll_free
pop ecx
push dword [ebp - 0x2c]
mov esi, dword [sym.imp._CKERNEL.dll_CloseHandle]
call esi
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x30], ebx
je 0x77c105d5
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x77c10619
mov eax, dword [ebp - 0x44]
mov dword [eax], ebx
push dword [ebp - 0x20]
call sym.msvcrt.dll_fclose
pop ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x50], ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x28]
shl eax, 2
cmp dword [ebp + eax - 0x50], ebx
je 0x77c10603
push dword [ebp + eax - 0x3c]
call sym.msvcrt.dll__close
pop ecx
mov eax, dword [ebp - 0x24]
shl eax, 2
cmp dword [ebp + eax - 0x50], ebx
je 0x77c10619
push dword [ebp + eax - 0x3c]
call sym.msvcrt.dll__close
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.77c1062b
mov eax, dword [ebp - 0x20]
call fcn.77c0745b
ret