Function at 0x561fe4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0xd], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070fc
mov eax, dword [ebp - 8]
call fcn.004070fc
mov eax, dword [ebp + 8]
call fcn.004070fc
xor eax, eax
push ebp
push 0x5622dc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
call fcn.00561da4
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x78]
call fcn.0041d79c
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x5622f8
call fcn.00407c40
mov eax, dword [ebp - 0x74]
call fcn.0055b058
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wtsapi32.dll_WTSQueryUserToken
test eax, eax
je 0x562098
mov eax, 0x562320
call fcn.0055b058
jmp 0x5620a2
mov eax, 0x56235c
call fcn.0055b058
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
push 0
push 0xf00ff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x5620ca
mov eax, 0x562398
call fcn.0055b058
jmp 0x5620d4
mov eax, 0x5623d0
call fcn.0055b058
mov ebx, 0x30
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.userenv.dll_CreateEnvironmentBlock
test eax, eax
je 0x562103
or ebx, 0x400
mov eax, 0x56240c
call fcn.0055b058
jmp 0x562112
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x562450
call fcn.0055b058
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00404cac
mov dword [ebp - 0x60], 0x44
mov eax, 0x56248c
mov dword [ebp - 0x58], eax
mov word [ebp - 0x30], 0
cmp dword [ebp + 8], 0
jne 0x562149
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e160
jmp 0x562154
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
call fcn.00407420
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004079dc
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004079dc
push eax
mov eax, dword [ebp - 4]
call fcn.004079dc
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 4]
mov edx, 0x5624b8
call fcn.00407c40
mov eax, dword [ebp - 0x7c]
call fcn.0055b058
test bl, bl
je 0x5621bb
mov eax, 0x5624f0
call fcn.0055b058
jmp 0x5621f4
mov eax, 0x562530
call fcn.0055b058
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x84]
call fcn.0041d79c
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x562574
call fcn.00407c40
mov eax, dword [ebp - 0x80]
call fcn.0055b058
mov eax, dword [ebp - 0x70]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8c]
call fcn.0041d79c
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x5625b8
call fcn.00407c40
mov eax, dword [ebp - 0x88]
call fcn.0055b058
mov eax, dword [ebp - 0x68]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x94]
call fcn.0041d79c
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
mov edx, 0x562604
call fcn.00407c40
mov eax, dword [ebp - 0x90]
call fcn.0055b058
test byte [ebp - 0xd], bl
je 0x562283
jmp 0x562271
mov eax, dword [0x57b430]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x562283
push 0x64
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x562261
cmp dword [ebp - 0x18], 0
je 0x562297
mov eax, dword [ebp - 0x18]
push eax
call sub.userenv.dll_DestroyEnvironmentBlock
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5622e3
lea eax, [ebp - 0x94]
mov edx, 9
call fcn.00407078
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407078
lea eax, [ebp + 8]
call fcn.00407018
ret