Function at 0x41bdd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbb70
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov dword [ebp - 4], ebx
push 0x40
xor eax, eax
lea edx, [ebp - 0xb4]
push ebx
push edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xb
push str.S_1_16_8192
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xb8], 0x44
call fcn.00406180
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x800
ja 0x41beaf
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x800
je 0x41beaf
mov edi, eax
jae 0x41be9b
push eax
push 0x800
lea ecx, [ebp - 0x2c]
call fcn.00406500
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmp ecx, 8
jae 0x41bea9
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41beb4
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406180
lea edx, [ebp - 0x58]
push edx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41bfae
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x4c]
push eax
push 1
push 2
push ebx
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 8
test eax, eax
je 0x41bfa6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x41bf21
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x50]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x41bfa0
mov eax, dword [ebp - 0x50]
push eax
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0x60], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 0x4c]
add eax, edi
push eax
lea eax, [ebp - 0x60]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x41bf96
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x41bf66
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0xb8]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x4c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, ebx
je 0x41bf96
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
push edx
mov dword [ebp - 0x54], ecx
call esi
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x4c]
push ecx
call esi
mov edx, dword [ebp - 0x58]
push edx
call esi
jmp 0x41bfb3
mov edi, 8
mov byte [ebp - 4], bl
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x18], edi
jb 0x41bfca
mov eax, dword [ebp - 0x2c]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], edi
jb 0x41bfef
mov edx, dword [ebp - 0x48]
push edx
call esi
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret