Function at 0x401000
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41de96
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x427c20]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427c20]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
push 0x40
lea eax, [esp + 0x4c]
push ebx
push eax
mov esi, ecx
mov edi, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00410380
add esp, 0xc
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ad0
push 1
push 0x422700
lea ecx, [esp + 0x20]
mov dword [esp + 0xc8], ebx
call fcn.00401490
push edi
lea ecx, [esp + 0x34]
call fcn.00401ad0
mov byte [esp + 0xc0], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401490
mov byte [esp + 0xc0], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4010e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0x7800
jl 0x401119
add eax, 0xfffffff0
mov dword [esp + 0xc0], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x401112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401294
mov ecx, dword [0x422704]
mov edx, dword [str.1_16_4096]
mov eax, dword [0x42270c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [0x422710]
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x90], edx
mov edx, dword [0x422714]
mov dword [esp + 0x94], eax
mov eax, dword [0x422718]
push ecx
push 0x8b
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, ebx
je 0x401231
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push 1
push 2
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
je 0x401231
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x90]
push edx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov esi, eax
cmp esi, ebx
je 0x401231
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0x1c]
add eax, 8
push eax
lea eax, [esp + 0x2c]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, ebx
je 0x401231
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x48]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
call fcn.00401470
mov ecx, dword [esp + 0x3c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x401242
push eax
call edi
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40124d
push eax
call edi
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x401263
push eax
call edi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40126e
push eax
call edi
mov dword [esp + 0xc0], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x401292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0040d89f
add esp, 0xb0
ret