Function at 0x48dd70
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x4d8b30
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 0x3d50]
sub esp, 0x480
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ecx + 0x3d6c], ebx
je 0x48ddb1
cmp eax, ebx
je 0x48ddad
cmp word [eax], bx
jne 0x48ddb1
xor eax, eax
jmp 0x48ddbd
mov ecx, dword [0x52fe2c]
push eax
call fcn.00408f30
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 0xd], 1
call fcn.00407080
mov esi, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x78]
push edx
push esi
push 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00407fb0
add esp, 0x20
test al, al
jne 0x48de1b
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x24]
push edx
push eax
call fcn.00437130
add esp, 0x10
test al, al
je 0x48de1b
cmp dword [ebp - 0x24], 2
jne 0x48de1b
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.004070a0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x2c], 2
jne 0x48e0f8
mov ecx, dword [0x52fe2c]
cmp dword [ecx + 0x4824], ebx
jne 0x48e0f8
lea ecx, [ebp - 0x48]
mov dword [ebp + 0xc], esi
call fcn.00407080
push ebx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 4], 3
call fcn.00407360
add esp, 0xc
test eax, eax
je 0x48de87
mov ecx, dword [ebp + 0x24]
xor esi, esi
mov dword [ecx], 0xffffffff
jmp 0x48e0d6
mov esi, dword [ebp + 0x20]
mov eax, dword [esi]
cmp eax, ebx
je 0x48deb7
mov ecx, dword [eax + 0x38]
cmp ecx, ebx
je 0x48dea6
cmp ecx, 0xffffffff
je 0x48dea6
push ecx
mov dword [eax + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, ebx
je 0x48deb7
push eax
call fcn.0044c4f0
add esp, 4
mov dword [esi], ebx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
lea edx, [ebp - 0x48c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x48dec4
mov eax, dword [ebp - 0x44]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x48dee0
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x48defc
xor edx, edx
jmp 0x48df12
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48df00
sub eax, edx
sar eax, 1
lea edx, [eax + 2]
lea eax, [ebp - 0x48c]
lea edi, [eax + 2]
jmp 0x48df20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48df20
sub eax, edi
sar eax, 1
add eax, edx
add eax, ebx
lea eax, [eax + eax + 0x58]
push 1
push eax
call fcn.0044c490
movzx edx, byte [ebp - 0xd]
mov dword [esi], eax
mov dword [eax], 0x3c
mov eax, dword [esi]
mov ecx, dword [0x52fe14]
mov dword [eax + 8], ecx
mov eax, dword [esi]
add esp, 8
neg edx
sbb edx, edx
and edx, 0x8000
or edx, 0x100
mov dword [eax + 4], edx
mov eax, dword [esi]
or dword [eax + 4], 0x40
mov eax, dword [esi]
lea ecx, [eax + 0x3c]
mov dword [eax + 0xc], ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
mov eax, str.runas
movzx edx, word [eax]
mov word [ecx], dx
add eax, 2
add ecx, 2
test dx, dx
jne 0x48df86
mov edx, dword [esi]
mov edi, dword [edx + 0xc]
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48dfa1
sub eax, ebx
sar eax, 1
lea eax, [edi + eax*2 + 4]
mov dword [edx + 0x10], eax
mov edx, dword [esi]
mov ecx, dword [ebp - 0x44]
mov edx, dword [edx + 0x10]
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x48dfc0
mov edx, dword [esi]
mov edi, dword [edx + 0x10]
mov eax, edi
lea ebx, [eax + 2]
jmp 0x48dfe0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48dfe0
sub eax, ebx
sar eax, 1
lea eax, [edi + eax*2 + 4]
mov dword [edx + 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x48e025
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
mov eax, 0x20
mov word [edx], ax
mov ecx, dword [esi]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp + 0xc]
add eax, 2
movzx ecx, word [edx]
mov word [eax], cx
add edx, 2
add eax, 2
test cx, cx
jne 0x48e014
mov edx, dword [esi]
mov edi, dword [edx + 0x14]
mov eax, edi
lea ebx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48e030
sub eax, ebx
sar eax, 1
lea eax, [edi + eax*2 + 4]
mov dword [edx + 0x18], eax
cmp word [ebp - 0x48c], cx
je 0x48e073
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x48c]
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x48e060
jmp 0x48e07c
mov eax, dword [esi]
mov dword [eax + 0x18], 0
mov ecx, dword [esi]
mov dword [ecx + 0x1c], 1
cmp dword [0x52fe5c], 6
mov eax, str.Starting_root_process_as_Administrator...
jae 0x48e098
mov eax, str.Starting_root_process_as_user...
mov ecx, dword [ebp + 8]
push 5
push eax
call fcn.00489420
mov eax, dword [0x52fe2c]
mov bl, byte [eax + 0x4854]
mov byte [eax + 0x4854], 1
mov edx, dword [esi]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov eax, dword [0x52fe2c]
mov byte [eax + 0x4854], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.004070a0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor edx, edx
cmp byte [ebp + 0x28], dl
setne dl
inc edx
push edx
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
mov ecx, dword [ebp + 8]
push 5
push str.Starting_root_process...
call fcn.00489420
push str.kernel32.dll
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebx
je 0x48e151
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push esi
call ebx
push str.Wow64RevertWow64FsRedirection
push esi
mov dword [ebp - 0x20], eax
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x48e159
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jne 0x48e172
cmp eax, ebx
je 0x48e172
lea ecx, [ebp - 0x14]
push ecx
call eax
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x34], ebx
je 0x48e2b4
push 0x206
lea eax, [ebp - 0x27e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x280], dx
call fcn.004c9b50
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
xor esi, esi
add esp, 0xc
mov dword [ebp + 8], esi
cmp eax, ebx
je 0x48e1b0
cmp word [eax], bx
jne 0x48e243
lea edx, [ebp - 0x280]
push edx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jl 0x48e1cf
cmp word [ebp - 0x280], bx
jne 0x48e1e3
lea eax, [ebp - 0x280]
push 0x4fd290
push eax
call fcn.00405470
add esp, 8
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x280]
mov dword [edx], ecx
lea ecx, [ebp - 0x60]
call fcn.00407080
mov eax, dword [ebp + 0x10]
push ebx
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], eax
call fcn.00407360
add esp, 0xc
test eax, eax
jne 0x48e231
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
push ebx
push ebx
push eax
push str.__PROFILECD
push ecx
call fcn.0044c5d0
add esp, 0x14
mov esi, eax
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004070a0
mov eax, esi
cmp esi, ebx
jne 0x48e246
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
push edx
mov edx, dword [ecx]
movzx ecx, byte [ebp - 0xd]
push edx
mov edx, dword [edi + 0x38]
neg ecx
push 0
sbb ecx, ecx
and ecx, 0x10
or ecx, 0x4000020
push ecx
push eax
mov eax, dword [edi + 0x34]
push 0
push 1
lea esi, [edi + 0x3c]
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, 0x208
mov byte [esi], 0
inc esi
sub eax, 1
jne 0x48e291
cmp dword [ebp + 8], eax
je 0x48e33d
mov edx, dword [ebp + 8]
push edx
call fcn.0044c4f0
add esp, 4
jmp 0x48e33d
cmp dword [edi + 0x30], 2
mov ebx, dword [ebp + 0x1c]
jne 0x48e2ff
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
push esi
push ebx
push eax
movzx eax, byte [ebp - 0xd]
push edx
neg eax
sbb eax, eax
push 0
and eax, 0x10
or eax, 0x4000020
push eax
push 0
push 0
push 0
push ecx
push 0
call fcn.00425c50
add esp, 0x2c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x48e33d
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
push ebx
push edx
movzx edx, byte [ebp - 0xd]
push ecx
neg edx
push 0
sbb edx, edx
and edx, 0x10
or edx, 0x4000020
push edx
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
cmp byte [ebp + 0x28], 0
jne 0x48e34d
push 2
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
jmp 0x48e35f
test edi, edi
je 0x48e35f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x48e35f
push ebx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
je 0x48e380
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x48e380
mov edx, dword [ebp - 0x14]
push edx
call eax
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret