Function at 0x48d260
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x409c
call fcn.005b9060
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x4098], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
shr eax, 0xf
xor ebx, 0x8000
and eax, 1
mov dword [esp + 0x28], ecx
test eax, eax
mov dword [esp + 0x38], eax
push esi
cmove ebx, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 0x14]
xor eax, eax
push edi
lea edi, [esp + 0x48]
mov dword [esp + 0x44], edx
stosd dword es:[edi], eax
push 0x44
push ecx
mov dword [esp + 0x30], esi
stosd dword es:[edi], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push eax
call fcn.005bb370
add esp, 0xc
cmp ebx, 5
je 0x48d311
test ebx, ebx
je 0x48d3f8
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x48d8fb
test ebx, ebx
je 0x48d3f8
cmp ebx, 4
je 0x48d3f8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
push ecx
push 2
pop edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x48d35d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x216
mov edx, 0x741500
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
jmp 0x48d8fb
lea eax, [esp + 0x18]
push eax
push 1
push edi
push 0
push 0x2000000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x48d398
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x217
mov edx, 0x741520
jmp 0x48d34e
mov eax, dword [esp + 0x2c]
cmp ebx, 5
push 4
cmove eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0xc
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x48d3e8
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x219
mov edx, 0x741540
jmp 0x48d34e
cmp ebx, edi
mov eax, str.Winsta0Winlogon
cmovne eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov edi, dword [esp + 0x34]
test edi, edi
je 0x48d4e5
mov eax, dword [edi]
test eax, eax
je 0x48d4e5
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x48d41e
mov dword [esp + 0x10], eax
jmp 0x48d4e5
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
cmp dword [edi], eax
je 0x48d461
mov ecx, edi
mov ecx, dword [ecx]
test ecx, ecx
je 0x48d44d
push 0x10000
push ecx
call fcn.005f01d0
mov edx, dword [esp + 0x2c]
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
inc ecx
add edx, ecx
inc eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
lea ecx, [edi + eax*4]
cmp dword [ecx], 0
jne 0x48d430
push 0x22b
dec edx
push 0x741584
add eax, edx
push 1
push eax
mov dword [esp + 0x48], eax
call fcn.005ed7c0
and dword [esp + 0x44], 0
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 1
cmp dword [edi], ecx
je 0x48d4e5
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push eax
mov edx, 0x7415a4
test ebx, ebx
mov eax, 0x74cbd9
cmovne eax, edx
push eax
mov eax, dword [esp + 0x40]
sub eax, ecx
push str._s_s
push eax
lea eax, [ecx + esi]
push eax
call fcn.0040117f
mov ecx, dword [esp + 0x34]
add esp, 0x14
add ecx, eax
inc ebx
mov dword [esp + 0x20], ecx
mov eax, dword [edi + ebx*4]
test eax, eax
jne 0x48d4a2
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
push 0
push 0
push 0x23d
push 0x7415b0
push 1
push 0x4c
call fcn.005ed7c0
add esp, 0x10
mov ecx, eax
push 0x3c
pop edx
call fcn.00484c1e
mov edi, eax
mov dword [esp + 0x40], edi
pop ecx
pop ecx
cmp ebx, 4
je 0x48d52c
push dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0048cfa7
pop ecx
mov dword [edi + 0x20], eax
pop ecx
mov dword [eax + 0x20], edi
mov ecx, dword [esp + 0x30]
mov dword [edi + 0xc], ecx
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x38], eax
mov dword [esp + 0x58], 0x44
cmp ebx, 4
je 0x48d5c1
push dword [esp + 0x1c]
push ecx
call fcn.0048cfa7
pop ecx
pop ecx
push dword [esp + 0x1c]
mov dword [edi + 0x18], eax
push ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x20], edi
call fcn.0048cfa7
pop ecx
pop ecx
mov dword [edi + 0x1c], eax
mov dword [eax + 0x20], edi
mov ecx, dword [edi + 0x18]
add ecx, 0x44
call fcn.0048cf2f
mov ecx, dword [edi + 0x1c]
add ecx, 0x40
call fcn.0048cf2f
mov ecx, dword [edi + 0x20]
add ecx, 0x40
call fcn.0048cf2f
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x44]
or dword [esp + 0x84], 0x100
mov dword [esp + 0x94], eax
test esi, esi
je 0x48d70f
xor ecx, ecx
mov edi, esi
mov dword [esp + 0x20], ecx
cmp dword [edi], 0
je 0x48d62c
push 0
push 0
push 0xffffffffffffffff
push dword [edi + 4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push 0x7415d0
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esi, eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [edi]
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x20]
add eax, esi
add ecx, eax
mov dword [esp + 0x20], ecx
add edi, 8
jne 0x48d5d1
lea esi, [ecx + ecx]
cmp esi, 0xffffffef
jae 0x48d652
push 0x266
push 0x7415d4
lea eax, [ecx*2 + 0x10]
push 1
push eax
call fcn.005ed7c0
add esp, 0x10
jmp 0x48d654
xor eax, eax
push 0
push 0
mov edx, esi
mov ecx, eax
call fcn.00484c1e
mov edi, dword [esp + 0x40]
mov ebx, eax
mov esi, dword [esp + 0x30]
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [esi], 0
je 0x48d709
mov eax, dword [ebx - 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebx + ecx*2]
push eax
push 0xffffffffffffffff
push dword [esi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x1c]
dec esi
add esi, eax
mov eax, dword [ebx - 0x10]
cdq
sub eax, edx
sar eax, 1
sub eax, esi
push eax
lea eax, [ebx + esi*2]
push eax
push 0xffffffffffffffff
push 0x7415f4
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [eax - 1]
mov eax, dword [ebx - 0x10]
cdq
add ecx, esi
mov esi, dword [esp + 0x28]
sub eax, edx
sar eax, 1
sub eax, ecx
mov dword [esp + 0x1c], ecx
push eax
lea eax, [ebx + ecx*2]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x1c]
add ecx, eax
add esi, 8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], esi
jne 0x48d673
mov esi, ebx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x48d718
cmp ebx, 4
jne 0x48d78a
lea eax, [esp + 0x48]
xor ecx, ecx
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x48]
neg eax
push ecx
sbb eax, eax
and eax, 0x208
push esi
or eax, 0x8000400
push eax
xor eax, eax
cmp ebx, 4
setne al
or edx, 0xffffffff
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc0]
push 0x1000
push eax
call fcn.004846c9
pop ecx
pop ecx
mov ecx, dword [esp + 0x64]
or edx, 0xffffffff
push eax
lea eax, [esp + 0x20c4]
push 0x1000
push eax
call fcn.004846c9
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x48d892
test ebx, ebx
je 0x48d7fd
lea eax, [esp + 0x48]
xor ecx, ecx
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x48]
neg eax
push ecx
sbb eax, eax
or edx, 0xffffffff
push esi
and eax, 0x208
or eax, 0x8000400
push eax
push 1
push ecx
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc0]
push 0x1000
push eax
call fcn.004846c9
pop ecx
pop ecx
mov ecx, dword [esp + 0x64]
or edx, 0xffffffff
push eax
lea eax, [esp + 0x20c4]
push 0x1000
push eax
call fcn.004846c9
pop ecx
pop ecx
push eax
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x48d892
test esi, esi
je 0x48d808
mov ecx, esi
call fcn.00484cd3
cmp dword [esp + 0x24], 0
je 0x48d81c
push 1
push dword [esp + 0x14]
call fcn.005ed680
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 4
je 0x48d854
mov eax, dword [edi + 0x1c]
push dword [eax + 0x44]
call esi
mov eax, dword [edi + 0x1c]
and dword [eax + 0x44], 0
mov eax, dword [edi + 0x20]
push dword [eax + 0x44]
call esi
mov eax, dword [edi + 0x20]
and dword [eax + 0x44], 0
mov eax, dword [edi + 0x18]
push dword [eax + 0x40]
call esi
mov eax, dword [edi + 0x18]
and dword [eax + 0x40], 0
mov eax, dword [esp + 0x48]
mov dword [edi + 0x2c], eax
cmp dword [esp + 0x4c], 0
je 0x48d868
push dword [esp + 0x4c]
call esi
mov eax, dword [esp + 0x50]
mov dword [edi + 0x10], eax
cmp dword [esp + 0x14], 0
je 0x48d881
push dword [esp + 0x14]
call esi
and dword [esp + 0x14], 0
cmp dword [esp + 0x18], 0
je 0x48d88e
push dword [esp + 0x18]
call esi
mov eax, edi
jmp 0x48d8fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 4
je 0x48d8b5
mov ecx, dword [edi + 0x20]
call fcn.0048ce12
mov ecx, dword [edi + 0x1c]
call fcn.0048ce12
mov ecx, dword [edi + 0x18]
call fcn.0048ce12
cmp dword [esp + 0x24], 0
je 0x48d8c9
push 1
push dword [esp + 0x14]
call fcn.005ed680
pop ecx
pop ecx
mov ecx, edi
call fcn.00484cd3
cmp dword [esp + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x48d8e3
push dword [esp + 0x14]
call edi
cmp dword [esp + 0x18], 0
je 0x48d8f0
push dword [esp + 0x18]
call edi
test esi, esi
je 0x48d8fb
mov ecx, esi
call fcn.00484cd3
xor eax, eax
mov ecx, dword [esp + 0x40a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b8900
mov esp, ebp
pop ebp
ret