Function at 0x6d5c9c60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x98
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xb8]
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.6d592e60
push edi
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.6d592e60
xor edi, edi
push 0x40
xor eax, eax
lea edx, [esp + 0x68]
push edi
push edx
or ebx, 0xffffffff
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], edi
call sub.MSVCR100.dll_memset
mov eax, dword [str.S_1_16_4096]
mov ecx, dword [0x6d5d91f4]
mov edx, dword [0x6d5d91f8]
mov dword [esp + 0xb0], eax
mov eax, dword [0x6d5d91fc]
mov dword [esp + 0xb4], ecx
mov ecx, dword [0x6d5d9200]
mov dword [esp + 0xb8], edx
mov edx, dword [0x6d5d9204]
push str.TEMP
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
call fcn.6d5c9b50
push 0x6d5d91dc
call fcn.6d5c9b50
add esp, 0x2c
lea eax, [esp + 0x18]
push eax
push 0x8b
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6d5c9e26
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 1
push 2
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x6d5c9e26
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
push ecx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x6d5c9e26
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x6d5c9e26
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 1
cmp eax, edi
je 0x6d5c9dec
mov ecx, dword [eax]
jmp 0x6d5c9dee
xor ecx, ecx
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x6d5c9dfa
mov eax, dword [eax]
jmp 0x6d5c9dfc
xor eax, eax
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x4c]
push edx
push edi
push edi
push edi
push 1
push edi
lea edx, [esp + 0x58]
push edx
push ecx
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x6d5c9e26
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
cmp eax, edi
je 0x6d5c9e42
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x6d5c9e4d
push eax
call esi
mov eax, ebx
cdq
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov ebp, edx
cmp eax, edi
je 0x6d5c9e9a
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5c9e96
cmp esi, edi
je 0x6d5c9e96
mov eax, dword [esi]
cmp eax, edi
je 0x6d5c9e7d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x6d5c9e8d
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x6d5c9eda
lea edx, [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5c9eda
cmp esi, edi
je 0x6d5c9eda
mov eax, dword [esi]
cmp eax, edi
je 0x6d5c9ec1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x6d5c9ed1
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x98
ret 0x10